customsettings
Project description
When describing in python of the configuration file, you need to change it in each environment. For example settings.py of Django. This package provides the utility to assist it.
Install
$ pip install custom_settings
How to use it
settings_custom.py:
AUTH_CREDENTIAL = 'MY_CREDENTIAL'
>>> import custom_settings
>>> custom = custom_settings.load('settings_custom')
>>> custom.get('AUTH_CREDENTIAL')
'MY_CREDENTIAL'
>>> custom.get('NO_SET_VALUE', default=10)
10
Other
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
custom_settings-1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for custom_settings-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc947d27c0bf5e4078fbb0de07fa555e820340dc1dede2de7037ca7b61dbee4b |
|
MD5 | dc7811894dfc006dc45a43030327f167 |
|
BLAKE2b-256 | 816e094bdaf003da0086cb73bf3c50b84e2a7dde5973e2dd18257056d9063f88 |