Polidoro Config

Polidoro Config it is a configuration manager for you project

Installation

pip install polidoro-config

Usage

Create a class inheriting from ConfigBase

from pconfig import ConfigBase

class Config(ConfigBase):
  MY_VAR = 'default_value'
  ...

When the class is created will load the configuration values from the Loaders.

# script.py
from pconfig import ConfigBase

class Config(ConfigBase):
  MY_VAR = 'default_value'

print(Config.MY_VAR)
$ python script.py
default_value

$ MY_VAR="new_value" python script.py
new_value

See ConfigBase documentation for a more interesting usage