Skip to main content

A simple way to manage your project settings

Project description

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.

  • Settings by cfg files.

  • Settings by Yaml files.

  • Settings inheritance (like a pipeline).

  • Special 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.6.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for simple-settings-0.6.0.tar.gz
Algorithm Hash digest
SHA256 10307a60dc6f33ea38770ac4e9d04fc60b6da2be75eba3dcf87372ed95c55a63
MD5 e98aa7b57a4389480f96e4bc06ba3598
BLAKE2b-256 955e0c47f462b10257ede831a9a1641ae1e3526282a6e252caa63a40e22322a7

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