EasyCo-0.2.3
توضیحات
Easy configuration with yaml files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | EasyCo-0.2.3 |
| نام | EasyCo |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | spaceman_spiff |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/spacemanspiff2007/EasyCo |
| آدرس اینترنتی | https://pypi.org/project/EasyCo/ |
| مجوز | - |
# EasyCo
[](https://travis-ci.org/spacemanspiff2007/EasyCo)
[](https://easyco.readthedocs.io/en/latest/?badge=latest)
_Easy Configuration with yaml files_
# Goal
The goal of **EasyCo** is to provide an **easy** way of **Co**niguration using yaml files for Python programs.
It can automatically create a default configuration from provided default values and will validate the provided data.
# Documentation
[The documentation can be found at here](https://easyco.readthedocs.io)
# Example
```python
from EasyCo import ConfigFile, ConfigContainer
class MyContainer(ConfigContainer):
SubValueA: int
SubValueB: int = 7
class MyConfigFile(ConfigFile):
ConfValueA: int = 5
ConfValueB: float = 5.5
sub_values = MyContainer()
cfg = MyConfigFile('test')
cfg.load()
```
نیازمندی
| مقدار | نام |
|---|---|
| - | ruamel.yaml |
| - | voluptuous |
نحوه نصب
نصب پکیج whl EasyCo-0.2.3:
pip install EasyCo-0.2.3.whl
نصب پکیج tar.gz EasyCo-0.2.3:
pip install EasyCo-0.2.3.tar.gz