cffm-0.2.6
توضیحات
Configuration of Many Sources
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cffm-0.2.6 |
| نام | cffm |
| نسخه کتابخانه | 0.2.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gregor Giesen |
| ایمیل نویسنده | gregor@giesen.net |
| آدرس صفحه اصلی | https://github.com/grgi/cffm |
| آدرس اینترنتی | https://pypi.org/project/cffm/ |
| مجوز | LGPL-3.0-or-later |
.. These are examples of badges you might want to add to your README:
please update the URLs accordingly
.. image:: https://readthedocs.org/projects/cffm/badge/?version=latest
:alt: ReadTheDocs
:target: https://cffm.readthedocs.io/en/stable/
.. image:: https://img.shields.io/coveralls/github/<USER>/cffm/main.svg
:alt: Coveralls
:target: https://coveralls.io/r/<USER>/cffm
.. image:: https://img.shields.io/pypi/v/cffm.svg
:alt: PyPI-Server
:target: https://pypi.org/project/cffm/
.. image:: https://pepy.tech/badge/cffm/month
:alt: Monthly Downloads
:target: https://pepy.tech/project/cffm
.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
:alt: Project generated with PyScaffold
:target: https://pyscaffold.org/
|
====
cffm
====
Configuratio ex Fontibus Multis - Configuration from many sources
The purpose of this library is to provide a flexible framework for
an application's/library's configuration:
* [x] **Multiple sources** with precedence, e.g. default values < config files < environmental variables
* [x] Static typing with documentation
* [x] Extension via **Sections**
* [ ] Source validation
* [ ] Autogenerate example config files
Example
=======
>>> from cffm import config, field, section
>>> @config
... class AppConfig:
... loglevel: int = field(1, description="Loglevel")
... @section('bar')
... class BarConfig:
... foo: int
... baz: bool = False
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| - | anytree |
| - | setuptools |
| - | pytest |
| - | pytest-cov |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl cffm-0.2.6:
pip install cffm-0.2.6.whl
نصب پکیج tar.gz cffm-0.2.6:
pip install cffm-0.2.6.tar.gz