pip install ultra-simple-config
Create a yml file with your configuration, for example:
db:
url: localhost
port: 5432
format: utf8
user:
name: blubby
Then load it in your python code:
from ultra_simple_config import load_config
Then 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)