mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
43 lines
1.4 KiB
ReStructuredText
43 lines
1.4 KiB
ReStructuredText
Installation
|
|
============
|
|
|
|
``Dependency Injector`` is available on `PyPI <https://pypi.org/project/dependency-injector/>`_.
|
|
To install the latest version you can use ``pip``:
|
|
|
|
.. code-block:: bash
|
|
|
|
pip install dependency-injector
|
|
|
|
Some modules of the ``Dependency Injector`` are implemented as C extensions.
|
|
``Dependency Injector`` is distributed as a pre-compiled wheels. Wheels are
|
|
available for all supported Python versions on Linux, Windows, and MacOS.
|
|
Linux distribution uses `manylinux <https://github.com/pypa/manylinux>`_.
|
|
|
|
If there is no appropriate wheel for your environment (Python version and OS)
|
|
installer will compile the package from sources on your machine. You'll need
|
|
a C compiler and Python header files.
|
|
|
|
To verify the installed version:
|
|
|
|
.. code-block:: bash
|
|
|
|
>>> import dependency_injector
|
|
>>> dependency_injector.__version__
|
|
'4.39.0'
|
|
|
|
.. note::
|
|
When adding ``Dependency Injector`` to ``pyproject.toml`` or ``requirements.txt``
|
|
don't forget to pin the version to the current major:
|
|
|
|
.. code-block:: bash
|
|
|
|
dependency-injector>=4.0,<5.0
|
|
|
|
*The next major version can be incompatible.*
|
|
|
|
All releases are available on the `PyPI release history page <https://pypi.org/project/dependency-injector/#history>`_.
|
|
Each release has an appropriate tag. The tags are available on the
|
|
`GitHub releases page <https://github.com/ets-labs/python-dependency-injector/releases>`_.
|
|
|
|
.. disqus::
|