flucto-gmbh / heisskleber

MIT License
0 stars 1 forks source link

move config objects into common namespace #30

Closed k323r closed 1 month ago

k323r commented 9 months ago

current behaviour: get config objects throught the load_config factory, imported from heisskleber.config. However, when doing so, the constructor for any given object is needed to, so it has to be imported from the corresponding submodule, e.g.:

from heisskleber.config import load_config
from heisskleber.zmq import ZmqConfig
zmq_config = load_config(ZmqConfig(), "zmq")

proposed behaviour: move all config objects into the heisskleber.config namespace, such that:

from heisskleber.config import load_config, ZmqConfig
zmq_config = load_config(ZmqConfig(), "zmq")
pacjac commented 7 months ago

I like the idea. Should be an easy fix, please add testing as well.

k323r commented 1 month ago

will be addressed in #133