Apywire: Lazy object wiring and dependency injection for Python 3.12

Posted by gaigalas 23 hours ago

Counter1Comment1OpenOriginal

Comments

Comment by gaigalas 23 hours ago

Small project I've been developing. It's designed to make configuration easier, after many frustrations with omegaconf and hydra in the past.

The idea is quite simple: you create clean objects in pure python, but the glue between them can be expressed declaratively (also in python, or maybe a ini/toml/json/yaml config file).

I know there are some challenges with this approach, such as IDE support and auto-complete. However, tab-completing agents are quite good at working with apywire config files, and I've been quite comfortable maintaining object specs without a dedicated extension.

Would love to hear feedback!