Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dnry-config, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size dnry_config-0.1.4.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View
Filename, size dnry_config-0.1.4-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page