Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kpostekk/alwaysconf
Configuration lib for busy people
https://github.com/kpostekk/alwaysconf
Last synced: 2 days ago
JSON representation
Configuration lib for busy people
- Host: GitHub
- URL: https://github.com/kpostekk/alwaysconf
- Owner: kpostekk
- Created: 2021-01-30T17:50:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T21:37:54.000Z (almost 2 years ago)
- Last Synced: 2023-03-29T18:10:20.342Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alwaysconf
Config manager for busy developers## Install
From git
```shell
pip install git+https://github.com/kpostekk/alwaysconf.git
```## Example
```python
from alwaysconf import *class MyConfig(AnyConfig):
val1 = ConfigField('special')
val2 = ConfigField(True)if __name__ == '__main__':
conf = MyConfig.local() # Will create config.yml
print(conf.data) # {'val1': 'special', 'val2': True}
conf.val1 = 'magic'
print(conf.data) # {'val1': 'magic', 'val2': True}
```