https://github.com/jpf/konfig
Simple software configuration module
https://github.com/jpf/konfig
Last synced: about 1 year ago
JSON representation
Simple software configuration module
- Host: GitHub
- URL: https://github.com/jpf/konfig
- Owner: jpf
- Created: 2013-02-16T07:53:45.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-16T07:55:54.000Z (over 13 years ago)
- Last Synced: 2025-03-17T19:56:21.468Z (about 1 year ago)
- Language: Python
- Size: 99.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Konfig
======
Stores sensitive configuration data in a way that works nicely with Heroku.
Example:
```python
from konfig import Konfig
konf = Konfig()
konf.username
```
Callling "konf.username" will search
the following locations and return the first value that is found:
* An environment variable named "USERNAME" ($USERNAME in the shell)
* If './.env' exists and has an entry that starts with "USERNAME="
* If an entry in a dictionary was passed to "konf.use_dict()" before
"konf.username" was called, that will be returned.