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.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

simple_settings-0.8.0-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.0.tar.gz.

File metadata

File hashes

Hashes for simple-settings-0.8.0.tar.gz
Algorithm Hash digest
SHA256 89d96f1e8aa19b7844446a1ebd34dfe56081878add1e228dff0f7676a065da0a
MD5 15f094ebc48367c70aed2add616e7cc2
BLAKE2b-256 be9bc80ea27ea3fd24558b5869234f5fa21d7322f1ea2079b347967b0d671e17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_settings-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cb2cbf8f714fe74ea9fecf47b66bd21d628ab33a4272abfb5cd6111dd618b2b0
MD5 0ca891a3d69a61d057d14062d8d18bed
BLAKE2b-256 3d82472f4c1d2e5bedc98b982c7b3957efbea13beb4f984f7a08434b1cf9646a

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