Python dependency injection framework, inspired by Guice
https://github.com/alecthomas/injector
Dependency injection as a formal pattern is less useful in Python than
in other languages, primarily due to its support for keyword
arguments, the ease with which objects can be mocked, and its dynamic
nature.
That said, 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 keyword arguments
with their values. As an added benefit, Injector encourages nicely
compartmentalised code through the use of Module s.
While being inspired by Guice, it does not slavishly replicate its
API. Providing a Pythonic API trumps faithfulness.
- Links to devel:languages:python / python-injector
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:yarunachalam:branches:devel:languages:python/python-injector && cd $_
- Create Badge
Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
0.20.1.tar.gz | 0000045116 44.1 KB | |
_link | 0000000130 130 Bytes | |
python-injector.changes | 0000004655 4.55 KB | |
python-injector.spec | 0000002610 2.55 KB |
Latest Revision
Yogalakshmi Arunachalam (yarunachalam)
committed
(revision 1)
Comments 0