1
Fork 0
mirror of https://github.com/Steffo99/cfig.git synced 2024-11-23 08:24:19 +00:00
Configuration helper for Python
Find a file
dependabot[bot] 438fc38432 🔨️ (deps): Bump abatilo/actions-poetry from 2.1.4 to 2.1.5
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 2.1.4 to 2.1.5.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](https://github.com/abatilo/actions-poetry/compare/v2.1.4...v2.1.5)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-27 15:30:48 +02:00
.github 🔨️ (deps): Bump abatilo/actions-poetry from 2.1.4 to 2.1.5 2022-06-27 15:30:48 +02:00
.idea 💥 Yay more changes 2022-04-20 04:15:10 +02:00
.vscode 🔨 Import VSC settings from Steffo99/template-poetry 2022-04-26 17:39:27 +02:00
cfig 🧪 Fix tests failing due to a error in the config 2022-04-26 18:08:43 +02:00
docs 🗒️ Fix typing mistake 2022-04-26 18:09:00 +02:00
.gitignore 🎉 First commit 2022-04-13 17:54:53 +02:00
.readthedocs.yml 🔨 Fix readthedocs yml file again 2022-04-19 04:39:37 +02:00
cfig.iml 💥 Yay more changes 2022-04-20 04:15:10 +02:00
LICENSE.txt Rename LICENSE to LICENSE.txt 2022-04-28 18:15:28 +02:00
poetry.lock ⬆️ (deps): Bump click from 8.1.2 to 8.1.3 2022-04-29 18:32:56 +02:00
pyproject.toml :up_arrow: Add pytest-cov dev dependency 2022-04-26 17:54:05 +02:00
README.md 💥 Yay more changes 2022-04-20 04:15:10 +02:00

cfig

A configuration manager for Python

 [**Example**](https://github.com/Steffo99/cfig/tree/main/cfig/sample) | [**Documentation**](https://cfig.readthedocs.io/) | [**PyPI**](https://pypi.org/project/cfig/) 
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 =====