2020-07-11 16:15:00 +00:00
|
|
|
=================================================================
|
|
|
|
Dependency Injector --- Dependency injection framework for Python
|
|
|
|
=================================================================
|
2015-04-02 13:17:00 +00:00
|
|
|
|
2016-02-01 21:13:55 +00:00
|
|
|
.. meta::
|
2020-07-29 16:18:09 +00:00
|
|
|
:google-site-verification: V1hlKfpgL3AARAElwFcqP4qW1Smsx5bKSRU8O86i20Y
|
2017-02-01 11:07:44 +00:00
|
|
|
:keywords: Python,Dependency injection,DI,Inversion of Control,IoC,
|
|
|
|
IoC Container,Factory, Singleton, Design Patterns
|
2020-07-29 16:18:09 +00:00
|
|
|
:description: Dependency Injector is a dependency injection framework
|
2020-08-08 18:48:05 +00:00
|
|
|
for Python. It helps to maintain you application structure.
|
|
|
|
It was designed to be unified, developer-friendly
|
2017-02-01 11:07:44 +00:00
|
|
|
tool that helps to implement dependency injection design
|
|
|
|
pattern in formal, pretty, Pythonic way. Dependency Injector
|
|
|
|
provides implementations of such popular design patterns
|
|
|
|
like IoC container, Factory and Singleton. Dependency
|
|
|
|
Injector providers are implemented as C extension types
|
|
|
|
using Cython.
|
2016-11-11 15:05:25 +00:00
|
|
|
|
|
|
|
.. _index:
|
2016-02-01 21:13:55 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/v/dependency_injector.svg
|
|
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
|
|
:alt: Latest Version
|
2020-07-11 16:15:00 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/l/dependency_injector.svg
|
|
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
|
|
:alt: License
|
2020-07-11 16:15:00 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/pyversions/dependency_injector.svg
|
|
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
|
|
:alt: Supported Python versions
|
2020-07-11 16:15:00 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://img.shields.io/pypi/implementation/dependency_injector.svg
|
|
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
|
|
:alt: Supported Python implementations
|
2020-07-11 16:15:00 +00:00
|
|
|
|
|
|
|
.. image:: https://pepy.tech/badge/dependency-injector
|
|
|
|
:target: https://pepy.tech/project/dependency-injector
|
|
|
|
:alt: Downloads
|
|
|
|
|
|
|
|
.. image:: https://pepy.tech/badge/dependency-injector/month
|
|
|
|
:target: https://pepy.tech/project/dependency-injector
|
|
|
|
:alt: Downloads
|
|
|
|
|
|
|
|
.. image:: https://pepy.tech/badge/dependency-injector/week
|
|
|
|
:target: https://pepy.tech/project/dependency-injector
|
|
|
|
:alt: Downloads
|
|
|
|
|
|
|
|
.. image:: https://img.shields.io/pypi/wheel/dependency-injector.svg
|
|
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
|
|
:alt: Wheel
|
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://travis-ci.org/ets-labs/python-dependency-injector.svg?branch=master
|
|
|
|
:target: https://travis-ci.org/ets-labs/python-dependency-injector
|
|
|
|
:alt: Build Status
|
2020-07-11 16:15:00 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: http://readthedocs.org/projects/python-dependency-injector/badge/?version=latest
|
|
|
|
:target: http://python-dependency-injector.ets-labs.org/
|
|
|
|
:alt: Docs Status
|
2020-07-11 16:15:00 +00:00
|
|
|
|
2020-07-03 02:07:07 +00:00
|
|
|
.. image:: https://coveralls.io/repos/github/ets-labs/python-dependency-injector/badge.svg?branch=master
|
|
|
|
:target: https://coveralls.io/github/ets-labs/python-dependency-injector?branch=master
|
|
|
|
:alt: Coverage Status
|
|
|
|
|
2020-07-18 04:40:14 +00:00
|
|
|
``Dependency Injector`` is a dependency injection framework for Python.
|
|
|
|
|
|
|
|
It helps you understand and change the structure of the application.
|
2020-07-03 02:07:07 +00:00
|
|
|
|
2020-07-18 04:40:14 +00:00
|
|
|
With the ``Dependency Injector`` you keep **application structure in one place**.
|
|
|
|
This place is called **the container**. You use the container to manage all the components of the
|
|
|
|
application. All the component dependencies are defined explicitly. This provides the control on
|
|
|
|
the application structure. It is **easy to understand and change** it.
|
2016-02-04 20:47:45 +00:00
|
|
|
|
2020-07-18 04:40:14 +00:00
|
|
|
.. figure:: https://raw.githubusercontent.com/wiki/ets-labs/python-dependency-injector/img/di-map.svg
|
|
|
|
:target: https://github.com/ets-labs/python-dependency-injector
|
2016-02-04 20:47:45 +00:00
|
|
|
|
2020-07-18 04:40:14 +00:00
|
|
|
*The container is like a map of your application. You always know what depends on what.*
|
2016-02-04 20:47:45 +00:00
|
|
|
|
2020-07-18 04:40:14 +00:00
|
|
|
Explore the documentation to know more about the ``Dependency Injector``.
|
2016-11-11 15:05:25 +00:00
|
|
|
|
2020-07-20 20:58:18 +00:00
|
|
|
.. _contents:
|
|
|
|
|
2015-04-02 13:17:00 +00:00
|
|
|
Contents
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2016-04-04 20:40:28 +00:00
|
|
|
introduction/index
|
2015-08-05 14:24:03 +00:00
|
|
|
main/installation
|
2020-07-18 04:40:14 +00:00
|
|
|
tutorials/index
|
2015-06-10 06:53:15 +00:00
|
|
|
providers/index
|
2016-06-02 21:48:06 +00:00
|
|
|
containers/index
|
2016-04-20 11:19:54 +00:00
|
|
|
examples/index
|
2015-11-13 21:43:36 +00:00
|
|
|
api/index
|
2015-08-05 14:24:03 +00:00
|
|
|
main/feedback
|
|
|
|
main/changelog
|