yzconfig

Easy configuration for your project


Keywords
config, settings
License
Apache-2.0
Install
pip install yzconfig==1.0

Documentation

yzconfig

build

Simple package configuration framework for Django (and others)

Summary

  • Provide a simple python-file-based configuration storage shared among consumers using name prefixes

Installation

Setup:

$ make venv

Testing:

$ make test

Usage

yzconfig takes an arbitrary object and populates settings with values from its attributes whose names are constructed as prefix + attr where attr is a settings class attribute and prefix is given as argument to settings constructor.

yzconfig can be used with Django or standalone. For the latter, it's possible to provide a python dotted path to the settings object in YZCONFIG_MODULE environment variable. To be used with Django, no extra actions are required.