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.

Source Distribution

dnry_config-0.1.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnry_config-0.1.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file dnry_config-0.1.4.tar.gz.

File metadata

  • Download URL: dnry_config-0.1.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dnry_config-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2970efd6d410e8377b6169e4c43231cec0df6192b5bed88b4f6cccb06bf53858
MD5 a83c27716d7e999efbb8660b159f7133
BLAKE2b-256 4cd7b5d10ce959c597a733cbe5000139ffbde04df857769ab53ce22596faa4fe

See more details on using hashes here.

File details

Details for the file dnry_config-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: dnry_config-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for dnry_config-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24e341ad7949a61c2c71d9f7f1b4cb20ad6754a417d3e69086358ffded7e9d28
MD5 b5b72cac76ae9754d5d0e202f4f03f57
BLAKE2b-256 befb0c228b027e364c01cfeab124b3c2fbbf6ad923ba4be9a5eca741c3940e3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page