dnry-config-0.1.4
توضیحات
Multi-source config library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | dnry-config-0.1.4 |
| نام | dnry-config |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ian Laird |
| ایمیل نویسنده | irlaird@gmail.com |
| آدرس صفحه اصلی | https://github.com/en0/dnry-config |
| آدرس اینترنتی | https://pypi.org/project/dnry-config/ |
| مجوز | MIT |
# 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
```bash
pip install dnry_config
```
Read a Yaml file in your program.
```python
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | PyYAML |
نحوه نصب
نصب پکیج whl dnry-config-0.1.4:
pip install dnry-config-0.1.4.whl
نصب پکیج tar.gz dnry-config-0.1.4:
pip install dnry-config-0.1.4.tar.gz