Library that uses python-configuration: praline-config #104
cuelindar
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I really appreciate the work that went into this library from all the contributors. I've been using it for a while now and recently published a library that relies heavily on it, and, at least IMHO, compliments it significantly called praline-config.
Source: https://github.com/hackmonkey/praline-config
PyPi: https://pypi.org/project/praline-config/
In short
praline-config
takes the config data compiled by Configuration objects and populates dataclasses with it, type-aware and recursively, and is easy to customize without having to write any of the normal mapping code. It also has support for.env
files and binding dataclass fields from the environment. It doesn't try to handle CLI parameters directly, but it is pretty easy to plumb values into the resulting dataclass instance via a dictionary of overrides.While I built it around my personal use cases, I think it's general enough to support many/most configuration use cases. I have found it invaluable when building even simple things, and especially when building complex things with a lot of configuration data.
If you take a minute to check it out, I would appreciate any and all feedback. Note that I don't consider the API to be stable at this point, but I don't expect most of the basic classes or functions to change much.
Beta Was this translation helpful? Give feedback.
All reactions