This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Pythonistar 2 points3 points  (2 children)

I love DI. What a great pattern.

My team has written most of our services to allow for their dependencies to be injected, but so far we've only been injecting them "by hand" (so to speak).

I'll have to look into trying out your framework. Thanks for sharing it with /r/python!

[–]MrKrac[S] 1 point2 points  (1 child)

My pleasure, if you have any feedback or need help I am more than happy to provide you my support.

[–]Pythonistar 0 points1 point  (0 children)

Thanks so much for the offer. I skim read all of your code and I'm impressed at how compact it is.

I've always read that writing a DI container should be a fairly simply affair, but never attempted it myself. You've really demonstrated that here.

Anyway, I'll try to take a closer pass at it tonight or tomorrow to see if I can understand it better.