[untitled]
5 pointsby synchronizing0 comments
from aconf import make_config
make_config(hello="world")
And then in any file inside your project access the configuration: from aconf import conf
print(conf().hello)
# >>> world
That's literally it. The configuration will live in memory for as long as the Python runtime exists, and can be accessed by any file/class/module that calls the `conf` or `config` function (more details on Github). The `make_config` function can take any Python type; objects, functions, etc. should have no issue being passed around.
[1] https://t3.codes
[2] https://www.conductor.build
[3] https://github.com/imbue-ai/sculptor
[4] https://www.omnara.com