Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spacemanspiff2007/easyco
Easy Configuration with yaml files
https://github.com/spacemanspiff2007/easyco
Last synced: 23 days ago
JSON representation
Easy Configuration with yaml files
- Host: GitHub
- URL: https://github.com/spacemanspiff2007/easyco
- Owner: spacemanspiff2007
- License: lgpl-3.0
- Created: 2019-05-15T13:02:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T04:59:26.000Z (about 4 years ago)
- Last Synced: 2024-10-14T04:20:11.839Z (23 days ago)
- Language: Python
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyCo
[![Build Status](https://travis-ci.org/spacemanspiff2007/EasyCo.svg?branch=master)](https://travis-ci.org/spacemanspiff2007/EasyCo)
[![Documentation Status](https://readthedocs.org/projects/easyco/badge/?version=latest)](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**nfiguration 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, ConfigContainerclass MyContainer(ConfigContainer):
SubValueA: int
SubValueB: int = 7class MyConfigFile(ConfigFile):
ConfValueA: int = 5
ConfValueB: float = 5.5sub_values = MyContainer()
cfg = MyConfigFile('test')
cfg.load()
```