Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/integrations/faststream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
FastStream
===========================================

.. warning::
The integration has been moved to the `dishka-faststream <https://github.com/faststream-community/dishka-faststream>`_ package and will be removed in future versions.
.. code-block:: shell

pip install dishka-faststream


Though it is not required, you can use *dishka-faststream* integration. It features:

* automatic *REQUEST* scope management using middleware
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Some of the integrations are supported by a community, refer to their documentat

* - :ref:`grpcio`
- :ref:`Aiogram_dialog`
- :ref:`FastStream`
- `FastStream <https://github.com/faststream-community/dishka-faststream>`_ (:abbr:`com (Community support)`)
- `Flet <https://github.com/C3EQUALZz/dishka-flet>`_ (:abbr:`com (Community support)`)

* - :ref:`Fastapi`
Expand Down
11 changes: 11 additions & 0 deletions src/dishka/integrations/faststream/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import warnings

from faststream.__about__ import (
__version__ as FASTSTREAM_VERSION, # noqa: N812
)

from dishka import FromDishka

warnings.warn(
"The integration has been moved to the dishka-faststream package"
" and will be removed in future versions."
"\n`pip install dishka-faststream`"
"\nhttps://github.com/faststream-community/dishka-faststream",
DeprecationWarning,
stacklevel=2,
)

FASTSTREAM_05 = FASTSTREAM_VERSION.startswith("0.5")
FASTSTREAM_06 = FASTSTREAM_VERSION.startswith("0.6")

Expand Down
Loading