faststream 0.7.7__tar.gz → 0.7.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {faststream-0.7.7 → faststream-0.7.9}/PKG-INFO +5 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/__init__.py +2 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/__main__.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/_compat.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/application.py +27 -11
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/broker/broker.py +18 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/docs.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/main.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/asgi_multiprocess.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/configs/__init__.py +9 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/configs/broker.py +62 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/context/composition.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/context/context_type.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/context/resolve.py +1 -1
- faststream-0.7.9/faststream/_internal/di/body.py +27 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/di/config.py +2 -11
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/call_wrapper.py +7 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/specification.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/call_item.py +3 -3
- faststream-0.7.9/faststream/_internal/endpoint/subscriber/hints.py +106 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/usecase.py +28 -21
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/utils.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/usecase.py +6 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/_compat.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/context.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/router.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/kafka/__init__.py +5 -0
- faststream-0.7.9/faststream/_internal/kafka/calls.py +202 -0
- faststream-0.7.9/faststream/_internal/kafka/headers.py +13 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/formatter.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/middlewares.py +7 -7
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/parser.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/proto.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/testing/broker.py +9 -6
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/testing/calls.py +37 -12
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/types.py +1 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/utils/functions.py +2 -45
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/utils/nuid.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/app.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/app.py +3 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/asyncapi/docs.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/asyncapi/try_it_out.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/ping.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/params.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/request.py +1 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/response.py +1 -1
- faststream-0.7.9/faststream/confluent/_compat.py +10 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/broker/broker.py +14 -7
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/broker/registrator.py +5 -5
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/broker/router.py +9 -2
- faststream-0.7.9/faststream/confluent/call_wrapper.py +17 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/configs/broker.py +53 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/fastapi/fastapi.py +5 -5
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/helpers/client.py +37 -7
- faststream-0.7.9/faststream/confluent/message.py +159 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/parser.py +7 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/config.py +2 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/factory.py +2 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/producer.py +5 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/state.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/usecase.py +30 -13
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/response.py +5 -5
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/subscriber/usecase.py +66 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/testing.py +27 -14
- {faststream-0.7.7 → faststream-0.7.9}/faststream/exceptions.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/__init__.py +2 -1
- faststream-0.7.9/faststream/kafka/_compat.py +24 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/broker/broker.py +33 -13
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/broker/registrator.py +21 -18
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/broker/router.py +14 -6
- faststream-0.7.9/faststream/kafka/call_wrapper.py +16 -0
- faststream-0.7.9/faststream/kafka/configs/broker.py +111 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/fastapi/fastapi.py +29 -20
- faststream-0.7.9/faststream/kafka/helpers/__init__.py +4 -0
- faststream-0.7.9/faststream/kafka/helpers/admin.py +85 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/helpers/rebalance_listener.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/message.py +30 -11
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/parser.py +11 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/config.py +2 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/factory.py +11 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/producer.py +4 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/usecase.py +33 -16
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/response.py +5 -5
- faststream-0.7.9/faststream/kafka/schemas/__init__.py +4 -0
- faststream-0.7.9/faststream/kafka/schemas/partition.py +35 -0
- faststream-0.7.9/faststream/kafka/schemas/topic.py +93 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/subscriber/config.py +3 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/subscriber/factory.py +41 -6
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/subscriber/specification.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/subscriber/usecase.py +121 -9
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/testing.py +14 -11
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/acknowledgement/middleware.py +31 -25
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/exception.py +3 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/__init__.py +14 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/annotations.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/broker.py +21 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/config.py +42 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/registrator.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/router.py +3 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/fastapi/__init__.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/fastapi/fastapi.py +10 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/parser.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/subscriber/usecase.py +4 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/broker.py +17 -6
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/router.py +7 -0
- faststream-0.7.9/faststream/nats/configs/broker.py +121 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/helpers/state.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/parser.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/producer.py +38 -24
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/pull_sub.py +12 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/factory.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/state.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/key_value_subscriber.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/object_storage_subscriber.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/stream_pull_subscriber.py +86 -20
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/testing.py +5 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/params/params.py +3 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/middleware.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/broker/broker.py +32 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/broker/router.py +7 -0
- faststream-0.7.9/faststream/rabbit/configs/broker.py +94 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/parser.py +3 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/subscriber/usecase.py +22 -6
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/testing.py +13 -31
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/annotations.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/broker.py +5 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/registrator.py +106 -20
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/router.py +7 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/sentinel_broker.py +4 -0
- faststream-0.7.9/faststream/redis/configs/broker.py +121 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/configs/state.py +2 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/fastapi/__init__.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/fastapi/fastapi.py +28 -19
- faststream-0.7.9/faststream/redis/message.py +262 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/parser/binary.py +4 -6
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/parser/parsers.py +41 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/producer.py +12 -20
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/usecase.py +34 -28
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/types.py +20 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/usecases/basic.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/usecases/channel_subscriber.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/usecases/list_subscriber.py +4 -4
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/usecases/stream_subscriber.py +15 -12
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/testing.py +5 -3
- {faststream-0.7.7 → faststream-0.7.9}/faststream/response/response.py +1 -1
- {faststream-0.7.7 → faststream-0.7.9}/faststream/security.py +2 -2
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/message.py +36 -12
- {faststream-0.7.7 → faststream-0.7.9}/pyproject.toml +40 -37
- faststream-0.7.7/faststream/confluent/message.py +0 -88
- faststream-0.7.7/faststream/kafka/configs/broker.py +0 -81
- faststream-0.7.7/faststream/kafka/helpers/__init__.py +0 -3
- faststream-0.7.7/faststream/kafka/schemas/__init__.py +0 -3
- faststream-0.7.7/faststream/kafka/schemas/partition.py +0 -24
- faststream-0.7.7/faststream/nats/configs/broker.py +0 -60
- faststream-0.7.7/faststream/rabbit/configs/broker.py +0 -39
- faststream-0.7.7/faststream/redis/configs/broker.py +0 -42
- faststream-0.7.7/faststream/redis/message.py +0 -179
- {faststream-0.7.7 → faststream-0.7.9}/LICENSE +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/README.md +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/__about__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/basic_types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/broker/pub_base.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/broker/registrator.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/broker/router.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/dto.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/options.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/basereload.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/multiprocess.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/watchfiles.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/utils/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/utils/errors.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/utils/imports.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/utils/logs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/utils/parser.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/configs/endpoint.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/configs/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/constants.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/context/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/context/repository.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/di/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/proto.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/usecase.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/mixins.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/subscriber/supervisor.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/get_dependant.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/fastapi/route.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/kafka/keys.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/logger_proxy.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/params_storage.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/logger/state.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/producer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/testing/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/testing/app.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/testing/ast.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/utils/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/utils/data.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/utils/path.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/asyncapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/factories/asyncapi/route.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/handlers.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/asgi/websocket.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/cli.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/configs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/fastapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/helpers/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/helpers/admin.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/helpers/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/schemas/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/schemas/partition.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/schemas/topic.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/subscriber/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/subscriber/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/confluent/types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/context.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/configs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/exceptions.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/fastapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/publisher/state.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/schemas/params.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/kafka/types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/message/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/message/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/message/source_type.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/message/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/acknowledgement/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/acknowledgement/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/middlewares/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/path.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/producer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/publisher/usecase.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/response.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/subscriber/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/subscriber/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/testing.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/mqtt/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/registrator.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/broker/state.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/configs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/fastapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/fastapi/fastapi.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/helpers/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/helpers/bucket_declarer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/helpers/obj_storage_declarer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/helpers/stream_builder.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/publisher/usecase.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/response.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/js_stream.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/kv_watch.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/obj_watch.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/schemas/schedule.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/adapters.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/basic.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/core_subscriber.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/stream_basic.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/nats/subscriber/usecases/stream_push_subscriber.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/baggage.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/consts.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/params/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/params/no_cast.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/consts.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/container.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/manager.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/prometheus/types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/py.typed +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/annotations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/broker/registrator.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/configs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/configs/base.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/fastapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/fastapi/fastapi.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/helpers/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/helpers/channel_manager.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/helpers/declarer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/helpers/state.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/options.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/producer.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/publisher/usecase.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/response.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/schemas/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/schemas/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/schemas/constants.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/schemas/exchange.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/schemas/queue.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/subscriber/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/subscriber/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/types.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/rabbit/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/_compat.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/cluster_broker.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/broker/logging.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/configs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/exceptions.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/opentelemetry/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/opentelemetry/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/opentelemetry/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/parser/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/parser/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/prometheus/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/prometheus/middleware.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/prometheus/provider.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/fake.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/publisher/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/response.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/list_sub.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/proto.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/pub_sub.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/schemas/stream_sub.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/security.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/config.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/redis/subscriber/usecases/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/response/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/response/publish_type.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/response/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/factory.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/site.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/generate.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/http/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/http/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/channels.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/components.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/contact.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/docs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/info.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/license.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/operations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/schema.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/servers.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/tag.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v2_6_0/schema/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/generate.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/http.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/kafka.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/channel.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/operation.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/mqtt.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/nats.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/redis.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/bindings/sqs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/channels.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/components.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/contact.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/docs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/info.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/license.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/message.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/operations.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/schema.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/servers.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/tag.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/asyncapi/v3_0_0/schema/utils.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/base/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/base/generator.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/base/info.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/base/schema.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/base/specification.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/amqp.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/http.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/kafka.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/main.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/mqtt.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/nats.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/redis.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/bindings/sqs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/broker.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/extra/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/extra/contact.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/extra/external_docs.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/extra/license.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/extra/tag.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/message/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/message/model.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/operation/__init__.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/operation/model.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/publisher.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/specification/schema/subscriber.py +0 -0
- {faststream-0.7.7 → faststream-0.7.9}/faststream/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: faststream
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.9
|
|
4
4
|
Summary: A thin, typed Python client for Kafka, RabbitMQ, NATS, Redis and MQTT — with AsyncAPI docs and in-memory testing.
|
|
5
5
|
Keywords: rabbitmq,kafka,nats,redis,mqtt,asyncapi,framework,message brokers
|
|
6
6
|
Author: AG2AI, Nikita Pastukhov
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
21
22
|
Classifier: Operating System :: OS Independent
|
|
22
23
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
23
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
@@ -38,11 +39,11 @@ Requires-Dist: fast-depends[pydantic]>=3.0.9
|
|
|
38
39
|
Requires-Dist: typing-extensions>=4.12.0
|
|
39
40
|
Requires-Dist: anyio>=4.14.2,<5
|
|
40
41
|
Requires-Dist: typer>=0.9,!=0.12,<=0.27.1 ; extra == 'cli'
|
|
41
|
-
Requires-Dist: watchfiles>=0.15.0,<1.
|
|
42
|
+
Requires-Dist: watchfiles>=0.15.0,<1.4.0 ; extra == 'cli'
|
|
42
43
|
Requires-Dist: confluent-kafka>=2,!=2.8.1,<3 ; python_full_version < '3.13' and extra == 'confluent'
|
|
43
44
|
Requires-Dist: confluent-kafka>=2.6,!=2.8.1,<3 ; python_full_version >= '3.13' and extra == 'confluent'
|
|
44
|
-
Requires-Dist: aiokafka>=0.9,<0.
|
|
45
|
-
Requires-Dist: zmqtt>=0.2.
|
|
45
|
+
Requires-Dist: aiokafka>=0.9,<0.16 ; extra == 'kafka'
|
|
46
|
+
Requires-Dist: zmqtt>=0.2.4,<0.3.0 ; extra == 'mqtt'
|
|
46
47
|
Requires-Dist: nats-py>=2.14.0,<=3.0.0 ; extra == 'nats'
|
|
47
48
|
Requires-Dist: opentelemetry-sdk>=1.24.0,<2.0.0 ; extra == 'otel'
|
|
48
49
|
Requires-Dist: prometheus-client>=0.20.0,<0.30.0 ; extra == 'prometheus'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"""A Python framework for building services interacting with Apache Kafka, RabbitMQ, NATS and Redis."""
|
|
2
2
|
|
|
3
|
+
from faststream._internal.configs import UnderlyingDriverAnnotation
|
|
3
4
|
from faststream._internal.testing.app import TestApp
|
|
4
5
|
from faststream._internal.utils import apply_types
|
|
5
6
|
from faststream.annotations import ContextRepo, Logger
|
|
@@ -30,5 +31,6 @@ __all__ = (
|
|
|
30
31
|
"SourceType",
|
|
31
32
|
"StreamMessage",
|
|
32
33
|
"TestApp",
|
|
34
|
+
"UnderlyingDriverAnnotation",
|
|
33
35
|
"apply_types",
|
|
34
36
|
)
|
|
@@ -15,7 +15,7 @@ import warnings
|
|
|
15
15
|
|
|
16
16
|
warnings.filterwarnings("default", category=ImportWarning, module="faststream")
|
|
17
17
|
|
|
18
|
-
from faststream._internal.cli.main import cli #
|
|
18
|
+
from faststream._internal.cli.main import cli # ruff: ignore[module-import-not-at-top-of-file]
|
|
19
19
|
|
|
20
20
|
if __name__ == "__main__":
|
|
21
21
|
cli(prog_name="faststream")
|
|
@@ -155,7 +155,7 @@ else:
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
if sys.version_info >= (3, 11):
|
|
158
|
-
ExceptionGroup = ExceptionGroup #
|
|
158
|
+
ExceptionGroup = ExceptionGroup # ruff: ignore[undefined-name, self-assigning-variable]
|
|
159
159
|
else:
|
|
160
160
|
from exceptiongroup import ExceptionGroup
|
|
161
161
|
|
|
@@ -244,7 +244,7 @@ except ImportError:
|
|
|
244
244
|
opentelemetry: Any
|
|
245
245
|
|
|
246
246
|
try:
|
|
247
|
-
import opentelemetry
|
|
247
|
+
import opentelemetry.semconv
|
|
248
248
|
except ImportError:
|
|
249
249
|
opentelemetry = None
|
|
250
250
|
HAS_OPENTELEMETRY = False
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from collections.abc import AsyncGenerator, Callable, Sequence
|
|
4
|
-
from contextlib import asynccontextmanager
|
|
4
|
+
from contextlib import AbstractAsyncContextManager, asynccontextmanager, nullcontext
|
|
5
5
|
from typing import TYPE_CHECKING, Any, Optional, TypeVar
|
|
6
6
|
|
|
7
|
-
from typing_extensions import ParamSpec, deprecated
|
|
7
|
+
from typing_extensions import ParamSpec, Self, deprecated
|
|
8
8
|
|
|
9
9
|
from faststream._internal.di import FastDependsConfig
|
|
10
10
|
from faststream._internal.logger import logger
|
|
11
11
|
from faststream._internal.utils import apply_types
|
|
12
|
-
from faststream._internal.utils.functions import
|
|
12
|
+
from faststream._internal.utils.functions import to_async
|
|
13
13
|
from faststream.exceptions import SetupError
|
|
14
14
|
from faststream.specification import AsyncAPI
|
|
15
15
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
|
+
from types import TracebackType
|
|
18
|
+
|
|
17
19
|
from faststream._internal.basic_types import (
|
|
18
20
|
AnyCallable,
|
|
19
21
|
AsyncFunc,
|
|
@@ -26,6 +28,8 @@ if TYPE_CHECKING:
|
|
|
26
28
|
from faststream.specification.base import SpecificationFactory
|
|
27
29
|
|
|
28
30
|
|
|
31
|
+
catch_startup_validation_error: Callable[[], AbstractAsyncContextManager[Any, Any]]
|
|
32
|
+
|
|
29
33
|
try:
|
|
30
34
|
from pydantic import ValidationError as PValidation
|
|
31
35
|
|
|
@@ -50,8 +54,8 @@ try:
|
|
|
50
54
|
invalid_fields=invalid_fields,
|
|
51
55
|
) from e
|
|
52
56
|
|
|
53
|
-
except ImportError:
|
|
54
|
-
catch_startup_validation_error =
|
|
57
|
+
except ImportError: # pragma: no cover
|
|
58
|
+
catch_startup_validation_error = nullcontext
|
|
55
59
|
|
|
56
60
|
|
|
57
61
|
P_HookParams = ParamSpec("P_HookParams")
|
|
@@ -81,7 +85,7 @@ class StartAbleApplication:
|
|
|
81
85
|
def context(self) -> "ContextRepo":
|
|
82
86
|
return self.config.context
|
|
83
87
|
|
|
84
|
-
def _init_setupable_( #
|
|
88
|
+
def _init_setupable_( # ruff: ignore[bad-dunder-method-name]
|
|
85
89
|
self,
|
|
86
90
|
*brokers: "BrokerUsecase[Any, Any, Any]",
|
|
87
91
|
specification: Optional["SpecificationFactory"] = None,
|
|
@@ -189,7 +193,19 @@ class Application(StartAbleApplication):
|
|
|
189
193
|
context__=self.context,
|
|
190
194
|
)
|
|
191
195
|
else:
|
|
192
|
-
self.lifespan_context =
|
|
196
|
+
self.lifespan_context = lambda *_, **__: nullcontext()
|
|
197
|
+
|
|
198
|
+
async def __aenter__(self) -> Self:
|
|
199
|
+
await self.start()
|
|
200
|
+
return self
|
|
201
|
+
|
|
202
|
+
async def __aexit__(
|
|
203
|
+
self,
|
|
204
|
+
exc_type: type[BaseException] | None = None,
|
|
205
|
+
exc_val: BaseException | None = None,
|
|
206
|
+
exc_tb: Optional["TracebackType"] = None,
|
|
207
|
+
) -> None:
|
|
208
|
+
await self.stop()
|
|
193
209
|
|
|
194
210
|
@abstractmethod
|
|
195
211
|
def exit(self) -> None:
|
|
@@ -233,7 +249,7 @@ class Application(StartAbleApplication):
|
|
|
233
249
|
for func in self._on_startup_calling:
|
|
234
250
|
await func(**run_extra_options)
|
|
235
251
|
|
|
236
|
-
yield
|
|
252
|
+
yield # ruff: ignore[fallible-context-manager]
|
|
237
253
|
|
|
238
254
|
for func in self._after_startup_calling:
|
|
239
255
|
await func()
|
|
@@ -249,7 +265,7 @@ class Application(StartAbleApplication):
|
|
|
249
265
|
"FastStream app starting...",
|
|
250
266
|
)
|
|
251
267
|
|
|
252
|
-
yield
|
|
268
|
+
yield # ruff: ignore[fallible-context-manager]
|
|
253
269
|
|
|
254
270
|
self._log(
|
|
255
271
|
log_level,
|
|
@@ -276,7 +292,7 @@ class Application(StartAbleApplication):
|
|
|
276
292
|
for func in self._on_shutdown_calling:
|
|
277
293
|
await func()
|
|
278
294
|
|
|
279
|
-
yield
|
|
295
|
+
yield # ruff: ignore[fallible-context-manager]
|
|
280
296
|
|
|
281
297
|
for func in self._after_shutdown_calling:
|
|
282
298
|
await func()
|
|
@@ -289,7 +305,7 @@ class Application(StartAbleApplication):
|
|
|
289
305
|
"""Separated startup logging."""
|
|
290
306
|
self._log(log_level, "FastStream app shutting down...")
|
|
291
307
|
|
|
292
|
-
yield
|
|
308
|
+
yield # ruff: ignore[fallible-context-manager]
|
|
293
309
|
|
|
294
310
|
self._log(log_level, "FastStream app shut down gracefully.")
|
|
295
311
|
|
|
@@ -2,9 +2,11 @@ from abc import abstractmethod
|
|
|
2
2
|
from collections.abc import Iterable, Sequence
|
|
3
3
|
from typing import TYPE_CHECKING, Any, Generic, Optional
|
|
4
4
|
|
|
5
|
+
import anyio
|
|
5
6
|
from fast_depends import Provider
|
|
6
7
|
from typing_extensions import Self
|
|
7
8
|
|
|
9
|
+
from faststream._internal._compat import ExceptionGroup
|
|
8
10
|
from faststream._internal.configs import BrokerConfigType_co
|
|
9
11
|
from faststream._internal.types import (
|
|
10
12
|
BrokerMiddleware,
|
|
@@ -20,6 +22,7 @@ if TYPE_CHECKING:
|
|
|
20
22
|
|
|
21
23
|
from faststream._internal.context.repository import ContextRepo
|
|
22
24
|
from faststream._internal.di import FastDependsConfig
|
|
25
|
+
from faststream._internal.endpoint.subscriber import SubscriberUsecase
|
|
23
26
|
from faststream._internal.producer import ProducerProto
|
|
24
27
|
from faststream.specification.schema import BrokerSpec
|
|
25
28
|
|
|
@@ -127,11 +130,24 @@ class BrokerUsecase(
|
|
|
127
130
|
exc_tb: Optional["TracebackType"] = None,
|
|
128
131
|
) -> None:
|
|
129
132
|
"""Closes the object."""
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
errors: list[Exception] = []
|
|
134
|
+
|
|
135
|
+
async def stop_subscriber(sub: "SubscriberUsecase[MsgType]") -> None:
|
|
136
|
+
try:
|
|
137
|
+
await sub.stop()
|
|
138
|
+
except Exception as e:
|
|
139
|
+
errors.append(e)
|
|
140
|
+
|
|
141
|
+
async with anyio.create_task_group() as tg:
|
|
142
|
+
for sub in self.subscribers:
|
|
143
|
+
_ = tg.start_soon(stop_subscriber, sub)
|
|
132
144
|
|
|
133
145
|
self.running = False
|
|
134
146
|
|
|
147
|
+
if errors:
|
|
148
|
+
msg = "Failed to stop subscribers"
|
|
149
|
+
raise ExceptionGroup(msg, errors)
|
|
150
|
+
|
|
135
151
|
@abstractmethod
|
|
136
152
|
async def ping(self, timeout: float | None) -> bool:
|
|
137
153
|
"""Check connection alive."""
|
|
@@ -12,10 +12,10 @@ from faststream._internal._compat import json_dumps, model_parse
|
|
|
12
12
|
from faststream._internal.cli.utils.imports import import_from_string
|
|
13
13
|
from faststream.exceptions import INSTALL_WATCHFILES, INSTALL_YAML, SCHEMA_NOT_SUPPORTED
|
|
14
14
|
from faststream.specification.asyncapi.site import serve_app
|
|
15
|
-
from faststream.specification.asyncapi.v2_6_0.schema import ( #
|
|
15
|
+
from faststream.specification.asyncapi.v2_6_0.schema import ( # ruff: ignore[banned-module-level-imports]
|
|
16
16
|
ApplicationSchema as SchemaV2_6,
|
|
17
17
|
)
|
|
18
|
-
from faststream.specification.asyncapi.v3_0_0.schema import ( #
|
|
18
|
+
from faststream.specification.asyncapi.v3_0_0.schema import ( # ruff: ignore[banned-module-level-imports]
|
|
19
19
|
ApplicationSchema as SchemaV3,
|
|
20
20
|
)
|
|
21
21
|
|
|
@@ -127,7 +127,7 @@ def run(
|
|
|
127
127
|
"--log-config",
|
|
128
128
|
help=(
|
|
129
129
|
"Set file to configure logging. Support "
|
|
130
|
-
f"{', '.join(f'`{x.value}`' for x in LogFiles)} extensions." #
|
|
130
|
+
f"{', '.join(f'`{x.value}`' for x in LogFiles)} extensions." # ruff: ignore[function-call-in-default-argument]
|
|
131
131
|
),
|
|
132
132
|
show_default=False,
|
|
133
133
|
),
|
{faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/cli/supervisors/asgi_multiprocess.py
RENAMED
|
@@ -41,7 +41,7 @@ if HAS_UVICORN:
|
|
|
41
41
|
self.config._run_extra_options["worker_id"] = i
|
|
42
42
|
extra: dict[str, Any] = {"sockets": self.sockets}
|
|
43
43
|
if _UVICORN_TAKES_TARGET:
|
|
44
|
-
extra["target"] = self.target
|
|
44
|
+
extra["target"] = self.target # type: ignore[attr-defined]
|
|
45
45
|
process = Process(self.config, **extra)
|
|
46
46
|
process.start()
|
|
47
47
|
self.processes.append(process)
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
from .broker import
|
|
1
|
+
from .broker import (
|
|
2
|
+
BrokerConfig,
|
|
3
|
+
BrokerConfigType_co,
|
|
4
|
+
ConfigComposition,
|
|
5
|
+
UnderlyingDriverAnnotation,
|
|
6
|
+
UnderlyingDriverAnnotations,
|
|
7
|
+
)
|
|
2
8
|
from .endpoint import PublisherUsecaseConfig, SubscriberUsecaseConfig
|
|
3
9
|
from .specification import (
|
|
4
10
|
PublisherSpecificationConfig,
|
|
@@ -13,4 +19,6 @@ __all__ = (
|
|
|
13
19
|
"PublisherUsecaseConfig",
|
|
14
20
|
"SubscriberSpecificationConfig",
|
|
15
21
|
"SubscriberUsecaseConfig",
|
|
22
|
+
"UnderlyingDriverAnnotation",
|
|
23
|
+
"UnderlyingDriverAnnotations",
|
|
16
24
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from collections.abc import Sequence
|
|
1
|
+
from collections.abc import Mapping, Sequence
|
|
2
2
|
from dataclasses import dataclass, field
|
|
3
|
-
from typing import TYPE_CHECKING, Any, Generic, Optional, Union
|
|
3
|
+
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeAlias, Union
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypeVar as TypeVar313
|
|
6
6
|
|
|
@@ -20,6 +20,24 @@ if TYPE_CHECKING:
|
|
|
20
20
|
from faststream.middlewares import AckPolicy
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
@dataclass(kw_only=True, slots=True)
|
|
24
|
+
class UnderlyingDriverAnnotation:
|
|
25
|
+
"""A driver class mapped to the context annotation that injects it.
|
|
26
|
+
|
|
27
|
+
Attributes:
|
|
28
|
+
type_hint: the context annotation to use instead.
|
|
29
|
+
module: where that annotation is importable from.
|
|
30
|
+
name: its name in that module.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
type_hint: Any
|
|
34
|
+
module: str
|
|
35
|
+
name: str
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
UnderlyingDriverAnnotations: TypeAlias = Mapping[Any, UnderlyingDriverAnnotation | Any]
|
|
39
|
+
|
|
40
|
+
|
|
23
41
|
@dataclass(kw_only=True)
|
|
24
42
|
class BrokerConfig:
|
|
25
43
|
prefix: str = ""
|
|
@@ -36,6 +54,10 @@ class BrokerConfig:
|
|
|
36
54
|
id_generator: IdGenerator = gen_cor_id
|
|
37
55
|
|
|
38
56
|
# subscriber options
|
|
57
|
+
underlying_driver_annotations: UnderlyingDriverAnnotations = field(
|
|
58
|
+
default_factory=dict
|
|
59
|
+
)
|
|
60
|
+
default_driver_annotations: UnderlyingDriverAnnotations = field(default_factory=dict)
|
|
39
61
|
broker_dependencies: Sequence["Dependant"] = ()
|
|
40
62
|
graceful_timeout: float | None = 15.0
|
|
41
63
|
ack_policy: "AckPolicy" = field(default_factory=lambda: EMPTY)
|
|
@@ -45,6 +67,16 @@ class BrokerConfig:
|
|
|
45
67
|
# untyped callers still pass a generator: the first subscriber would spend it
|
|
46
68
|
self.broker_dependencies = tuple(self.broker_dependencies)
|
|
47
69
|
|
|
70
|
+
@property
|
|
71
|
+
def resolved_underlying_driver_annotations(
|
|
72
|
+
self,
|
|
73
|
+
) -> UnderlyingDriverAnnotations:
|
|
74
|
+
# A broker's own rows are the defaults; anything the user passed wins.
|
|
75
|
+
return {
|
|
76
|
+
**self.default_driver_annotations,
|
|
77
|
+
**self.underlying_driver_annotations,
|
|
78
|
+
}
|
|
79
|
+
|
|
48
80
|
def __repr__(self) -> str:
|
|
49
81
|
return f"{self.__class__.__name__}(id: {id(self)})"
|
|
50
82
|
|
|
@@ -77,7 +109,7 @@ BrokerConfigType_co = TypeVar313(
|
|
|
77
109
|
ConfigType = Union["ConfigComposition[Any]", "BrokerConfigType_co", BrokerConfig]
|
|
78
110
|
|
|
79
111
|
|
|
80
|
-
class ConfigComposition(Generic[BrokerConfigType_co]): #
|
|
112
|
+
class ConfigComposition(Generic[BrokerConfigType_co]): # ruff: ignore[too-many-public-methods]
|
|
81
113
|
def __init__(self, config: BrokerConfigType_co) -> None:
|
|
82
114
|
self.configs: tuple[ConfigType[BrokerConfigType_co], ...] = (config,)
|
|
83
115
|
|
|
@@ -171,6 +203,33 @@ class ConfigComposition(Generic[BrokerConfigType_co]): # noqa: PLR0904
|
|
|
171
203
|
context |= c.extra_context
|
|
172
204
|
return context
|
|
173
205
|
|
|
206
|
+
@property
|
|
207
|
+
def underlying_driver_annotations(
|
|
208
|
+
self,
|
|
209
|
+
) -> UnderlyingDriverAnnotations:
|
|
210
|
+
annotations: dict[Any, Any] = {}
|
|
211
|
+
for c in self.configs:
|
|
212
|
+
annotations |= c.underlying_driver_annotations
|
|
213
|
+
return annotations
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
def default_driver_annotations(
|
|
217
|
+
self,
|
|
218
|
+
) -> UnderlyingDriverAnnotations:
|
|
219
|
+
annotations: dict[Any, Any] = {}
|
|
220
|
+
for c in self.configs:
|
|
221
|
+
annotations |= c.default_driver_annotations
|
|
222
|
+
return annotations
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
def resolved_underlying_driver_annotations(
|
|
226
|
+
self,
|
|
227
|
+
) -> UnderlyingDriverAnnotations:
|
|
228
|
+
return {
|
|
229
|
+
**self.default_driver_annotations,
|
|
230
|
+
**self.underlying_driver_annotations,
|
|
231
|
+
}
|
|
232
|
+
|
|
174
233
|
@property
|
|
175
234
|
def prefix(self) -> str:
|
|
176
235
|
return "".join(c.prefix for c in self.configs)
|
|
@@ -80,7 +80,7 @@ class ContextRepoComposition(ContextRepo):
|
|
|
80
80
|
for context in self._contexts:
|
|
81
81
|
try:
|
|
82
82
|
return context.resolve(argument)
|
|
83
|
-
except ContextError: #
|
|
83
|
+
except ContextError: # ruff: ignore[try-except-in-loop]
|
|
84
84
|
pass
|
|
85
85
|
|
|
86
86
|
raise ContextError(self.context, first)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from inspect import Parameter
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from fast_depends.core import CallModel
|
|
6
|
+
from fast_depends.library.serializer import OptionItem
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class BodyBinding:
|
|
10
|
+
"""External body parameters, without dependency results or custom fields."""
|
|
11
|
+
|
|
12
|
+
__slots__ = ("params",)
|
|
13
|
+
|
|
14
|
+
def __init__(self, call: "CallModel") -> None:
|
|
15
|
+
self.params = tuple(call.flat_params)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def single_parameter(self) -> "OptionItem | None":
|
|
19
|
+
return self.params[0] if len(self.params) == 1 else None
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def unpack(self) -> bool:
|
|
23
|
+
single = self.single_parameter
|
|
24
|
+
# A lone *args parameter consumes the body's sequence elements.
|
|
25
|
+
return len(self.params) > 1 or (
|
|
26
|
+
single is not None and single.kind is Parameter.VAR_POSITIONAL
|
|
27
|
+
)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import inspect
|
|
2
1
|
from collections.abc import Awaitable, Callable, Mapping, Reversible, Sequence
|
|
3
2
|
from dataclasses import dataclass, field
|
|
4
3
|
from typing import TYPE_CHECKING, Any, Optional
|
|
@@ -10,6 +9,7 @@ from fast_depends.pydantic import PydanticSerializer
|
|
|
10
9
|
from faststream._internal.constants import EMPTY
|
|
11
10
|
from faststream._internal.context import ContextRepo
|
|
12
11
|
from faststream._internal.context.composition import ContextRepoComposition
|
|
12
|
+
from faststream._internal.di.body import BodyBinding
|
|
13
13
|
from faststream._internal.utils import apply_types, to_async
|
|
14
14
|
|
|
15
15
|
if TYPE_CHECKING:
|
|
@@ -105,16 +105,7 @@ def _unwrap_message_to_fast_depends_decorator(
|
|
|
105
105
|
func: Callable[..., Any],
|
|
106
106
|
dependent: "CallModel",
|
|
107
107
|
) -> Callable[["StreamMessage[Any]"], Awaitable[Any]]:
|
|
108
|
-
|
|
109
|
-
if len(dependant_params) <= 1:
|
|
110
|
-
if option := next(iter(dependant_params), None):
|
|
111
|
-
is_multi_params = option.kind is inspect.Parameter.VAR_POSITIONAL
|
|
112
|
-
else:
|
|
113
|
-
is_multi_params = False
|
|
114
|
-
else:
|
|
115
|
-
is_multi_params = True
|
|
116
|
-
|
|
117
|
-
if is_multi_params:
|
|
108
|
+
if BodyBinding(dependent).unpack:
|
|
118
109
|
|
|
119
110
|
async def decode_wrapper(message: "StreamMessage[Any]") -> Any:
|
|
120
111
|
msg = await message.decode()
|
|
@@ -5,6 +5,7 @@ from typing import (
|
|
|
5
5
|
Any,
|
|
6
6
|
Generic,
|
|
7
7
|
Optional,
|
|
8
|
+
cast,
|
|
8
9
|
)
|
|
9
10
|
|
|
10
11
|
import anyio
|
|
@@ -28,11 +29,16 @@ if TYPE_CHECKING:
|
|
|
28
29
|
def ensure_call_wrapper(
|
|
29
30
|
call: Callable[P_HandlerParams, T_HandlerReturn],
|
|
30
31
|
outer_config: BrokerConfig,
|
|
32
|
+
wrapper_class: "type[HandlerCallWrapper[..., Any]]",
|
|
31
33
|
) -> "HandlerCallWrapper[P_HandlerParams, T_HandlerReturn]":
|
|
34
|
+
# An already wrapped handler keeps its class: the first decorator decides it
|
|
32
35
|
if isinstance(call, HandlerCallWrapper):
|
|
33
36
|
return call
|
|
34
37
|
|
|
35
|
-
return
|
|
38
|
+
return cast(
|
|
39
|
+
"HandlerCallWrapper[P_HandlerParams, T_HandlerReturn]",
|
|
40
|
+
wrapper_class(call, outer_config),
|
|
41
|
+
)
|
|
36
42
|
|
|
37
43
|
|
|
38
44
|
class HandlerCallWrapper(CallAssertions, Generic[P_HandlerParams, T_HandlerReturn]):
|
{faststream-0.7.7 → faststream-0.7.9}/faststream/_internal/endpoint/publisher/specification.py
RENAMED
|
@@ -2,7 +2,7 @@ from inspect import Parameter, unwrap
|
|
|
2
2
|
from typing import TYPE_CHECKING, Any
|
|
3
3
|
|
|
4
4
|
from fast_depends.core import build_call_model
|
|
5
|
-
from fast_depends.pydantic._compat import create_model, get_config_base #
|
|
5
|
+
from fast_depends.pydantic._compat import create_model, get_config_base # ruff: ignore[import-private-name]
|
|
6
6
|
from typing_extensions import TypeVar as TypeVar313
|
|
7
7
|
|
|
8
8
|
from faststream._internal.configs import BrokerConfig, PublisherSpecificationConfig
|
|
@@ -95,7 +95,7 @@ class HandlerItem(Generic[MsgType]):
|
|
|
95
95
|
|
|
96
96
|
@property
|
|
97
97
|
def name(self) -> str:
|
|
98
|
-
"""
|
|
98
|
+
"""The name of the original call."""
|
|
99
99
|
if self.handler is None:
|
|
100
100
|
return ""
|
|
101
101
|
|
|
@@ -104,7 +104,7 @@ class HandlerItem(Generic[MsgType]):
|
|
|
104
104
|
|
|
105
105
|
@property
|
|
106
106
|
def description(self) -> str | None:
|
|
107
|
-
"""
|
|
107
|
+
"""The description of original call."""
|
|
108
108
|
if self.handler is None:
|
|
109
109
|
return None
|
|
110
110
|
|
|
@@ -168,7 +168,7 @@ class CallsCollection(UserList[HandlerItem[MsgType]]):
|
|
|
168
168
|
|
|
169
169
|
@property
|
|
170
170
|
def name(self) -> str | None:
|
|
171
|
-
"""
|
|
171
|
+
"""The name of the handler call."""
|
|
172
172
|
if not self.data:
|
|
173
173
|
return None
|
|
174
174
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
from collections.abc import Iterator
|
|
2
|
+
from types import UnionType
|
|
3
|
+
from typing import TYPE_CHECKING, Annotated, Any, Union, get_args, get_origin
|
|
4
|
+
|
|
5
|
+
from faststream._internal._compat import ExceptionGroup
|
|
6
|
+
from faststream._internal.configs import (
|
|
7
|
+
UnderlyingDriverAnnotation,
|
|
8
|
+
UnderlyingDriverAnnotations,
|
|
9
|
+
)
|
|
10
|
+
from faststream.exceptions import SetupError
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from fast_depends.core import CallModel
|
|
14
|
+
from fast_depends.library.serializer import OptionItem
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def check_context_annotations(
|
|
18
|
+
dependent: "CallModel",
|
|
19
|
+
annotations: UnderlyingDriverAnnotations,
|
|
20
|
+
) -> None:
|
|
21
|
+
"""Reject call model arguments annotated with a broker's own driver class.
|
|
22
|
+
|
|
23
|
+
Context annotations never reach the model's params, so any driver class
|
|
24
|
+
found there would be validated as message data.
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
dependent: the handler's call model, dependencies included.
|
|
28
|
+
annotations: driver type hint to the context annotation replacing it. An
|
|
29
|
+
`UnderlyingDriverAnnotation` value also names the import to suggest.
|
|
30
|
+
"""
|
|
31
|
+
messages = [
|
|
32
|
+
_format_hint(option.field_name, hint, annotations[hint], dependency)
|
|
33
|
+
for dependency, option in _options(dependent)
|
|
34
|
+
if (hint := _find_mapped(option.field_type, annotations)) is not None
|
|
35
|
+
]
|
|
36
|
+
# a dependency shared by several arguments is still one mistake
|
|
37
|
+
errors = [SetupError(m) for m in dict.fromkeys(messages)]
|
|
38
|
+
|
|
39
|
+
if len(errors) == 1:
|
|
40
|
+
raise errors[0]
|
|
41
|
+
|
|
42
|
+
if errors:
|
|
43
|
+
msg = f"`{dependent.call_name}` has arguments FastStream cannot inject."
|
|
44
|
+
raise ExceptionGroup(msg, errors)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _options(
|
|
48
|
+
model: "CallModel",
|
|
49
|
+
dependency: str | None = None,
|
|
50
|
+
) -> Iterator[tuple[str | None, "OptionItem"]]:
|
|
51
|
+
for option in model.params:
|
|
52
|
+
yield dependency, option
|
|
53
|
+
|
|
54
|
+
for key in (*model.dependencies.values(), *model.extra_dependencies):
|
|
55
|
+
sub_model = model.dependency_provider.get_dependant(key)
|
|
56
|
+
yield from _options(sub_model, sub_model.call_name)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _find_mapped(hint: Any, annotations: UnderlyingDriverAnnotations) -> Any:
|
|
60
|
+
origin = get_origin(hint)
|
|
61
|
+
|
|
62
|
+
if origin is Annotated:
|
|
63
|
+
return _find_mapped(get_args(hint)[0], annotations)
|
|
64
|
+
|
|
65
|
+
if origin is Union or origin is UnionType:
|
|
66
|
+
for arg in get_args(hint):
|
|
67
|
+
if (mapped := _find_mapped(arg, annotations)) is not None:
|
|
68
|
+
return mapped
|
|
69
|
+
return None
|
|
70
|
+
|
|
71
|
+
if origin is not None and origin in annotations:
|
|
72
|
+
return origin
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
return hint if hint in annotations else None
|
|
76
|
+
except TypeError:
|
|
77
|
+
# An unhashable hint cannot be a key, so it cannot be mapped.
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def _format_hint(
|
|
82
|
+
field_name: str,
|
|
83
|
+
hint: Any,
|
|
84
|
+
annotation: Any,
|
|
85
|
+
dependency: str | None,
|
|
86
|
+
) -> str:
|
|
87
|
+
owner = f" of dependency `{dependency}`" if dependency else ""
|
|
88
|
+
message = (
|
|
89
|
+
f"`{field_name}`{owner} is annotated with `{_describe(hint)}`, "
|
|
90
|
+
"which FastStream cannot inject.\n"
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
if isinstance(annotation, UnderlyingDriverAnnotation):
|
|
94
|
+
return (
|
|
95
|
+
f"{message}Use the context annotation instead:\n"
|
|
96
|
+
f"\n from {annotation.module} import {annotation.name}\n"
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
return f"{message}Use the corresponding context annotation instead: `{annotation}`"
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _describe(hint: Any) -> str:
|
|
103
|
+
if isinstance(hint, type):
|
|
104
|
+
return f"{hint.__module__}.{hint.__qualname__}"
|
|
105
|
+
|
|
106
|
+
return str(hint)
|