I was working on another random side project and wanted to define configs like Pydantic-Settings without actually pulling in all of Pydantic into my project, so I started writing a custom config class which turned out generic enough that I could break it off into its own thing.
One of the main things I wanted is to be able to load a TOML file for settings but to also be able to override each config option with an env var. I also really like Pydantic’s use of Annotation[..., ...] type-hinting so I did something similar
I don’t really expect it to be used by anyone else but I’m excited about putting out my first PyPi package and figured I’d share it here :)
Any feedback is very welcome!
PyPi link: https://pypi.org/project/pymicroconf/
Also AI disclosure: I got AI to partially write the description but the code itself isn’t written by AI



I love TOML!
Me too! It’s by far the best config language IMO :). I don’t know why anybody chooses to torture themselves with using YAML for their projects