mirror of
https://github.com/Steffo99/cfig.git
synced 2024-11-24 08:54:20 +00:00
Configuration helper for Python
.idea | ||
cfig | ||
docs | ||
.gitignore | ||
cfig.iml | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
cfig
A configuration manager for Python
import cfig
config = cfig.Configuration()
@config.required()
def SECRET_KEY(val: str) -> str:
"""Secret string used to manage tokens."""
return val
if __name__ == "__main__":
config.cli()
$ python -m cfig.sample
=== Configuration ===
SECRET_KEY → Required, but not set.
Secret string used to manage HTTP session tokens.
[**Documentation**](https://cfig.readthedocs.io/) | [**PyPI**](https://pypi.org/project/cfig/)