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.4.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for dnry_config-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24e341ad7949a61c2c71d9f7f1b4cb20ad6754a417d3e69086358ffded7e9d28 |
|
MD5 | b5b72cac76ae9754d5d0e202f4f03f57 |
|
BLAKE2b-256 | befb0c228b027e364c01cfeab124b3c2fbbf6ad923ba4be9a5eca741c3940e3f |