pip install ultra-simple-configCreate a yml file with your configuration, for example:
db:
url: localhost
port: 5432
format: utf8
user:
name: blubbyThen load it in your python code:
from ultra_simple_config import load_configThen use it on your method like that:
@load_config(location="tests/example_config/db.yaml")
def test_loading(cfg: DictConfig):
# then you can use it like this:
print(cfg.db.url)