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 --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.

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.12.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

simple_settings-0.12.0-py2.py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 2 Python 3

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