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