Skip to main content

customsettings

Project description

CircleCI Status CodeCov Status

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


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)

Uploaded Source

Built Distribution

custom_settings-1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file custom_settings-1.0.tar.gz.

File metadata

File hashes

Hashes for custom_settings-1.0.tar.gz
Algorithm Hash digest
SHA256 9485777a685a3086b0b74c536b4df15ae89f0366127045a8daefa307494cbcf9
MD5 9b4ce0aaddf32632e5fb88e7a50120ec
BLAKE2b-256 0fa7757a7c779eb62a53eebcee3e2320959a81e01d109e725413b231ffb1d9c1

See more details on using hashes here.

File details

Details for the file custom_settings-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_settings-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc947d27c0bf5e4078fbb0de07fa555e820340dc1dede2de7037ca7b61dbee4b
MD5 dc7811894dfc006dc45a43030327f167
BLAKE2b-256 816e094bdaf003da0086cb73bf3c50b84e2a7dde5973e2dd18257056d9063f88

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page