Usage¶
Create¶
Import ABConfig and create a your config class:
1 2 3 4 5 |
|
Get instance:
1 2 3 |
|
or you can set default values:
1 2 3 4 5 6 7 |
|
It's Dict¶
config
is a python dict
-like instance:
1 2 3 4 5 6 |
|
and by attrs:
1 2 |
|
Supported sources¶
Multiple sources¶
You can define multiple sources, their values will be use by priority:
- Default;
- File;
- Environment;
- Vault.
Common settings¶
Default values:
__hidesettings__
- hide ABConfig settings from result;__hidesettings_exclude__
- list of settings that need to be shown anyway.
1 2 3 |
|