Skip to main content

A simple way to manage your project settings

Project description

Package version Documentation Status Code Issues Build Status Coverage Status

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.

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

simple-settings-0.8.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

simple_settings-0.8.1-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file simple-settings-0.8.1.tar.gz.

File metadata

File hashes

Hashes for simple-settings-0.8.1.tar.gz
Algorithm Hash digest
SHA256 fb89e235b2a6200f7b4b108d37878f5d7b7b1631e11ce9d3da2b6f4fd23ce833
MD5 228b10b1fd6de1c7152e50a3f59ef6f6
BLAKE2b-256 bfa7ec1647199430909c735ac2e31501b3f3b305c3bc59707fab2443c68150cd

See more details on using hashes here.

File details

Details for the file simple_settings-0.8.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for simple_settings-0.8.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cbdd9168d1e99f768c66fd0587324298c3e97c7c22322d69a8b4e3ddb38dcad
MD5 a4cf8579c34b6d4504cbe25f6dd303b6
BLAKE2b-256 59dc7b10ae93ae1ba04e32438524b937142c15d36da63abc9e66b30a707dd129

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