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.
Settings by cfg files.
Settings by Yaml 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
File details
Details for the file simple-settings-0.7.0.tar.gz
.
File metadata
- Download URL: simple-settings-0.7.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f1b71ac9aa5020170dae563c580bf3e732eae3d9b9ca23cb716e6ff64b9cc7 |
|
MD5 | 9918cbb9611d52e7f3b52b11a213975c |
|
BLAKE2b-256 | 437eeede81e5bbf1c4fb332a8a0d951b321335c99b6148072ef86c4b03b882df |
File details
Details for the file simple_settings-0.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: simple_settings-0.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01d4ee44ea21f48e5730ed83bd160380f530d0fa695eabda70818ddec85dbaf8 |
|
MD5 | a72a8c6844ac2a515cdbc72280659f0f |
|
BLAKE2b-256 | 68aebc7106b552e825e9e83eb2c175f6500f776fb3b941d939012a1657f5e60d |