Skip to content

en0/dnry-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A multi-source configuration library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published