Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Easy configuration with yaml files

Project description

EasyCo

Build Status Documentation Status

Easy Configuration with yaml files

Goal

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for EasyCo, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size EasyCo-0.2.0-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size EasyCo-0.2.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page