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 --simple-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 --simple-settings=my_settings
>>> from simple_settings import settings
>>> print(settings.FOO)
'some value in foo'
Some features
Settings by Python modules, Cfg, Yaml, Toml 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
File details
Details for the file simple-settings-0.12.0.tar.gz
.
File metadata
- Download URL: simple-settings-0.12.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea71f3da8baa7c98123f6f582169ff188a97f48435b7a20d16f1e21f08721cb |
|
MD5 | 541fb612f1455604532bcfa5bc36a91d |
|
BLAKE2b-256 | 1ace4d1e1261755679ac39508698d5da78b00a3e4b61d875d3e2f6eea6f0a993 |
File details
Details for the file simple_settings-0.12.0-py2.py3-none-any.whl
.
File metadata
- Download URL: simple_settings-0.12.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2e7e7039782e7a040386be9d6112aea78572f3796531e719d67fe23297062e |
|
MD5 | ae4371d83485be9766fe893ba97acd8c |
|
BLAKE2b-256 | 6456b9382975501fd0451cd5cc51de849bbd2bdbf42899c7eb8b403ee5baf2b7 |