2016-10-12 10:41:50 +03:00
|
|
|
======================================================================
|
|
|
|
Dependency Injector --- Dependency injection microframework for Python
|
|
|
|
======================================================================
|
2015-04-02 16:17:00 +03:00
|
|
|
|
2016-02-02 00:13:55 +03:00
|
|
|
.. meta::
|
2016-04-20 14:19:54 +03:00
|
|
|
:google-site-verification: 6it89zX0_wccKEhAqbAiYQooS95f0BA8YfesHk6bsNA
|
2017-02-01 14:07:44 +03:00
|
|
|
:keywords: Python,Dependency injection,DI,Inversion of Control,IoC,
|
|
|
|
IoC Container,Factory, Singleton, Design Patterns
|
2016-10-12 10:41:50 +03:00
|
|
|
:description: Dependency Injector is a dependency injection microframework
|
|
|
|
for Python. It was designed to be unified, developer-friendly
|
2017-02-01 14:07:44 +03: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 18:05:25 +03:00
|
|
|
|
|
|
|
.. _index:
|
2016-02-02 00:13:55 +03:00
|
|
|
|
2020-01-27 03:53:06 +03:00
|
|
|
*Dependency Injector* is a dependency injection microframework for Python.
|
|
|
|
It was designed to be a unified and developer-friendly tool that helps
|
|
|
|
implement a dependency injection design pattern in a formal, pretty, and
|
|
|
|
Pythonic way.
|
2016-02-04 23:47:45 +03:00
|
|
|
|
2020-01-27 03:53:06 +03:00
|
|
|
The key features of the *Dependency Injector* framework are:
|
2016-02-04 23:47:45 +03:00
|
|
|
|
2020-01-27 03:53:06 +03:00
|
|
|
+ Easy, smart, and pythonic style.
|
|
|
|
+ Obvious and clear structure.
|
2016-03-31 00:40:49 +03:00
|
|
|
+ Extensibility and flexibility.
|
2016-11-11 18:05:25 +03:00
|
|
|
+ High performance.
|
2016-03-31 00:40:49 +03:00
|
|
|
+ Memory efficiency.
|
|
|
|
+ Thread safety.
|
2020-01-27 03:53:06 +03:00
|
|
|
+ Documented.
|
|
|
|
+ Semantically versioned.
|
2016-02-04 23:47:45 +03:00
|
|
|
|
2020-01-27 03:53:06 +03:00
|
|
|
*Dependency Injector* containers and providers are implemented as C extension
|
2017-03-26 22:45:05 +03:00
|
|
|
types using Cython.
|
2016-11-11 18:05:25 +03:00
|
|
|
|
2016-02-04 23:47:45 +03:00
|
|
|
Status
|
|
|
|
------
|
2015-04-02 16:17:00 +03:00
|
|
|
|
2016-10-19 19:26:46 +03:00
|
|
|
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| *PyPi* | .. image:: https://img.shields.io/pypi/v/dependency_injector.svg |
|
2020-01-27 04:32:16 +03:00
|
|
|
| | :target: https://pypi.org/project/dependency-injector/ |
|
2016-10-19 19:26:46 +03:00
|
|
|
| | :alt: Latest Version |
|
|
|
|
| | .. image:: https://img.shields.io/pypi/l/dependency_injector.svg |
|
2020-01-27 04:32:16 +03:00
|
|
|
| | :target: https://pypi.org/project/dependency-injector/ |
|
2016-10-19 19:26:46 +03:00
|
|
|
| | :alt: License |
|
|
|
|
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| *Python versions and implementations* | .. image:: https://img.shields.io/pypi/pyversions/dependency_injector.svg |
|
2020-01-27 04:32:16 +03:00
|
|
|
| | :target: https://pypi.org/project/dependency-injector/ |
|
2016-10-19 19:26:46 +03:00
|
|
|
| | :alt: Supported Python versions |
|
|
|
|
| | .. image:: https://img.shields.io/pypi/implementation/dependency_injector.svg |
|
2020-01-27 04:32:16 +03:00
|
|
|
| | :target: https://pypi.org/project/dependency-injector/ |
|
2016-10-19 19:26:46 +03:00
|
|
|
| | :alt: Supported Python implementations |
|
|
|
|
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| *Builds and tests coverage* | .. 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 |
|
2017-12-25 21:34:39 +03:00
|
|
|
| | .. image:: http://readthedocs.org/projects/python-dependency-injector/badge/?version=latest |
|
|
|
|
| | :target: http://python-dependency-injector.ets-labs.org/ |
|
|
|
|
| | :alt: Docs Status |
|
2017-05-08 19:05:02 +03: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 |
|
2016-10-19 19:26:46 +03:00
|
|
|
| | :alt: Coverage Status |
|
|
|
|
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------+
|
2016-10-19 14:58:11 +03:00
|
|
|
| *Github* | .. image:: https://img.shields.io/github/watchers/ets-labs/python-dependency-injector.svg?style=social&label=Watch |
|
|
|
|
| | :target: https://github.com/ets-labs/python-dependency-injector |
|
|
|
|
| | :alt: Github watchers |
|
|
|
|
| | .. image:: https://img.shields.io/github/stars/ets-labs/python-dependency-injector.svg?style=social&label=Star |
|
|
|
|
| | :target: https://github.com/ets-labs/python-dependency-injector |
|
|
|
|
| | :alt: Github stargazers |
|
|
|
|
| | .. image:: https://img.shields.io/github/forks/ets-labs/python-dependency-injector.svg?style=social&label=Fork |
|
|
|
|
| | :target: https://github.com/ets-labs/python-dependency-injector |
|
|
|
|
| | :alt: Github forks |
|
|
|
|
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------+
|
2015-08-31 16:31:38 +03:00
|
|
|
|
2015-04-02 16:17:00 +03:00
|
|
|
Contents
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2016-04-04 23:40:28 +03:00
|
|
|
introduction/index
|
2015-08-05 17:24:03 +03:00
|
|
|
main/installation
|
2015-06-10 09:53:15 +03:00
|
|
|
providers/index
|
2016-06-03 00:48:06 +03:00
|
|
|
containers/index
|
2016-04-20 14:19:54 +03:00
|
|
|
examples/index
|
2015-11-14 00:43:36 +03:00
|
|
|
api/index
|
2015-08-05 17:24:03 +03:00
|
|
|
main/feedback
|
|
|
|
main/changelog
|