mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
6eff213a68
* Add bootstrap and remove created at from ghnav-flask app * Update readme * Add logo to the docs * Update key features description * Update README * Change headers of API docs * Add alabaster theme config * Update docs index * Add tutorials section * Update what is DI page * Update DI in Python page * Update tutorials index page * Update provider docs * Update container docs * Update examples docs
95 lines
3.7 KiB
ReStructuredText
95 lines
3.7 KiB
ReStructuredText
=================================================================
|
|
Dependency Injector --- Dependency injection framework 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:
|
|
|
|
.. image:: https://img.shields.io/pypi/v/dependency_injector.svg
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
:alt: Latest Version
|
|
|
|
.. image:: https://img.shields.io/pypi/l/dependency_injector.svg
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
:alt: License
|
|
|
|
.. image:: https://img.shields.io/pypi/pyversions/dependency_injector.svg
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
:alt: Supported Python versions
|
|
|
|
.. image:: https://img.shields.io/pypi/implementation/dependency_injector.svg
|
|
:target: https://pypi.org/project/dependency-injector/
|
|
:alt: Supported Python implementations
|
|
|
|
.. 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
|
|
|
|
.. 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:: http://readthedocs.org/projects/python-dependency-injector/badge/?version=latest
|
|
:target: http://python-dependency-injector.ets-labs.org/
|
|
:alt: Docs 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
|
|
|
|
``Dependency Injector`` is a dependency injection framework for Python.
|
|
|
|
It helps you understand and change the structure of the application.
|
|
|
|
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.
|
|
|
|
.. figure:: https://raw.githubusercontent.com/wiki/ets-labs/python-dependency-injector/img/di-map.svg
|
|
:target: https://github.com/ets-labs/python-dependency-injector
|
|
|
|
*The container is like a map of your application. You always know what depends on what.*
|
|
|
|
Explore the documentation to know more about the ``Dependency Injector``.
|
|
|
|
Contents
|
|
--------
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
|
|
introduction/index
|
|
main/installation
|
|
tutorials/index
|
|
providers/index
|
|
containers/index
|
|
examples/index
|
|
api/index
|
|
main/feedback
|
|
main/changelog
|