Multi-source config library
Project description
DNRY-Config
A multi-source configuration library.
The goal of DNRY-Config is to simplify configuration loading and overriding. With DNRY-Config you can easily specify several configuration sources and use them from your application without dealing with the details.
DNRY-Config resolve conflicts and provides namespaced access to keys to support well organized configuration files.
Quick Start
Install DNRY-Config
pip install dnry-config
Read a Yaml file in your program.
from dnry.config import ConfigFactory
from dnry.config.yaml import YamlSource
conf = ConfigurationFactory([
YamlSource("./config1.yaml")
]).build()
config_value = conf.get("app:message")
There are many examples in the samples/
directory.
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
dnry_config-0.1.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for dnry_config-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b31c7821d1702843b5a745db0c8d67a8d3fa34ad4627a65b7ada9b08bd9ba8 |
|
MD5 | 3345b95299c15086bc7fd19c8f20cf43 |
|
BLAKE2b-256 | 7f5d5ad3a071fab902e055b256bdbaca6033a8ead7cc57eeaea66aa9ceee592b |