File¶
Attention: the source File has lower priority than environment variables so any founded environment vars will be used
Create¶
Sample config class of the reading file:
1 2 3 4 5 6 7 8 9 10 |
|
Formats¶
ABConfig will try to determine the format by the file extension.
Supported:
Json
1 2 3 4 5 6 7 8 |
|
Yaml
1 2 3 4 5 |
|
Toml
1 2 3 4 5 6 |
|
Settings¶
-
__file__
- the path to the file; -
__file_required__
- require file, otherwise an exception.
Default:
1 2 3 |
|