Retrieving of specific instance configuration and caching
Project description
.. _readme:
Introduction
============
Configuration reader for Minty projects, supporting both Redis and file storage
backends.
Getting started
---------------
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")
More documentation
------------------
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/Minty Configuration/-/jobs/artifacts/master/browse/tmp/docs?job=qa>`_
Contributing
------------
Please read `CONTRIBUTING.md <https://gitlab.com/minty-python/Minty Configuration/blob/master/CONTRIBUTING.md>`_
for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
----------
We use `SemVer <https://semver.org/>`_ for versioning. For the versions
available, see the
`tags on this repository <https://gitlab.com/minty-python/Minty Configuration/tags/>`_
License
-------
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 <https://gitlab.com/minty-python/Minty Configuration/blob/master/LICENSE>`_
file for details.
Introduction
============
Configuration reader for Minty projects, supporting both Redis and file storage
backends.
Getting started
---------------
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")
More documentation
------------------
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/Minty Configuration/-/jobs/artifacts/master/browse/tmp/docs?job=qa>`_
Contributing
------------
Please read `CONTRIBUTING.md <https://gitlab.com/minty-python/Minty Configuration/blob/master/CONTRIBUTING.md>`_
for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
----------
We use `SemVer <https://semver.org/>`_ for versioning. For the versions
available, see the
`tags on this repository <https://gitlab.com/minty-python/Minty Configuration/tags/>`_
License
-------
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 <https://gitlab.com/minty-python/Minty Configuration/blob/master/LICENSE>`_
file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
minty_config-0.0.4.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file minty_config-0.0.4.tar.gz
.
File metadata
- Download URL: minty_config-0.0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a13095953ae4b2f6d1d2a8db041cdd278c82d05601ea86e1e53e42ffc38866 |
|
MD5 | eb2babebb001af024d5fdb10853a013a |
|
BLAKE2b-256 | aa13bb1231844bed57b18b5694494551fd81daf9111ff2316e7cd8a05d363210 |
File details
Details for the file minty_config-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: minty_config-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f4a062da64002b13fff53dc50c3a906aadee976b3ca49da566e3f54cd3bb2f |
|
MD5 | 731d5b4fb118c78f87301914cd8ed52a |
|
BLAKE2b-256 | fa1be5dd7f83c9b9567a307bbb4113bdf86349feee05c78166c6705e9a72baf2 |