2015-04-02 19:29:49 +00:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
2015-08-31 13:31:38 +00:00
|
|
|
*Dependency Injector* framework is distributed by PyPi_.
|
2015-07-28 06:46:35 +00:00
|
|
|
|
2015-08-31 13:31:38 +00:00
|
|
|
Latest stable version (and all previous versions) of *Dependency Injector*
|
|
|
|
framework can be installed from PyPi_:
|
2015-05-12 13:41:57 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
2015-04-02 19:29:49 +00:00
|
|
|
|
2020-01-27 00:33:28 +00:00
|
|
|
pip install dependency-injector
|
2015-08-03 19:36:08 +00:00
|
|
|
|
2016-11-11 15:05:25 +00:00
|
|
|
.. 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.
|
|
|
|
|
2015-05-12 13:41:57 +00:00
|
|
|
Sources can be cloned from GitHub_:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2015-04-02 19:29:49 +00:00
|
|
|
|
2016-06-02 21:48:06 +00:00
|
|
|
git clone https://github.com/ets-labs/python-dependency-injector.git
|
2015-04-02 19:29:49 +00:00
|
|
|
|
2015-08-31 13:31:38 +00:00
|
|
|
Also all *Dependency Injector* releases can be downloaded from
|
|
|
|
`GitHub releases page`_.
|
2015-04-02 19:29:49 +00:00
|
|
|
|
2015-11-23 18:55:42 +00:00
|
|
|
Verification of currently installed version could be done using
|
|
|
|
:py:obj:`dependency_injector.VERSION` constant:
|
2015-10-23 12:20:25 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2016-12-04 11:13:29 +00:00
|
|
|
>>> import dependency_injector
|
|
|
|
>>> dependency_injector.__version__
|
2020-01-27 00:33:28 +00:00
|
|
|
'3.15.2'
|
2015-10-23 12:20:25 +00:00
|
|
|
|
2015-08-31 13:31:38 +00:00
|
|
|
.. _PyPi: https://pypi.python.org/pypi/dependency_injector
|
2016-04-25 08:39:35 +00:00
|
|
|
.. _GitHub: https://github.com/ets-labs/python-dependency-injector
|
|
|
|
.. _GitHub releases page: https://github.com/ets-labs/python-dependency-injector/releases
|
2017-02-28 20:05:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
.. disqus::
|