picobox
picobox copied to clipboard
Dependency injection framework designed with Python in mind.
Autowiring is convenient functionality that allows to inject dependencies implicitly. Picobox core provides everything that is required to implement autowiring functionality as a third party decorator in `picobox.contrib` pacakge. The...
``` ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0 rootdir: /build/source collected 1266 items tests/test_box.py ...................................................... [ 4%] ........................................................................ [ 9%] ........................................................................ [ 15%] ........FF............ [...
Like `picobox.ext.asgi` or `picobox.ext.wsgi`, `picobox.ext.grpc` has to provide _application_ and _request_ scopes for dependencies.
One thing I regret about `picobox` is that it uses non-conventional names for methods (e.g. `pass_()`, not `inject`) and classes (e.g. `Box`, not `Container`). I'm afraid it might be a...
There are engineers who prefer declarative over imperative, even when it comes to defining DI containers (i.e. `picobox.Box`). ```python import picobox.ext.declarative as declarative class MyBox(declarative.Box): ... ```
The 'no-untyped-def' error code has been disabled before due to the code not being ready for it. This patch delivers amends to the code base, and enables the rule that...