Skip to content

Add environment macro

Compare
Choose a tag to compare
@zillionare zillionare released this 20 Nov 08:24
· 29 commits to master since this release

This release add environment macro. Now you can define config like this:

# defaults.yaml
postgres:
    dsn: postgres://${account}:${password}@localhost/

After cfg4py.init(), the account and password will be replaced by its value defined in environment variables.