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

Comparison to pydantic-settings #87

Closed sebastianneubauer closed 1 year ago

sebastianneubauer commented 1 year ago

Hi, I am a bit puzzled right now which approach to use to get started and I somehow fail to see the big differences to the "official" pydantic-settings (https://github.com/pydantic/pydantic-settings/tree/main). What I do notice is:

The rest looks rather equal to me, am I missing something?

Is there more which justifies to pull in ConfZ as an additional dependency? Would it maybe even make sense to contribute the files source loader to pydantic-settings?

To summarize: Great project! ConfZ is exactly what I am looking for, but pydantic-settings is just missing a little bit and is the "official" recommendation from pydantic and fastapi.

(sorry if this is explained already somewhere, then I just haven't found it)

silvanmelchior commented 1 year ago

Hi,

Thanks for your question!

ConfZ brings the following things with it, which are not provided by pydantic-settings:

I think whether this is enough to justify another dependency depends on your project. If you want to work in a well-established stack with libraries supported by hundrets of developers, then ConfZ is probably not the right choice for you, whereas if you have a more dynamic environment you might want to give it a try ;).

sebastianneubauer commented 1 year ago

Thanks, that helps a lot!