diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-07-06 10:35:54 +0200 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-07-06 10:35:54 +0200 |
commit | cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23 (patch) | |
tree | bfe6aa26d7cab12334ae79b353ba2ec365f2b582 /README.md | |
download | configlib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.tar.gz configlib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.tar.bz2 configlib-cbb9f2c3622ec96caf4ec9e58e84c8fbd3f45d23.zip |
Initial commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..62d8bd8 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +Configlib +========= + +An easy python config library. Manage multiple configuration environments and complex nested configurations with ease. + +Examples +-------- +```json +{ + "config_var": "jo", + "other_var": 3, + "SubConfig": { + "subconfivar": 10 + } +} +``` + + +```py +from configlib import BaseConfig + + +class Config(BaseConfig): + config_var: str + other_var: int + class SubConfig: + subconfigvar: int + +# Usage + +config = Config.get_instance() +config.config_var # "jo" +config.SubConfig.subconfigvar # 10 +``` + +Other Features +-------------- + +Having multiple config environments inheriting properties from each other, loading data from environment variables, etc.
\ No newline at end of file |