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 details)
Built Distribution
File details
Details for the file custom_settings-1.0.tar.gz
.
File metadata
- Download URL: custom_settings-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9485777a685a3086b0b74c536b4df15ae89f0366127045a8daefa307494cbcf9 |
|
MD5 | 9b4ce0aaddf32632e5fb88e7a50120ec |
|
BLAKE2b-256 | 0fa7757a7c779eb62a53eebcee3e2320959a81e01d109e725413b231ffb1d9c1 |
File details
Details for the file custom_settings-1.0-py3-none-any.whl
.
File metadata
- Download URL: custom_settings-1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc947d27c0bf5e4078fbb0de07fa555e820340dc1dede2de7037ca7b61dbee4b |
|
MD5 | dc7811894dfc006dc45a43030327f167 |
|
BLAKE2b-256 | 816e094bdaf003da0086cb73bf3c50b84e2a7dde5973e2dd18257056d9063f88 |