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.3.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minty_config-0.0.3.tar.gz.
File metadata
- Download URL: minty_config-0.0.3.tar.gz
- Upload date:
- Size: 2.8 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 |
c8b8ae1fcbe6a36b80a50293b9447c2d58b4c6fb7abd3615d085c6df2bd8a21f
|
|
| MD5 |
1cce3a927e6d39a5499d01f96a074fc7
|
|
| BLAKE2b-256 |
357b7b3c6cce375e03580e30b39c4b6516ee285f2f98f0bce1df284e8f07bcb4
|
File details
Details for the file minty_config-0.0.3-py3-none-any.whl.
File metadata
- Download URL: minty_config-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.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 |
26e0bcf7bb187f2163ad396b5433dd6344498e96e5ea984067f0a6cfc6759ec9
|
|
| MD5 |
d8e7b3a393d43153fa80822ea8e49840
|
|
| BLAKE2b-256 |
228ccff01b2332cb311e0341368c59eeb0062ca2b891e10e6c5f1fcdad48bc84
|