Injectable

Latest version: v4.0.1

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

Scan your dependencies

Page 4 of 5

3.0.1

------------------

* Fix package content missing

3.0.0

------------------

* Drop support for autowiring without previous initialization of the InjectionContainer
* Refactor ``autowired`` decorator for working with the ``Autowired`` type annotation
* Added ``injectable`` decorator for registering injectables to the InjectionContainer
* Support for qualifiers, groups and namespaces
* Added ``Autowired`` type annotation for marking parameters for autowiring
* Added ``inject`` and ``inject_multiple`` as service locators
* Added InjectionContainer for registering injectables
* Official support for Python 3.7 and 3.8
* Official support for Ubuntu, Windows and MacOS
* Drop Python 3.4 and 3.5 official support
* General code refactoring
* Official documentation
* Added usage examples

2.0.0

------------------

* Drop Python 3.3 official support

1.1.2

------------------

* Support for dependencies of classes without signature
* Fix bug of builtin types not being accepted for injectable dependencies

1.1.1

------------------

* Statically infer dependency's constructor suitability for injection instead of using
trial instantiation
* Fix bug of raising ``TypeError`` when injectable fails on the trial dependency
instantiation which can happen when the dependency does provide a default
constructor with no arguments but the running environment (possibly a test suite
environment) will make the instantiation fail

1.1.0

------------------

* Enable the use of ``autowired`` decorator without parenthesis

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.