spacemanspiff2007 / EasyCo

Easy Configuration with yaml files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyCo

Build Status Documentation Status

Easy Configuration with YAML files

Goal

The goal of EasyCo is to provide an easy way of Configuration 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

Example

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()

About

Easy Configuration with yaml files

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%