mirror of
https://github.com/Steffo99/cfig.git
synced 2024-11-24 17:04:19 +00:00
🗒️ Improve example in README
This commit is contained in:
parent
3cee5ff825
commit
207665a185
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
A configuration manager for Python
|
A configuration manager for Python
|
||||||
|
|
||||||
|
\[ [**Documentation**](https://cfig.readthedocs.io/) | [**PyPI**](https://pypi.org/project/cfig/) \]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import cfig
|
import cfig
|
||||||
|
|
||||||
|
@ -17,17 +21,15 @@ if __name__ == "__main__":
|
||||||
```
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from .mycfig import SECRET_KEY
|
from mypackage.mycfig import SECRET_KEY
|
||||||
|
|
||||||
print(f"My SECRET_KEY is: {SECRET_KEY}")
|
print(f"My SECRET_KEY is: {SECRET_KEY}")
|
||||||
```
|
```
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ python -m cfig.sample
|
$ python -m mypackage.mycfig
|
||||||
=== Configuration ===
|
=== Configuration ===
|
||||||
|
|
||||||
SECRET_KEY → Required, but not set.
|
SECRET_KEY → Required, but not set.
|
||||||
Secret string used to manage HTTP session tokens.
|
Secret string used to manage HTTP session tokens.
|
||||||
```
|
```
|
||||||
|
|
||||||
\[ [**Documentation**](https://cfig.readthedocs.io/) | [**PyPI**](https://pypi.org/project/cfig/) \]
|
|
Loading…
Reference in a new issue