Python configs for humans. Using OS environment.
Project description
Python configs for humans.
Using OS environment.
Before you ask - this library doesn't support type-casts and other features. Just env parsing.
How to?
At first, install libary:
pip install betterconf
And... write simple config:
from betterconf import field, Config
class MyConfig(Config):
my_var = field("my_var")
cfg = MyConfig()
print(cfg.my_var)
Try to run:
my_var=1 python our_file.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
betterconf-1.0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for betterconf-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22672b3f5c1b3bd684d2e2df12d871d21104ed3c767ef33d54523cc6b81a62a |
|
MD5 | 052e64f6d4e9ce00c94deca7080fda16 |
|
BLAKE2b-256 | d5d1ad240cc96ce9c34719572d90f33c7b499f2e7eaf08d488bb8af67eb602ec |