{"repo":"python-injector/injector","free":true,"listed":false,"github":"https://github.com/python-injector/injector","clone":"git clone https://github.com/python-injector/injector.git","description":"Python dependency injection framework, inspired by Guice","language":"Python","stars":1537,"topics":["dependency-injection","dependency-injection-framework","di","python","injector"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"Injector - Python dependency injection framework, inspired by Guice =================================================================== Introduction ------------ While dependency injection is easy to do in Python due to its support for keyword arguments, the ease with which objects can be mocked and its dynamic nature, a framework for assisting in this process can remove a lot of boiler-plate from larger applications. That's where Injector can help. It automatically and transitively provides dependencies for you. As an added benefit, Injector encourages nicely compartmentalised code through the use of modules. If you're not sure what dependency injection is or you'd like to learn more about it see: The Clean Code Talks - Don't Look For Things! (a talk by Miško Hevery) Inversion of Control Containers and the Dependency Injection pattern (an article by Martin Fowler) The core values of Injector are: Simplicity - while being inspired by Guice, Injector does not slavishly replicate its API. Providing a Pythonic API trumps faithfulness. Additionally some features are omitted because supporting them would be cumbersome and introduce a little bit too much \"magic\" (member injection, method injection). Connected to this, Injector tries to be as nonintrusive as possible. For example while you may declare a class' constructor to expect some injectable parameters, the class' constructor remains a standard constructor – you may instantiate the class just the same manually, if you want. No","default_branch":null,"files":null,"tree":[],"storefront":"/r/python-injector","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/python-injector/injector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}