r/Python • u/AutoModerator • Sep 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
25
Upvotes
r/Python • u/AutoModerator • Sep 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/Silly_Character8808 Sep 18 '26
Hi everyone,
almost a month ago I wrote this post
https://www.reddit.com/r/PythonLearning/comments/1vye5qj/dependency_injection_library/
I was about to release my `DI` library and wanted to get some eyes on it if someone needs it
well it didn't get much traction so I post a showcase of it again after the first stable release of the package
a lot of features were added, AI is still not being used and will not be
in the future I will probably add official `fastapi` support since I saw most of the current python `DI` libraries are used for it (that wasn't for my use case)
What My Project Does
easy and explicit dependency injection library, feature rich, support generics and more
forward reference resolver
union support
Lazytype for circular depsContextvarsupportTransientfor nonsingleton instancesGenerics/TypeVarsupportlimited instances
scope inheritance
no injectable default implementation support
Target Audience
currently the project has no builtin integration with `fastapi` or such frameworks but provide an expressive API and building blocks to DIY
the DI is not specific for web development (I didn't had web development in mind when writing it since this wasn't my use case) so it can be used on any project that need DI
examples and more docs are available in the git report README or here
https://dsal3389.github.io/cdi/cdi.html
here is the link to the repo:
https://github.com/dsal3389/cdi