A configuration manager for Python
Project description
cfig
A configuration manager for Python
[ Example | Documentation | PyPI ]
import cfig
config = cfig.Configuration()
@config.required()
def SECRET_KEY(val: str) -> str:
"""Secret string used to manage HTTP session tokens."""
return val
if __name__ == "__main__":
config.cli()
from mypackage.mycfig import SECRET_KEY
print(f"My SECRET_KEY is: {SECRET_KEY}")
$ python -m mypackage.mycfig
===== Configuration =====
SECRET_KEY → Required, but not set.
Secret string used to manage HTTP session tokens.
===== End =====
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
cfig-0.3.1.tar.gz
(11.6 kB
view hashes)
Built Distribution
cfig-0.3.1-py3-none-any.whl
(13.7 kB
view hashes)