descriptive-0.0.0
توضیحات
A YAML based, pluggable configuration library inspired by Aeson
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | descriptive-0.0.0 |
| نام | descriptive |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bart Frenk |
| ایمیل نویسنده | bart.frenk@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/bartfrenk/miniscule/ |
| آدرس اینترنتی | https://pypi.org/project/descriptive/ |
| مجوز | - |
Description
===========
Introduction
------------
Miniscule is a library for flexible YAML-based configuration files, inspired by
Clojure's `Aero <https://github.com/juxt/aero>`_.
Example
-------
Create a file :code:`config.yaml` with the following contents:
.. code-block:: yaml
server:
host: !or [!env HOST, localhost]
port: !or [!env PORT, 8000]
debug: !env DEBUG
database:
name: my_database
user: my_user
password: !env DB_PASSWORD
secret: !aws/sm secret
Then, in Python:
.. code-block:: python
from miniscule import read_config
config = read_config('config.yaml')
Now, :code:`config` holds a dictionary with the structure of the
:code:`config.yaml` file, in which the tagged fields have been replaced.
نحوه نصب
نصب پکیج whl descriptive-0.0.0:
pip install descriptive-0.0.0.whl
نصب پکیج tar.gz descriptive-0.0.0:
pip install descriptive-0.0.0.tar.gz