====================================================================== Dependency Injector --- Dependency injection microframework for Python ====================================================================== .. meta:: :google-site-verification: 6it89zX0_wccKEhAqbAiYQooS95f0BA8YfesHk6bsNA :keywords: Python,Dependency injection,DI,Inversion of Control,IoC, IoC Container,Factory, Singleton, Design Patterns :description: Dependency Injector is a dependency injection microframework for Python. It was designed to be unified, developer-friendly 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. .. _index: *Dependency Injector* is a dependency injection microframework for Python. It was designed to be unified, developer-friendly tool that helps to implement dependency injection design pattern in formal, pretty, Pythonic way. *Dependency Injector* framework key features are: + Easy, smart, pythonic style. + Obvious, clear structure. + Extensibility and flexibility. + High performance. + Memory efficiency. + Thread safety. + Documentation. + Semantic versioning. *Dependency Injector* containers and providers are implemented as C extension types using Cython. Status ------ +---------------------------------------+--------------------------------------------------------------------------------------------------------------------+ | *PyPi* | .. image:: https://img.shields.io/pypi/v/dependency_injector.svg | | | :target: https://pypi.python.org/pypi/dependency_injector/ | | | :alt: Latest Version | | | .. image:: https://img.shields.io/pypi/l/dependency_injector.svg | | | :target: https://pypi.python.org/pypi/dependency_injector/ | | | :alt: License | +---------------------------------------+--------------------------------------------------------------------------------------------------------------------+ | *Python versions and implementations* | .. image:: https://img.shields.io/pypi/pyversions/dependency_injector.svg | | | :target: https://pypi.python.org/pypi/dependency_injector/ | | | :alt: Supported Python versions | | | .. image:: https://img.shields.io/pypi/implementation/dependency_injector.svg | | | :target: https://pypi.python.org/pypi/dependency_injector/ | | | :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 | | | .. 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 | +---------------------------------------+--------------------------------------------------------------------------------------------------------------------+ | *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 | +---------------------------------------+--------------------------------------------------------------------------------------------------------------------+ Contents -------- .. toctree:: :maxdepth: 2 introduction/index main/installation providers/index containers/index examples/index api/index main/feedback main/changelog