diff --git a/README.rst b/README.rst index 5becd1a6..edceb4a1 100644 --- a/README.rst +++ b/README.rst @@ -70,6 +70,8 @@ Key features of the ``Dependency Injector``: - **Wiring**. Injects dependencies into functions and methods. Helps integrating with other frameworks: Django, Flask, Aiohttp, Sanic, FastAPI, etc. See `Wiring `_. +- **Asynchronous**. Supports asynchronous injections. + See `Asynchronous injections `_. - **Typing**. Provides typing stubs, ``mypy``-friendly. See `Typing and mypy `_. - **Performance**. Fast. Written in ``Cython``. @@ -225,4 +227,3 @@ Want to contribute? .. |tell| unicode:: U+1F4AC .. tell sign .. |fork| unicode:: U+1F500 .. fork sign .. |pull| unicode:: U+2B05 U+FE0F .. pull sign - diff --git a/docs/index.rst b/docs/index.rst index f45e2472..a539fe0e 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -78,6 +78,7 @@ Key features of the ``Dependency Injector``: - **Containers**. Provides declarative and dynamic containers. See :ref:`containers`. - **Wiring**. Injects dependencies into functions and methods. Helps integrating with other frameworks: Django, Flask, Aiohttp, Sanic, FastAPI, etc. See :ref:`wiring`. +- **Asynchronous**. Supports asynchronous injections. See :ref:`async-injections`. - **Typing**. Provides typing stubs, ``mypy``-friendly. See :ref:`provider-typing`. - **Performance**. Fast. Written in ``Cython``. - **Maturity**. Mature and production-ready. Well-tested, documented and supported. diff --git a/docs/introduction/key_features.rst b/docs/introduction/key_features.rst index 23aa6822..ca290452 100644 --- a/docs/introduction/key_features.rst +++ b/docs/introduction/key_features.rst @@ -24,6 +24,7 @@ Key features of the ``Dependency Injector``: - **Containers**. Provides declarative and dynamic containers. See :ref:`containers`. - **Wiring**. Injects dependencies into functions and methods. Helps integrating with other frameworks: Django, Flask, Aiohttp, Sanic, FastAPI, etc. See :ref:`wiring`. +- **Asynchronous**. Supports asynchronous injections. See :ref:`async-injections`. - **Typing**. Provides typing stubs, ``mypy``-friendly. See :ref:`provider-typing`. - **Performance**. Fast. Written in ``Cython``. - **Maturity**. Mature and production-ready. Well-tested, documented and supported. diff --git a/docs/providers/async.rst b/docs/providers/async.rst new file mode 100644 index 00000000..b97121e5 --- /dev/null +++ b/docs/providers/async.rst @@ -0,0 +1,12 @@ +.. _async-injections: + +Asynchronous injections +======================= + +.. meta:: + :keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Providers,Async,Injections,Asynchronous,Await, + Asyncio + :description: Dependency Injector providers support asynchronous injections. This page + demonstrates how make asynchronous dependency injections in Python. + +Providers support asynchronous injections. diff --git a/docs/providers/index.rst b/docs/providers/index.rst index 0e328048..4d6fc734 100644 --- a/docs/providers/index.rst +++ b/docs/providers/index.rst @@ -51,4 +51,5 @@ Providers module API docs - :py:mod:`dependency_injector.providers` overriding provided_instance custom + async typing_mypy