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

Uploaded Source

Built Distribution

simple_settings-0.9.1-py2.py3-none-any.whl (12.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for simple-settings-0.9.1.tar.gz
Algorithm Hash digest
SHA256 a2c77398ece01506a6ba658e584f3e9cbc2e7c115dc2e920efff019a2c8d6c1b
MD5 49e29d214d43a5d1165caaf683261342
BLAKE2b-256 51daf416aa558ba2e6c3843d0e41910a7a06a17554950bb5f0790295fc5b22a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_settings-0.9.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b8a4ca757ab583aa2a9f601ffe7c98834f1f9f9fc12480063d5373a3e4d39f4e
MD5 0f261f9534a3dab2e89c7c481a529b3b
BLAKE2b-256 ce36544df2f437865273cfa773a543453d487078a15cf910e950253fe26931a6

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