Skip to main content

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.

Metadata

Release files for dnry-config 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnry-config 0.1.4
File Size Uploaded
dnry_config-0.1.4.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dnry-config 0.1.4
File Interpreter ABI Platform
dnry_config-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / dnry_config-0.1.4.tar.gz

Download URL dnry_config-0.1.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2970efd6d410e8377b6169e4c43231cec0df6192b5bed88b4f6cccb06bf53858
BLAKE2b-256 checksum
How to use checksums
4cd7b5d10ce959c597a733cbe5000139ffbde04df857769ab53ce22596faa4fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

Release files / dnry_config-0.1.4-py3-none-any.whl

Download URL dnry_config-0.1.4-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24e341ad7949a61c2c71d9f7f1b4cb20ad6754a417d3e69086358ffded7e9d28
BLAKE2b-256 checksum
How to use checksums
befb0c228b027e364c01cfeab124b3c2fbbf6ad923ba4be9a5eca741c3940e3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page