A simple way to manage your project settings
Project description
A simple way to manage your project settings.
It is inspired by Django’s settings system but is generic for any python project. With simple-settings you just need specify your settings module in --settings arg of command line (or SIMPLE_SETTINGS of environment) and all settings will be available in simple_settings.settings.
Installation
Use pip (simple like this project :smile:).
$ pip install simple-settings
simple-settings is tested with Python 2.7, 3.4, 3.5 and PyPy.
Usage
$ python app.py --settings=my_settings
>>> from simple_settings import settings
>>> print(settings.FOO)
'some value in foo'
Some features
Settings by Python modules, Cfg files, Yaml files or Json files.
Settings inheritance (like a pipeline).
Special settings.
Dynamic settings.
Check more features in documentation.
Quick links
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
Built Distribution
Hashes for simple_settings-0.8.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cbdd9168d1e99f768c66fd0587324298c3e97c7c22322d69a8b4e3ddb38dcad |
|
MD5 | a4cf8579c34b6d4504cbe25f6dd303b6 |
|
BLAKE2b-256 | 59dc7b10ae93ae1ba04e32438524b937142c15d36da63abc9e66b30a707dd129 |