ConfigFramework

A small and simple framework to build your configs.

This project been created mostly because of me myself needing some simplistic and same time powerful enough tool to create configs, validate them and to have simple interface.

Installing

Pypi link: https://pypi.org/project/ConfigFramework

pip install ConfigFramework

Example of usage

See examples with explanation here

Supported formats

Config formats: - Yaml - Json (strings or files) - Environment variables - Composite loading from multiple simple loaders

Features

  • Loading configs from multiple sources

  • Creating custom loaders and variables types

  • Nested configs

  • Flexible configs definition

  • Config values validations

  • Casting variables values to specific types using functions

  • Casting to acceptable variable type before dumping variable to loader

  • Default values for per loader or per variable

  • Translating one config loaders data to other (with or without including default values for each one)

  • Composite loaders that allow you to define where to look up values using only one loader, that handles combining others

Indices and tables