Skip to content

fruechel/simple-settings

 
 

Repository files navigation

Python Simple Settings

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

$ pip install simple-settings

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.

Quick links

About

A simple way to manage your project settings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.7%
  • Makefile 2.3%