InstallationΒΆ

Dependency Injector framework is distributed by PyPi.

Latest stable version (and all previous versions) of Dependency Injector framework can be installed from PyPi:

pip install dependency-injector

Note

Some components of Dependency Injector are implemented as C extension types. Dependency Injector is distributed as an archive with a source code, so C compiler and Python header files are required for the installation.

Sources can be cloned from GitHub:

git clone https://github.com/ets-labs/python-dependency-injector.git

Also all Dependency Injector releases can be downloaded from GitHub releases page.

Verification of currently installed version could be done using dependency_injector.VERSION constant:

>>> import dependency_injector
>>> dependency_injector.__version__
'3.43.0'