Skip to content

hozn/simple-settings

This branch is 153 commits behind drgarcia1986/simple-settings:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f822fd Β· Oct 29, 2016
Oct 29, 2016
Jun 6, 2016
Oct 28, 2016
Oct 28, 2016
Oct 29, 2016
Jan 27, 2016
May 13, 2015
Jun 6, 2016
Jun 2, 2016
Jun 6, 2016
Jan 3, 2016
Jun 6, 2016
Jun 4, 2016
Aug 13, 2016
Jun 20, 2015
Jun 6, 2016
Jun 6, 2016
Oct 29, 2016

Repository files navigation

Python Simple Settings

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 πŸ˜„).

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

Quick links

About

A simple way to manage your project settings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.8%
  • Makefile 1.2%