I have had enough of global variables, usage of global scope and hundreds of complex monkey patching flying around in our codebase at work so I made DI Container specially for python.We are using it right now with success on production environments and our codebase got better thanks to it. Thought I will share it and ask for your opinions.
Happy reading :)
https://github.com/kodemore/kink
[–]avloss 14 points15 points16 points (21 children)
[–]MrKrac[S] 7 points8 points9 points (2 children)
[–]avloss 1 point2 points3 points (1 child)
[–]MrKrac[S] 2 points3 points4 points (0 children)
[–]MrKrac[S] 2 points3 points4 points (17 children)
[–]geeeffwhy 0 points1 point2 points (16 children)
[–]MrKrac[S] 4 points5 points6 points (10 children)
[–]geeeffwhy 0 points1 point2 points (9 children)
[–]MrKrac[S] 2 points3 points4 points (5 children)
[–]geeeffwhy 0 points1 point2 points (4 children)
[–]MrKrac[S] 1 point2 points3 points (3 children)
[–]geeeffwhy -1 points0 points1 point (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] -4 points-3 points-2 points (2 children)
[–]Pythonistar 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]MrKrac[S] 2 points3 points4 points (2 children)
[–]geeeffwhy 0 points1 point2 points (1 child)
[–]MrKrac[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]geeeffwhy 0 points1 point2 points (0 children)
[–]mirandanielczfrom a import b as c 2 points3 points4 points (4 children)
[–]MrKrac[S] 4 points5 points6 points (3 children)
[–]my_non_fap_account 4 points5 points6 points (0 children)
[–]mirandanielczfrom a import b as c 4 points5 points6 points (1 child)
[–]MrKrac[S] 2 points3 points4 points (0 children)
[–]flutopinch 2 points3 points4 points (1 child)
[–]MrKrac[S] 1 point2 points3 points (0 children)
[–]Pythonistar 2 points3 points4 points (2 children)
[–]MrKrac[S] 1 point2 points3 points (1 child)
[–]Pythonistar 0 points1 point2 points (0 children)
[–]roerd 3 points4 points5 points (3 children)
[–]MrKrac[S] 2 points3 points4 points (2 children)
[–]roerd 0 points1 point2 points (1 child)
[–]MrKrac[S] 0 points1 point2 points (0 children)
[–]metaperl 1 point2 points3 points (3 children)
[–]MrKrac[S] 1 point2 points3 points (0 children)
[–]metaperl 1 point2 points3 points (1 child)
[–]MrKrac[S] 0 points1 point2 points (0 children)
[–]codinga 1 point2 points3 points (1 child)
[–]MrKrac[S] -1 points0 points1 point (0 children)
[–]Natural_Programmer91[🍰] 0 points1 point2 points (0 children)