1
Fork 0
mirror of https://github.com/Steffo99/cfig.git synced 2024-12-22 14:14:22 +00:00

Compare commits

..

4 commits

Author SHA1 Message Date
dependabot[bot]
b44fdbc857
Merge 5e75acfd17 into dc5779f1bc 2024-11-28 20:39:48 +00:00
dc5779f1bc
Remove example from README 2024-05-14 03:25:33 +02:00
eaa3aad5e7
Update README 2024-05-14 03:22:57 +02:00
dependabot[bot]
16080bc19a 🔨️ (deps): Bump abatilo/actions-poetry from 2.3.0 to 2.4.0
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 2.3.0 to 2.4.0.
- [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.3.0...v2.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-01 09:16:43 +01:00
4 changed files with 11 additions and 31 deletions

View file

@ -26,7 +26,7 @@ jobs:
uses: actions/setup-python@v3
- name: "🔨 Setup Poetry"
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
- name: "🔨 Setup Poetry Python environment"
uses: Steffo99/actions-poetry-deps@v0.2.5

View file

@ -46,7 +46,7 @@ jobs:
uses: actions/setup-python@v3
- name: "🔨 Setup Poetry"
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v2.4.0
- name: "🔨 Setup Poetry Python environment"
id: pyenv

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -1,35 +1,15 @@
<div align="center">
![](.media/icon-128x128_round.png)
# cfig
A configuration manager for Python
Configuration helper for Python
\[ [**Example**](https://github.com/Steffo99/cfig/tree/main/cfig/sample) | [**Documentation**](https://cfig.readthedocs.io/) | [**PyPI**](https://pypi.org/project/cfig/) \]
</div>
```python
import cfig
## Links
config = cfig.Configuration()
[![PyPI](https://img.shields.io/pypi/v/cfig)](https://pypi.org/project/cfig)
@config.required()
def SECRET_KEY(val: str) -> str:
"""Secret string used to manage HTTP session tokens."""
return val
if __name__ == "__main__":
config.cli()
```
```python
from mypackage.mycfig import SECRET_KEY
print(f"My SECRET_KEY is: {SECRET_KEY}")
```
```console
$ python -m mypackage.mycfig
===== Configuration =====
SECRET_KEY → Required, but not set.
Secret string used to manage HTTP session tokens.
===== End =====
```
[![Documentation](https://img.shields.io/readthedocs/cfig)](https://cfig.readthedocs.io/en/latest/)