Zuehlke / ConfZ

ConfZ is a configuration management library for Python based on pydantic.
https://confz.readthedocs.io
MIT License
227 stars 11 forks source link

Edit settings and save them to file #84

Closed abrahammurciano closed 1 year ago

abrahammurciano commented 1 year ago

Is there any way for me to, at runtime, update a setting and overwrite the value in the configuration file?

Even at least a way to reload the settings from source (not temporarily) if I know the sources have changed?

silvanmelchior commented 1 year ago

Hey, please see #83 regarding file update (short answer: no, so far not, would require quite some changes).

Regarding reloading, only if you use the non-singleton mechanism (passing the sources as keyword-arguments while instantiating a class)