Injector

Latest version: v0.22.0

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 6

0.7.9

-----

- Fixed regression with injecting unbound key resulting in None instead of raising an exception

0.7.8

-----

- Exception is raised when :class:`~injector.Injector` can't install itself into a class instance due to __slots__ presence
- Some of exception messages are now more detailed to make debugging easier when injection fails
- You can inject functions now - :class:`~injector.Injector` provides a wrapper that takes care of injecting dependencies into the original function

0.7.7

-----

- Made :class:`~injector.AssistedBuilder` behave more explicitly: it can build either innstance of a concrete class (``AssistedBuilder(cls=Class)``) or it will follow Injector bindings (if exist) and construct instance of a class pointed by an interface (``AssistedBuilder(interface=Interface)``). ``AssistedBuilder(X)`` behaviour remains the same, it's equivalent to ``AssistedBuilder(interface=X)``

0.7.6

-----

- Auto-convert README.md to RST for PyPi.

0.7.5

-----

- Added a ChangeLog!
- Added support for using Python3 annotations as binding types.

Page 6 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.