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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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