Retrieving of specific instance configuration and caching
pip install minty-config==0.0.4
Configuration reader for Minty projects, supporting both Redis and file storage backends.
from minty_config import Configuration from minty_config.parser import ApacheConfigParser from minty_config.store import FileStore, RedisStore
store = FileStore("/etc/minty") parser = ApacheConfigParser() configuration = Configuration(parser=parser, store=store)
# Will read "/etc/minty/foobar.com.conf" configuration.get(name="foobar.com")
Please see the generated documentation via CI for more information about this module and how to contribute in our online documentation. Open index.html when you get there: https://gitlab.com/minty-python/MintyConfiguration/-/jobs/artifacts/master/browse/tmp/docs?job=qa
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository
Copyright (c) 2018, Minty Team and all persons listed in :doc:`Contributors </CONTRIBUTORS>`
This project is licensed under the EUPL, v1.2. See the EUPL-1.2.txt file for details.