faststream 0.7.6__tar.gz → 0.7.7__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.
Files changed (519) hide show
  1. {faststream-0.7.6 → faststream-0.7.7}/PKG-INFO +4 -4
  2. {faststream-0.7.6 → faststream-0.7.7}/README.md +2 -2
  3. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/application.py +12 -0
  4. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/basic_types.py +4 -0
  5. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/broker/broker.py +7 -4
  6. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/broker/registrator.py +8 -4
  7. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/broker/router.py +3 -3
  8. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/dto.py +2 -0
  9. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/asgi_multiprocess.py +8 -0
  10. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/basereload.py +9 -0
  11. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/multiprocess.py +5 -0
  12. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/utils.py +2 -0
  13. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/watchfiles.py +6 -0
  14. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/configs/__init__.py +2 -2
  15. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/configs/broker.py +9 -8
  16. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/constants.py +2 -0
  17. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/di/config.py +2 -2
  18. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/publisher/fake.py +2 -0
  19. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/publisher/proto.py +2 -0
  20. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/publisher/specification.py +2 -0
  21. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/publisher/usecase.py +7 -0
  22. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/specification.py +5 -0
  23. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/mixins.py +8 -0
  24. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/specification.py +2 -0
  25. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/usecase.py +15 -0
  26. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/utils.py +2 -0
  27. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/usecase.py +5 -0
  28. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/utils.py +6 -0
  29. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/_compat.py +1 -1
  30. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/config.py +1 -1
  31. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/get_dependant.py +2 -0
  32. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/router.py +2 -0
  33. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/logger_proxy.py +8 -0
  34. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/params_storage.py +11 -0
  35. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/state.py +6 -0
  36. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/middlewares.py +2 -0
  37. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/parser.py +14 -0
  38. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/producer.py +6 -0
  39. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/proto.py +2 -0
  40. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/types.py +4 -0
  41. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/utils/functions.py +2 -0
  42. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/utils/nuid.py +7 -0
  43. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/utils/path.py +1 -1
  44. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/broker/logging.py +5 -0
  45. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/broker/router.py +13 -0
  46. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/helpers/admin.py +3 -1
  47. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/helpers/client.py +23 -0
  48. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/helpers/config.py +7 -0
  49. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/opentelemetry/provider.py +4 -0
  50. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/parser.py +5 -0
  51. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/prometheus/provider.py +4 -0
  52. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/fake.py +2 -0
  53. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/producer.py +12 -0
  54. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/specification.py +2 -0
  55. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/state.py +2 -0
  56. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/usecase.py +11 -0
  57. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/schemas/topic.py +0 -1
  58. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/subscriber/specification.py +2 -0
  59. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/subscriber/usecase.py +18 -0
  60. {faststream-0.7.6 → faststream-0.7.7}/faststream/exceptions.py +5 -0
  61. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/broker/logging.py +5 -0
  62. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/broker/router.py +13 -0
  63. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/opentelemetry/provider.py +4 -0
  64. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/parser.py +8 -0
  65. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/prometheus/provider.py +4 -0
  66. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/fake.py +2 -0
  67. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/producer.py +12 -0
  68. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/specification.py +2 -0
  69. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/state.py +2 -0
  70. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/usecase.py +11 -0
  71. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/subscriber/specification.py +2 -0
  72. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/subscriber/usecase.py +25 -0
  73. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/acknowledgement/middleware.py +2 -0
  74. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/exception.py +2 -0
  75. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/logging.py +4 -0
  76. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/logging.py +5 -0
  77. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/router.py +3 -0
  78. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/parser.py +6 -0
  79. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/fake.py +2 -0
  80. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/producer.py +15 -0
  81. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/specification.py +2 -0
  82. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/usecase.py +7 -0
  83. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/subscriber/specification.py +2 -0
  84. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/subscriber/usecase.py +11 -0
  85. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/__init__.py +14 -0
  86. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/broker.py +220 -19
  87. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/logging.py +6 -0
  88. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/registrator.py +5 -1
  89. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/router.py +10 -0
  90. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/state.py +6 -0
  91. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/helpers/bucket_declarer.py +5 -0
  92. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/helpers/obj_storage_declarer.py +5 -0
  93. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/helpers/state.py +2 -0
  94. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/opentelemetry/provider.py +4 -0
  95. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/parser.py +12 -0
  96. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/prometheus/provider.py +4 -0
  97. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/fake.py +2 -0
  98. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/producer.py +20 -0
  99. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/specification.py +2 -0
  100. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/usecase.py +8 -0
  101. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/js_stream.py +1 -1
  102. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/kv_watch.py +1 -1
  103. faststream-0.7.7/faststream/nats/security.py +470 -0
  104. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/adapters.py +4 -0
  105. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/specification.py +4 -0
  106. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/state.py +10 -0
  107. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/basic.py +8 -1
  108. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/core_subscriber.py +4 -0
  109. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/key_value_subscriber.py +2 -0
  110. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/object_storage_subscriber.py +2 -0
  111. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/stream_basic.py +2 -0
  112. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/stream_pull_subscriber.py +6 -0
  113. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/stream_push_subscriber.py +4 -0
  114. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/consts.py +2 -0
  115. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/middleware.py +10 -0
  116. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/provider.py +2 -0
  117. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/middleware.py +2 -0
  118. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/provider.py +2 -0
  119. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/broker/logging.py +5 -0
  120. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/broker/router.py +14 -0
  121. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/helpers/channel_manager.py +4 -0
  122. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/helpers/declarer.py +5 -1
  123. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/helpers/state.py +2 -0
  124. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/parser.py +2 -0
  125. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/fake.py +6 -0
  126. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/producer.py +24 -0
  127. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/specification.py +2 -0
  128. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/usecase.py +11 -0
  129. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/schemas/exchange.py +1 -1
  130. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/schemas/queue.py +1 -1
  131. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/security.py +1 -1
  132. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/subscriber/specification.py +2 -0
  133. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/subscriber/usecase.py +10 -0
  134. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/logging.py +2 -0
  135. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/router.py +17 -0
  136. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/configs/state.py +23 -0
  137. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/parser/binary.py +9 -0
  138. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/parser/parsers.py +17 -0
  139. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/prometheus/provider.py +4 -0
  140. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/fake.py +5 -0
  141. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/producer.py +12 -0
  142. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/specification.py +8 -0
  143. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/usecase.py +15 -0
  144. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/list_sub.py +1 -3
  145. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/pub_sub.py +0 -1
  146. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/stream_sub.py +0 -1
  147. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/specification.py +8 -0
  148. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/usecases/basic.py +4 -0
  149. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/usecases/channel_subscriber.py +4 -0
  150. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/usecases/list_subscriber.py +11 -0
  151. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/usecases/stream_subscriber.py +15 -0
  152. {faststream-0.7.6 → faststream-0.7.7}/faststream/security.py +4 -8
  153. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/factory.py +2 -0
  154. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/base/generator.py +2 -0
  155. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/base/specification.py +2 -0
  156. {faststream-0.7.6 → faststream-0.7.7}/pyproject.toml +202 -6
  157. faststream-0.7.6/faststream/nats/security.py +0 -28
  158. {faststream-0.7.6 → faststream-0.7.7}/LICENSE +0 -0
  159. {faststream-0.7.6 → faststream-0.7.7}/faststream/__about__.py +0 -0
  160. {faststream-0.7.6 → faststream-0.7.7}/faststream/__init__.py +0 -0
  161. {faststream-0.7.6 → faststream-0.7.7}/faststream/__main__.py +0 -0
  162. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/__init__.py +0 -0
  163. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/_compat.py +0 -0
  164. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/broker/__init__.py +0 -0
  165. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/broker/pub_base.py +0 -0
  166. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/__init__.py +0 -0
  167. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/docs.py +0 -0
  168. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/main.py +0 -0
  169. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/options.py +0 -0
  170. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/supervisors/__init__.py +0 -0
  171. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/utils/__init__.py +0 -0
  172. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/utils/errors.py +0 -0
  173. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/utils/imports.py +0 -0
  174. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/utils/logs.py +0 -0
  175. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/cli/utils/parser.py +0 -0
  176. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/configs/endpoint.py +0 -0
  177. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/configs/specification.py +0 -0
  178. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/context/__init__.py +0 -0
  179. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/context/composition.py +0 -0
  180. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/context/context_type.py +0 -0
  181. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/context/repository.py +0 -0
  182. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/context/resolve.py +0 -0
  183. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/di/__init__.py +0 -0
  184. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/__init__.py +0 -0
  185. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/call_wrapper.py +0 -0
  186. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/publisher/__init__.py +0 -0
  187. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/__init__.py +0 -0
  188. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/call_item.py +0 -0
  189. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/endpoint/subscriber/supervisor.py +0 -0
  190. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/__init__.py +0 -0
  191. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/context.py +0 -0
  192. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/fastapi/route.py +0 -0
  193. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/kafka/__init__.py +0 -0
  194. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/kafka/keys.py +0 -0
  195. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/__init__.py +0 -0
  196. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/formatter.py +0 -0
  197. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/logger/logging.py +0 -0
  198. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/testing/__init__.py +0 -0
  199. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/testing/app.py +0 -0
  200. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/testing/ast.py +0 -0
  201. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/testing/broker.py +0 -0
  202. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/testing/calls.py +0 -0
  203. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/utils/__init__.py +0 -0
  204. {faststream-0.7.6 → faststream-0.7.7}/faststream/_internal/utils/data.py +0 -0
  205. {faststream-0.7.6 → faststream-0.7.7}/faststream/annotations.py +0 -0
  206. {faststream-0.7.6 → faststream-0.7.7}/faststream/app.py +0 -0
  207. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/__init__.py +0 -0
  208. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/annotations.py +0 -0
  209. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/app.py +0 -0
  210. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/__init__.py +0 -0
  211. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/asyncapi/__init__.py +0 -0
  212. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/asyncapi/docs.py +0 -0
  213. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/asyncapi/route.py +0 -0
  214. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/asyncapi/try_it_out.py +0 -0
  215. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/factories/ping.py +0 -0
  216. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/handlers.py +0 -0
  217. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/params.py +0 -0
  218. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/request.py +0 -0
  219. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/response.py +0 -0
  220. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/types.py +0 -0
  221. {faststream-0.7.6 → faststream-0.7.7}/faststream/asgi/websocket.py +0 -0
  222. {faststream-0.7.6 → faststream-0.7.7}/faststream/cli.py +0 -0
  223. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/__init__.py +0 -0
  224. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/annotations.py +0 -0
  225. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/broker/__init__.py +0 -0
  226. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/broker/broker.py +0 -0
  227. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/broker/registrator.py +0 -0
  228. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/configs/__init__.py +0 -0
  229. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/configs/broker.py +0 -0
  230. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/fastapi/__init__.py +0 -0
  231. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/fastapi/fastapi.py +0 -0
  232. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/helpers/__init__.py +0 -0
  233. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/message.py +0 -0
  234. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/opentelemetry/__init__.py +0 -0
  235. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/opentelemetry/middleware.py +0 -0
  236. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/prometheus/__init__.py +0 -0
  237. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/prometheus/middleware.py +0 -0
  238. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/__init__.py +0 -0
  239. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/config.py +0 -0
  240. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/publisher/factory.py +0 -0
  241. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/response.py +0 -0
  242. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/schemas/__init__.py +0 -0
  243. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/schemas/partition.py +0 -0
  244. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/security.py +0 -0
  245. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/subscriber/__init__.py +0 -0
  246. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/subscriber/config.py +0 -0
  247. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/subscriber/factory.py +0 -0
  248. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/testing.py +0 -0
  249. {faststream-0.7.6 → faststream-0.7.7}/faststream/confluent/types.py +0 -0
  250. {faststream-0.7.6 → faststream-0.7.7}/faststream/context.py +0 -0
  251. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/__init__.py +0 -0
  252. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/annotations.py +0 -0
  253. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/broker/__init__.py +0 -0
  254. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/broker/broker.py +0 -0
  255. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/broker/registrator.py +0 -0
  256. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/configs/__init__.py +0 -0
  257. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/configs/broker.py +0 -0
  258. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/exceptions.py +0 -0
  259. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/fastapi/__init__.py +0 -0
  260. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/fastapi/fastapi.py +0 -0
  261. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/helpers/__init__.py +0 -0
  262. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/helpers/rebalance_listener.py +0 -0
  263. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/message.py +0 -0
  264. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/opentelemetry/__init__.py +0 -0
  265. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/opentelemetry/middleware.py +0 -0
  266. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/prometheus/__init__.py +0 -0
  267. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/prometheus/middleware.py +0 -0
  268. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/__init__.py +0 -0
  269. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/config.py +0 -0
  270. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/publisher/factory.py +0 -0
  271. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/response.py +0 -0
  272. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/schemas/__init__.py +0 -0
  273. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/schemas/params.py +0 -0
  274. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/schemas/partition.py +0 -0
  275. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/security.py +0 -0
  276. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/subscriber/__init__.py +0 -0
  277. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/subscriber/config.py +0 -0
  278. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/subscriber/factory.py +0 -0
  279. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/testing.py +0 -0
  280. {faststream-0.7.6 → faststream-0.7.7}/faststream/kafka/types.py +0 -0
  281. {faststream-0.7.6 → faststream-0.7.7}/faststream/message/__init__.py +0 -0
  282. {faststream-0.7.6 → faststream-0.7.7}/faststream/message/message.py +0 -0
  283. {faststream-0.7.6 → faststream-0.7.7}/faststream/message/source_type.py +0 -0
  284. {faststream-0.7.6 → faststream-0.7.7}/faststream/message/utils.py +0 -0
  285. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/__init__.py +0 -0
  286. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/acknowledgement/__init__.py +0 -0
  287. {faststream-0.7.6 → faststream-0.7.7}/faststream/middlewares/acknowledgement/config.py +0 -0
  288. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/__init__.py +0 -0
  289. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/annotations.py +0 -0
  290. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/__init__.py +0 -0
  291. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/broker.py +0 -0
  292. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/config.py +0 -0
  293. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/broker/registrator.py +0 -0
  294. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/fastapi/__init__.py +0 -0
  295. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/fastapi/fastapi.py +0 -0
  296. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/message.py +0 -0
  297. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/opentelemetry/__init__.py +0 -0
  298. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/opentelemetry/middleware.py +0 -0
  299. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/opentelemetry/provider.py +0 -0
  300. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/path.py +0 -0
  301. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/prometheus/__init__.py +0 -0
  302. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/prometheus/middleware.py +0 -0
  303. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/prometheus/provider.py +0 -0
  304. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/__init__.py +0 -0
  305. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/config.py +0 -0
  306. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/publisher/factory.py +0 -0
  307. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/response.py +0 -0
  308. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/security.py +0 -0
  309. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/subscriber/__init__.py +0 -0
  310. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/subscriber/config.py +0 -0
  311. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/subscriber/factory.py +0 -0
  312. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/testing.py +0 -0
  313. {faststream-0.7.6 → faststream-0.7.7}/faststream/mqtt/utils.py +0 -0
  314. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/annotations.py +0 -0
  315. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/broker/__init__.py +0 -0
  316. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/configs/__init__.py +0 -0
  317. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/configs/broker.py +0 -0
  318. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/fastapi/__init__.py +0 -0
  319. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/fastapi/fastapi.py +0 -0
  320. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/helpers/__init__.py +0 -0
  321. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/helpers/stream_builder.py +0 -0
  322. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/message.py +0 -0
  323. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/opentelemetry/__init__.py +0 -0
  324. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/opentelemetry/middleware.py +0 -0
  325. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/prometheus/__init__.py +0 -0
  326. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/prometheus/middleware.py +0 -0
  327. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/__init__.py +0 -0
  328. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/config.py +0 -0
  329. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/publisher/factory.py +0 -0
  330. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/response.py +0 -0
  331. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/__init__.py +0 -0
  332. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/obj_watch.py +0 -0
  333. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/pull_sub.py +0 -0
  334. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/schemas/schedule.py +0 -0
  335. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/__init__.py +0 -0
  336. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/config.py +0 -0
  337. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/factory.py +0 -0
  338. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/subscriber/usecases/__init__.py +0 -0
  339. {faststream-0.7.6 → faststream-0.7.7}/faststream/nats/testing.py +0 -0
  340. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/__init__.py +0 -0
  341. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/annotations.py +0 -0
  342. {faststream-0.7.6 → faststream-0.7.7}/faststream/opentelemetry/baggage.py +0 -0
  343. {faststream-0.7.6 → faststream-0.7.7}/faststream/params/__init__.py +0 -0
  344. {faststream-0.7.6 → faststream-0.7.7}/faststream/params/no_cast.py +0 -0
  345. {faststream-0.7.6 → faststream-0.7.7}/faststream/params/params.py +0 -0
  346. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/__init__.py +0 -0
  347. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/consts.py +0 -0
  348. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/container.py +0 -0
  349. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/manager.py +0 -0
  350. {faststream-0.7.6 → faststream-0.7.7}/faststream/prometheus/types.py +0 -0
  351. {faststream-0.7.6 → faststream-0.7.7}/faststream/py.typed +0 -0
  352. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/__init__.py +0 -0
  353. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/annotations.py +0 -0
  354. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/broker/__init__.py +0 -0
  355. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/broker/broker.py +0 -0
  356. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/broker/registrator.py +0 -0
  357. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/configs/__init__.py +0 -0
  358. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/configs/base.py +0 -0
  359. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/configs/broker.py +0 -0
  360. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/fastapi/__init__.py +0 -0
  361. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/fastapi/fastapi.py +0 -0
  362. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/helpers/__init__.py +0 -0
  363. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/message.py +0 -0
  364. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/opentelemetry/__init__.py +0 -0
  365. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/opentelemetry/middleware.py +0 -0
  366. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/opentelemetry/provider.py +0 -0
  367. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/prometheus/__init__.py +0 -0
  368. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/prometheus/middleware.py +0 -0
  369. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/prometheus/provider.py +0 -0
  370. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/__init__.py +0 -0
  371. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/config.py +0 -0
  372. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/factory.py +0 -0
  373. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/publisher/options.py +0 -0
  374. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/response.py +0 -0
  375. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/schemas/__init__.py +0 -0
  376. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/schemas/channel.py +0 -0
  377. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/schemas/constants.py +0 -0
  378. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/subscriber/__init__.py +0 -0
  379. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/subscriber/config.py +0 -0
  380. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/subscriber/factory.py +0 -0
  381. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/testing.py +0 -0
  382. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/types.py +0 -0
  383. {faststream-0.7.6 → faststream-0.7.7}/faststream/rabbit/utils.py +0 -0
  384. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/__init__.py +0 -0
  385. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/_compat.py +0 -0
  386. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/annotations.py +0 -0
  387. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/__init__.py +0 -0
  388. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/broker.py +0 -0
  389. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/cluster_broker.py +0 -0
  390. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/registrator.py +0 -0
  391. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/broker/sentinel_broker.py +0 -0
  392. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/configs/__init__.py +0 -0
  393. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/configs/broker.py +0 -0
  394. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/exceptions.py +0 -0
  395. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/fastapi/__init__.py +0 -0
  396. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/fastapi/fastapi.py +0 -0
  397. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/message.py +0 -0
  398. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/opentelemetry/__init__.py +0 -0
  399. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/opentelemetry/middleware.py +0 -0
  400. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/opentelemetry/provider.py +0 -0
  401. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/parser/__init__.py +0 -0
  402. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/parser/message.py +0 -0
  403. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/prometheus/__init__.py +0 -0
  404. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/prometheus/middleware.py +0 -0
  405. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/__init__.py +0 -0
  406. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/config.py +0 -0
  407. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/publisher/factory.py +0 -0
  408. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/response.py +0 -0
  409. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/__init__.py +0 -0
  410. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/proto.py +0 -0
  411. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/schemas/types.py +0 -0
  412. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/security.py +0 -0
  413. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/__init__.py +0 -0
  414. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/config.py +0 -0
  415. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/factory.py +0 -0
  416. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/subscriber/usecases/__init__.py +0 -0
  417. {faststream-0.7.6 → faststream-0.7.7}/faststream/redis/testing.py +0 -0
  418. {faststream-0.7.6 → faststream-0.7.7}/faststream/response/__init__.py +0 -0
  419. {faststream-0.7.6 → faststream-0.7.7}/faststream/response/publish_type.py +0 -0
  420. {faststream-0.7.6 → faststream-0.7.7}/faststream/response/response.py +0 -0
  421. {faststream-0.7.6 → faststream-0.7.7}/faststream/response/utils.py +0 -0
  422. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/__init__.py +0 -0
  423. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/__init__.py +0 -0
  424. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/message.py +0 -0
  425. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/site.py +0 -0
  426. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/utils.py +0 -0
  427. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/__init__.py +0 -0
  428. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/generate.py +0 -0
  429. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/__init__.py +0 -0
  430. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/__init__.py +0 -0
  431. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/__init__.py +0 -0
  432. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/channel.py +0 -0
  433. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/amqp/operation.py +0 -0
  434. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/http/__init__.py +0 -0
  435. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/http/operation.py +0 -0
  436. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/__init__.py +0 -0
  437. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/channel.py +0 -0
  438. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/kafka/operation.py +0 -0
  439. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/__init__.py +0 -0
  440. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/channel.py +0 -0
  441. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/main/operation.py +0 -0
  442. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/__init__.py +0 -0
  443. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/channel.py +0 -0
  444. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/mqtt/operation.py +0 -0
  445. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/__init__.py +0 -0
  446. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/channel.py +0 -0
  447. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/nats/operation.py +0 -0
  448. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/__init__.py +0 -0
  449. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/channel.py +0 -0
  450. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/redis/operation.py +0 -0
  451. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/__init__.py +0 -0
  452. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/channel.py +0 -0
  453. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/bindings/sqs/operation.py +0 -0
  454. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/channels.py +0 -0
  455. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/components.py +0 -0
  456. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/contact.py +0 -0
  457. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/docs.py +0 -0
  458. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/info.py +0 -0
  459. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/license.py +0 -0
  460. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/message.py +0 -0
  461. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/operations.py +0 -0
  462. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/schema.py +0 -0
  463. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/servers.py +0 -0
  464. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/tag.py +0 -0
  465. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v2_6_0/schema/utils.py +0 -0
  466. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/__init__.py +0 -0
  467. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/generate.py +0 -0
  468. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/__init__.py +0 -0
  469. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/__init__.py +0 -0
  470. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/__init__.py +0 -0
  471. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/channel.py +0 -0
  472. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/amqp/operation.py +0 -0
  473. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/http.py +0 -0
  474. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/kafka.py +0 -0
  475. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/__init__.py +0 -0
  476. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/channel.py +0 -0
  477. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/main/operation.py +0 -0
  478. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/mqtt.py +0 -0
  479. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/nats.py +0 -0
  480. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/redis.py +0 -0
  481. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/bindings/sqs.py +0 -0
  482. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/channels.py +0 -0
  483. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/components.py +0 -0
  484. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/contact.py +0 -0
  485. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/docs.py +0 -0
  486. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/info.py +0 -0
  487. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/license.py +0 -0
  488. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/message.py +0 -0
  489. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/operations.py +0 -0
  490. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/schema.py +0 -0
  491. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/servers.py +0 -0
  492. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/tag.py +0 -0
  493. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/asyncapi/v3_0_0/schema/utils.py +0 -0
  494. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/base/__init__.py +0 -0
  495. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/base/info.py +0 -0
  496. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/base/schema.py +0 -0
  497. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/__init__.py +0 -0
  498. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/__init__.py +0 -0
  499. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/amqp.py +0 -0
  500. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/http.py +0 -0
  501. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/kafka.py +0 -0
  502. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/main.py +0 -0
  503. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/mqtt.py +0 -0
  504. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/nats.py +0 -0
  505. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/redis.py +0 -0
  506. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/bindings/sqs.py +0 -0
  507. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/broker.py +0 -0
  508. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/extra/__init__.py +0 -0
  509. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/extra/contact.py +0 -0
  510. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/extra/external_docs.py +0 -0
  511. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/extra/license.py +0 -0
  512. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/extra/tag.py +0 -0
  513. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/message/__init__.py +0 -0
  514. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/message/model.py +0 -0
  515. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/operation/__init__.py +0 -0
  516. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/operation/model.py +0 -0
  517. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/publisher.py +0 -0
  518. {faststream-0.7.6 → faststream-0.7.7}/faststream/specification/schema/subscriber.py +0 -0
  519. {faststream-0.7.6 → faststream-0.7.7}/faststream/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faststream
3
- Version: 0.7.6
3
+ Version: 0.7.7
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
@@ -43,7 +43,7 @@ Requires-Dist: confluent-kafka>=2,!=2.8.1,<3 ; python_full_version < '3.13' and
43
43
  Requires-Dist: confluent-kafka>=2.6,!=2.8.1,<3 ; python_full_version >= '3.13' and extra == 'confluent'
44
44
  Requires-Dist: aiokafka>=0.9,<0.15 ; extra == 'kafka'
45
45
  Requires-Dist: zmqtt>=0.2.0,<0.3.0 ; extra == 'mqtt'
46
- Requires-Dist: nats-py>=2.12.0,<=3.0.0 ; extra == 'nats'
46
+ Requires-Dist: nats-py>=2.14.0,<=3.0.0 ; extra == 'nats'
47
47
  Requires-Dist: opentelemetry-sdk>=1.24.0,<2.0.0 ; extra == 'otel'
48
48
  Requires-Dist: prometheus-client>=0.20.0,<0.30.0 ; extra == 'prometheus'
49
49
  Requires-Dist: aio-pika>=9,<11 ; extra == 'rabbit'
@@ -109,7 +109,7 @@ Making streaming microservices has never been easier. The API is small enough to
109
109
 
110
110
  - [**Your Broker, In Full**](#your-broker-in-full): **FastStream** is a client for *your* broker, not a layer above all of them — [**Kafka**](https://kafka.apache.org/) consumer groups and partitioning, [**RabbitMQ**](https://www.rabbitmq.com/) exchanges and DLQ, [**NATS**](https://nats.io/) JetStream and KeyValue, [**Redis**](https://redis.io/) Streams, [**MQTT**](https://mqtt.org/) QoS. Five first-class clients that happen to share their ergonomics.
111
111
 
112
- - [**Built-in Serialization**](#writing-app-code): Leverage [**Pydantic**](https://docs.pydantic.dev/) or [**Msgspec**](https://jcristharif.com/msgspec/) validation capabilities to serialize and validate incoming messages
112
+ - [**Built-in Serialization**](#writing-app-code): Leverage [**Pydantic**](https://docs.pydantic.dev/) or [**Msgspec**](https://msgspec.dev/) validation capabilities to serialize and validate incoming messages
113
113
 
114
114
  - [**Powerful Dependency Injection System**](#dependencies): Manage your service dependencies efficiently with **FastStream**'s built-in DI system
115
115
 
@@ -264,7 +264,7 @@ pip install pydantic==1.X.Y
264
264
 
265
265
  ### Msgspec serialization
266
266
 
267
- Moreover, **FastStream** is not tied to any specific serialization library, so you can use any preferred one. Fortunately, we provide a built‑in alternative for the most popular **Pydantic** replacement - [**Msgspec**](https://jcristharif.com/msgspec/).
267
+ Moreover, **FastStream** is not tied to any specific serialization library, so you can use any preferred one. Fortunately, we provide a built‑in alternative for the most popular **Pydantic** replacement - [**Msgspec**](https://msgspec.dev/).
268
268
 
269
269
  ```python
270
270
  from fast_depends.msgspec import MsgSpecSerializer
@@ -42,7 +42,7 @@ Making streaming microservices has never been easier. The API is small enough to
42
42
 
43
43
  - [**Your Broker, In Full**](#your-broker-in-full): **FastStream** is a client for *your* broker, not a layer above all of them — [**Kafka**](https://kafka.apache.org/) consumer groups and partitioning, [**RabbitMQ**](https://www.rabbitmq.com/) exchanges and DLQ, [**NATS**](https://nats.io/) JetStream and KeyValue, [**Redis**](https://redis.io/) Streams, [**MQTT**](https://mqtt.org/) QoS. Five first-class clients that happen to share their ergonomics.
44
44
 
45
- - [**Built-in Serialization**](#writing-app-code): Leverage [**Pydantic**](https://docs.pydantic.dev/) or [**Msgspec**](https://jcristharif.com/msgspec/) validation capabilities to serialize and validate incoming messages
45
+ - [**Built-in Serialization**](#writing-app-code): Leverage [**Pydantic**](https://docs.pydantic.dev/) or [**Msgspec**](https://msgspec.dev/) validation capabilities to serialize and validate incoming messages
46
46
 
47
47
  - [**Powerful Dependency Injection System**](#dependencies): Manage your service dependencies efficiently with **FastStream**'s built-in DI system
48
48
 
@@ -197,7 +197,7 @@ pip install pydantic==1.X.Y
197
197
 
198
198
  ### Msgspec serialization
199
199
 
200
- Moreover, **FastStream** is not tied to any specific serialization library, so you can use any preferred one. Fortunately, we provide a built‑in alternative for the most popular **Pydantic** replacement - [**Msgspec**](https://jcristharif.com/msgspec/).
200
+ Moreover, **FastStream** is not tied to any specific serialization library, so you can use any preferred one. Fortunately, we provide a built‑in alternative for the most popular **Pydantic** replacement - [**Msgspec**](https://msgspec.dev/).
201
201
 
202
202
  ```python
203
203
  from fast_depends.msgspec import MsgSpecSerializer
@@ -59,6 +59,12 @@ T_HookReturn = TypeVar("T_HookReturn")
59
59
 
60
60
 
61
61
  class StartAbleApplication:
62
+ __slots__ = (
63
+ "brokers",
64
+ "config",
65
+ "schema",
66
+ )
67
+
62
68
  def __init__(
63
69
  self,
64
70
  *brokers: "BrokerUsecase[Any, Any, Any]",
@@ -120,6 +126,12 @@ class StartAbleApplication:
120
126
 
121
127
 
122
128
  class Application(StartAbleApplication):
129
+ """Unslotted on purpose: an application object is the user's own.
130
+
131
+ One exists per process, so slots would save nothing, and user code and our own
132
+ CLI tests assign to it (`app.run` is patched in `tests/cli/test_logs.py`).
133
+ """
134
+
123
135
  def __init__(
124
136
  self,
125
137
  *brokers: "BrokerUsecase[Any, Any, Any]",
@@ -43,6 +43,8 @@ SendableTable: TypeAlias = dict[str, "BaseSendableMessage"]
43
43
  class StandardDataclass(Protocol):
44
44
  """Protocol to check type is dataclass."""
45
45
 
46
+ __slots__ = ()
47
+
46
48
  __dataclass_fields__: ClassVar[dict[str, Any]]
47
49
 
48
50
 
@@ -87,6 +89,8 @@ Lifespan: TypeAlias = Callable[..., AbstractAsyncContextManager[None]]
87
89
 
88
90
 
89
91
  class LoggerProto(Protocol):
92
+ __slots__ = ()
93
+
90
94
  def log(
91
95
  self,
92
96
  level: int,
@@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Any, Generic, Optional
5
5
  from fast_depends import Provider
6
6
  from typing_extensions import Self
7
7
 
8
- from faststream._internal.configs import BrokerConfigType
8
+ from faststream._internal.configs import BrokerConfigType_co
9
9
  from faststream._internal.types import (
10
10
  BrokerMiddleware,
11
11
  ConnectionType,
@@ -25,13 +25,16 @@ if TYPE_CHECKING:
25
25
 
26
26
 
27
27
  class BrokerUsecase(
28
- Registrator[MsgType, BrokerConfigType],
28
+ Registrator[MsgType, BrokerConfigType_co],
29
29
  BrokerPublishMixin[MsgType],
30
- Generic[MsgType, ConnectionType, BrokerConfigType],
30
+ Generic[MsgType, ConnectionType, BrokerConfigType_co],
31
31
  ):
32
32
  """Basic class for brokers-only.
33
33
 
34
34
  Extends `Registrator` by connection, publish and AsyncAPI behavior.
35
+
36
+ Unslotted on purpose: one broker exists per process, and it is the object test
37
+ suites mock — `patch.object(broker, "start")` needs somewhere to put the mock.
35
38
  """
36
39
 
37
40
  _connection: ConnectionType | None
@@ -39,7 +42,7 @@ class BrokerUsecase(
39
42
  def __init__(
40
43
  self,
41
44
  *,
42
- config: BrokerConfigType,
45
+ config: BrokerConfigType_co,
43
46
  specification: "BrokerSpec",
44
47
  routers: Iterable[Registrator[Any, Any]],
45
48
  **connection_kwargs: Any,
@@ -3,7 +3,11 @@ from collections.abc import Iterable, Sequence
3
3
  from typing import TYPE_CHECKING, Any, Generic
4
4
  from weakref import WeakSet
5
5
 
6
- from faststream._internal.configs import BrokerConfig, BrokerConfigType, ConfigComposition
6
+ from faststream._internal.configs import (
7
+ BrokerConfig,
8
+ BrokerConfigType_co,
9
+ ConfigComposition,
10
+ )
7
11
  from faststream._internal.types import BrokerMiddleware, MsgType
8
12
 
9
13
  if TYPE_CHECKING:
@@ -13,7 +17,7 @@ if TYPE_CHECKING:
13
17
  from faststream._internal.endpoint.subscriber import SubscriberUsecase
14
18
 
15
19
 
16
- class Registrator(Generic[MsgType, BrokerConfigType]):
20
+ class Registrator(Generic[MsgType, BrokerConfigType_co]):
17
21
  """Basic class for brokers and routers.
18
22
 
19
23
  Contains subscribers & publishers registration logic only.
@@ -22,13 +26,13 @@ class Registrator(Generic[MsgType, BrokerConfigType]):
22
26
  def __init__(
23
27
  self,
24
28
  *,
25
- config: BrokerConfigType,
29
+ config: BrokerConfigType_co,
26
30
  routers: Iterable["Registrator[MsgType]"],
27
31
  ) -> None:
28
32
  self._parser = config.broker_parser
29
33
  self._decoder = config.broker_decoder
30
34
 
31
- self.config: ConfigComposition[BrokerConfigType] = ConfigComposition(config)
35
+ self.config: ConfigComposition[BrokerConfigType_co] = ConfigComposition(config)
32
36
 
33
37
  self._subscribers: WeakSet[SubscriberUsecase[MsgType]] = WeakSet()
34
38
  self._publishers: WeakSet[PublisherUsecase] = WeakSet()
@@ -1,7 +1,7 @@
1
1
  from collections.abc import Callable, Iterable
2
2
  from typing import Any
3
3
 
4
- from faststream._internal.configs import BrokerConfigType
4
+ from faststream._internal.configs import BrokerConfigType_co
5
5
  from faststream._internal.types import MsgType
6
6
 
7
7
  from .registrator import Registrator
@@ -46,13 +46,13 @@ class SubscriberRoute(ArgsContainer):
46
46
  super().__init__(*args, **kwargs)
47
47
 
48
48
 
49
- class BrokerRouter(Registrator[MsgType, BrokerConfigType]):
49
+ class BrokerRouter(Registrator[MsgType, BrokerConfigType_co]):
50
50
  """A generic class representing a broker router."""
51
51
 
52
52
  def __init__(
53
53
  self,
54
54
  *,
55
- config: BrokerConfigType,
55
+ config: BrokerConfigType_co,
56
56
  handlers: Iterable[SubscriberRoute],
57
57
  routers: Iterable["Registrator[Any, Any]"],
58
58
  ) -> None:
@@ -19,4 +19,6 @@ class RunArgs:
19
19
 
20
20
 
21
21
  class RunFunction(Protocol):
22
+ __slots__ = ()
23
+
22
24
  def __call__(self, args: "RunArgs") -> None: ...
@@ -48,6 +48,14 @@ if HAS_UVICORN:
48
48
 
49
49
 
50
50
  class ASGIMultiprocess:
51
+ __slots__ = (
52
+ "_is_factory",
53
+ "_log_level",
54
+ "_run_extra_options",
55
+ "_target",
56
+ "_workers",
57
+ )
58
+
51
59
  def __init__(
52
60
  self,
53
61
  target: str,
@@ -17,6 +17,15 @@ if TYPE_CHECKING:
17
17
  class BaseReload:
18
18
  """A base class for implementing a reloader process."""
19
19
 
20
+ __slots__ = (
21
+ "_args",
22
+ "_process",
23
+ "_target",
24
+ "pid",
25
+ "reload_delay",
26
+ "should_exit",
27
+ )
28
+
20
29
  _process: SpawnProcess
21
30
 
22
31
  reload_delay: float | None
@@ -16,6 +16,11 @@ if TYPE_CHECKING:
16
16
  class Multiprocess(BaseReload):
17
17
  """A class to represent a multiprocess."""
18
18
 
19
+ __slots__ = (
20
+ "processes",
21
+ "workers",
22
+ )
23
+
19
24
  def __init__(
20
25
  self,
21
26
  target: "RunFunction",
@@ -46,6 +46,8 @@ class ExitEvent:
46
46
  process on a lock it already owns (see issue #3119).
47
47
  """
48
48
 
49
+ __slots__ = ("_is_set",)
50
+
49
51
  def __init__(self) -> None:
50
52
  self._is_set = False
51
53
 
@@ -36,6 +36,12 @@ class ExtendedFilter(watchfiles.PythonFilter):
36
36
  class WatchReloader(BaseReload):
37
37
  """A class to reload a target function when files in specified directories change."""
38
38
 
39
+ __slots__ = (
40
+ "reload_dirs",
41
+ "reloader_name",
42
+ "watcher",
43
+ )
44
+
39
45
  def __init__(
40
46
  self,
41
47
  target: "RunFunction",
@@ -1,4 +1,4 @@
1
- from .broker import BrokerConfig, BrokerConfigType, ConfigComposition
1
+ from .broker import BrokerConfig, BrokerConfigType_co, ConfigComposition
2
2
  from .endpoint import PublisherUsecaseConfig, SubscriberUsecaseConfig
3
3
  from .specification import (
4
4
  PublisherSpecificationConfig,
@@ -7,7 +7,7 @@ from .specification import (
7
7
 
8
8
  __all__ = (
9
9
  "BrokerConfig",
10
- "BrokerConfigType",
10
+ "BrokerConfigType_co",
11
11
  "ConfigComposition",
12
12
  "PublisherSpecificationConfig",
13
13
  "PublisherUsecaseConfig",
@@ -67,28 +67,29 @@ class BrokerConfig:
67
67
  self.broker_middlewares = (middleware, *self.broker_middlewares)
68
68
 
69
69
 
70
- BrokerConfigType = TypeVar313(
71
- "BrokerConfigType",
70
+ BrokerConfigType_co = TypeVar313(
71
+ "BrokerConfigType_co",
72
72
  bound=BrokerConfig,
73
73
  default=BrokerConfig,
74
+ covariant=True,
74
75
  )
75
76
 
76
- ConfigType = Union["ConfigComposition[Any]", "BrokerConfigType", BrokerConfig]
77
+ ConfigType = Union["ConfigComposition[Any]", "BrokerConfigType_co", BrokerConfig]
77
78
 
78
79
 
79
- class ConfigComposition(Generic[BrokerConfigType]): # noqa: PLR0904
80
- def __init__(self, config: BrokerConfigType) -> None:
81
- self.configs: tuple[ConfigType, ...] = (config,)
80
+ class ConfigComposition(Generic[BrokerConfigType_co]): # noqa: PLR0904
81
+ def __init__(self, config: BrokerConfigType_co) -> None:
82
+ self.configs: tuple[ConfigType[BrokerConfigType_co], ...] = (config,)
82
83
 
83
84
  @property
84
- def broker_config(self) -> "BrokerConfigType":
85
+ def broker_config(self) -> "BrokerConfigType_co":
85
86
  assert self.configs
86
87
  return self.configs[0] # type: ignore[return-value]
87
88
 
88
89
  def __repr__(self) -> str:
89
90
  return f"{self.__class__.__name__}({', '.join(repr(c) for c in self.configs)})"
90
91
 
91
- def add_config(self, config: "ConfigType") -> None:
92
+ def add_config(self, config: "ConfigType[BrokerConfigType_co]") -> None:
92
93
  self.configs = (config, *self.configs)
93
94
 
94
95
  def reset(self) -> None:
@@ -12,6 +12,8 @@ class ContentTypes(str, Enum):
12
12
 
13
13
 
14
14
  class EmptyPlaceholder:
15
+ __slots__ = ()
16
+
15
17
  def __repr__(self) -> str:
16
18
  return "EMPTY"
17
19
 
@@ -21,14 +21,14 @@ if TYPE_CHECKING:
21
21
  from faststream.message import StreamMessage
22
22
 
23
23
 
24
- @dataclass(kw_only=True)
24
+ @dataclass(kw_only=True, slots=True)
25
25
  class BuiltDependant:
26
26
  original_call: Callable[..., Any]
27
27
  wrapped_call: Callable[..., Any]
28
28
  dependent: "CallModel"
29
29
 
30
30
 
31
- @dataclass(kw_only=True)
31
+ @dataclass(kw_only=True, slots=True)
32
32
  class FastDependsConfig:
33
33
  use_fastdepends: bool = True
34
34
 
@@ -18,6 +18,8 @@ if TYPE_CHECKING:
18
18
  class FakePublisher(PublisherProto):
19
19
  """Publisher Interface implementation to use as RPC or REPLY TO answer publisher."""
20
20
 
21
+ __slots__ = ("_producer",)
22
+
21
23
  def __init__(
22
24
  self,
23
25
  *,
@@ -14,6 +14,8 @@ if TYPE_CHECKING:
14
14
 
15
15
 
16
16
  class PublisherProto(Protocol[PublishCommandType_contra]):
17
+ __slots__ = ()
18
+
17
19
  @abstractmethod
18
20
  async def publish(
19
21
  self,
@@ -26,6 +26,8 @@ T_BrokerConfig = TypeVar313("T_BrokerConfig", bound=BrokerConfig, default=Broker
26
26
  class PublisherSpecification(
27
27
  EndpointSpecification[T_BrokerConfig, T_SpecificationConfig],
28
28
  ):
29
+ __slots__ = ("calls",)
30
+
29
31
  def __init__(
30
32
  self,
31
33
  _outer_config: "T_BrokerConfig",
@@ -34,6 +34,13 @@ if TYPE_CHECKING:
34
34
  class PublisherUsecase(CallAssertions, Endpoint, PublisherProto):
35
35
  """A base class for publishers in an asynchronous API."""
36
36
 
37
+ __slots__ = (
38
+ "_fake_handler",
39
+ "_recorder",
40
+ "is_test",
41
+ "specification",
42
+ )
43
+
37
44
  def __init__(
38
45
  self,
39
46
  config: "PublisherUsecaseConfig",
@@ -21,6 +21,11 @@ class EndpointSpecification(Generic[T_BrokerConfig, T_SpecificationConfig]):
21
21
  the document lists it at all.
22
22
  """
23
23
 
24
+ __slots__ = (
25
+ "_outer_config",
26
+ "config",
27
+ )
28
+
24
29
  def __init__(
25
30
  self,
26
31
  _outer_config: "T_BrokerConfig",
@@ -15,6 +15,8 @@ if TYPE_CHECKING:
15
15
 
16
16
 
17
17
  class TasksMixin(SubscriberUsecase[Any]):
18
+ __slots__ = ("tasks",)
19
+
18
20
  def __init__(self, *args: Any, **kwargs: Any) -> None:
19
21
  super().__init__(*args, **kwargs)
20
22
  self.tasks: list[asyncio.Task[Any]] = []
@@ -52,6 +54,12 @@ class TasksMixin(SubscriberUsecase[Any]):
52
54
 
53
55
 
54
56
  class ConcurrentMixin(TasksMixin, Generic[MsgType]):
57
+ """Unslotted on purpose.
58
+
59
+ Every `Concurrent<X>Subscriber` mixes this into a broker's own slotted
60
+ subscriber, and two slotted bases under one `SubscriberUsecase` conflict.
61
+ """
62
+
55
63
  send_stream: "MemoryObjectSendStream[MsgType]"
56
64
  receive_stream: "MemoryObjectReceiveStream[MsgType]"
57
65
 
@@ -29,6 +29,8 @@ T_BrokerConfig = TypeVar313("T_BrokerConfig", bound=BrokerConfig, default=Broker
29
29
  class SubscriberSpecification(
30
30
  EndpointSpecification[T_BrokerConfig, T_SpecificationConfig],
31
31
  ):
32
+ __slots__ = ("calls",)
33
+
32
34
  def __init__(
33
35
  self,
34
36
  _outer_config: "T_BrokerConfig",
@@ -68,6 +68,21 @@ class _CallOptions(NamedTuple):
68
68
  class SubscriberUsecase(Endpoint, Generic[MsgType]):
69
69
  """A class representing an asynchronous handler."""
70
70
 
71
+ __slots__ = (
72
+ "__auto_ack_disabled",
73
+ "_call_decorators",
74
+ "_call_options",
75
+ "_decoder",
76
+ "_no_reply",
77
+ "_parser",
78
+ "ack_policy",
79
+ "calls",
80
+ "extra_watcher_options",
81
+ "lock",
82
+ "running",
83
+ "specification",
84
+ )
85
+
71
86
  lock: "AbstractContextManager[Any]"
72
87
  extra_watcher_options: dict[str, Any]
73
88
  graceful_timeout: float | None
@@ -23,6 +23,8 @@ class MultiLock:
23
23
  `wait_release` method waits for all locks will be released.
24
24
  """
25
25
 
26
+ __slots__ = ("queue",)
27
+
26
28
  def __init__(self) -> None:
27
29
  """Initialize a new instance of the class."""
28
30
  self.queue: asyncio.Queue[None] = asyncio.Queue()
@@ -13,6 +13,11 @@ if TYPE_CHECKING:
13
13
 
14
14
 
15
15
  class Endpoint:
16
+ # Subscribers and publishers keep a `__dict__`: users patch their methods on the
17
+ # instance in tests (`patch.object(publisher, "publish")`), and there are only a
18
+ # few per application. `Registrator` holds them in a WeakSet, hence `__weakref__`.
19
+ __slots__ = ("__dict__", "__weakref__", "_outer_config")
20
+
16
21
  def __init__(self, config: "BrokerConfig") -> None:
17
22
  self._outer_config = config
18
23
 
@@ -49,6 +49,12 @@ async def process_msg(
49
49
 
50
50
 
51
51
  class ParserComposition:
52
+ __slots__ = (
53
+ "custom_func",
54
+ "default_func",
55
+ "wrapped_func",
56
+ )
57
+
52
58
  def __init__(
53
59
  self,
54
60
  custom_func: Optional["CustomCallable"],
@@ -44,7 +44,7 @@ __all__ = (
44
44
  )
45
45
 
46
46
 
47
- @dataclass
47
+ @dataclass(slots=True)
48
48
  class SolvedDependency:
49
49
  values: dict[str, Any]
50
50
  errors: list[Any]
@@ -5,7 +5,7 @@ if TYPE_CHECKING:
5
5
  from fastapi import FastAPI
6
6
 
7
7
 
8
- @dataclass
8
+ @dataclass(slots=True)
9
9
  class FastAPIConfig:
10
10
  dependency_overrides_provider: Any | None
11
11
  application: Optional["FastAPI"] = None
@@ -25,6 +25,8 @@ if TYPE_CHECKING:
25
25
  class _FastStreamDependant(Dependant):
26
26
  """FastAPI dependant extended with fields required by FastStream."""
27
27
 
28
+ __slots__ = ("custom_fields", "flat_params", "model")
29
+
28
30
  model: type[Any]
29
31
  custom_fields: dict[str, Any]
30
32
  flat_params: list[OptionItem]
@@ -68,6 +68,8 @@ if TYPE_CHECKING:
68
68
 
69
69
 
70
70
  class _BackgroundMiddleware(BaseMiddleware):
71
+ __slots__ = ()
72
+
71
73
  async def __aexit__(
72
74
  self,
73
75
  exc_type: type[BaseException] | None = None,
@@ -9,6 +9,8 @@ from faststream.exceptions import IncorrectState
9
9
 
10
10
 
11
11
  class LoggerObject(LoggerProto):
12
+ __slots__ = ()
13
+
12
14
  logger: Optional["LoggerProto"]
13
15
 
14
16
  @abstractmethod
@@ -21,6 +23,8 @@ class NotSetLoggerObject(LoggerObject):
21
23
  Raises an error if user tries to log smth before state setup.
22
24
  """
23
25
 
26
+ __slots__ = ("logger",)
27
+
24
28
  def __init__(self) -> None:
25
29
  self.logger = None
26
30
 
@@ -53,6 +57,8 @@ class EmptyLoggerObject(LoggerObject):
53
57
  Will be used if user setup `logger=None`.
54
58
  """
55
59
 
60
+ __slots__ = ("logger",)
61
+
56
62
  def __init__(self) -> None:
57
63
  self.logger = None
58
64
 
@@ -81,6 +87,8 @@ class RealLoggerObject(LoggerObject):
81
87
  or in default logger case (.params_storage.DefaultLoggerStorage).
82
88
  """
83
89
 
90
+ __slots__ = ("logger",)
91
+
84
92
  logger: "LoggerProto"
85
93
 
86
94
  def __init__(self, logger: "LoggerProto") -> None:
@@ -23,6 +23,8 @@ def make_logger_storage(
23
23
 
24
24
 
25
25
  class LoggerParamsStorage(Protocol):
26
+ __slots__ = ()
27
+
26
28
  def register_subscriber(self, params: dict[str, Any]) -> None: ...
27
29
 
28
30
  def get_logger(self, *, context: "ContextRepo") -> Optional["LoggerProto"]: ...
@@ -31,6 +33,8 @@ class LoggerParamsStorage(Protocol):
31
33
 
32
34
 
33
35
  class EmptyLoggerStorage(LoggerParamsStorage):
36
+ __slots__ = ()
37
+
34
38
  def register_subscriber(self, params: dict[str, Any]) -> None:
35
39
  pass
36
40
 
@@ -43,6 +47,8 @@ class EmptyLoggerStorage(LoggerParamsStorage):
43
47
 
44
48
 
45
49
  class ManualLoggerStorage(LoggerParamsStorage):
50
+ __slots__ = ("__logger",)
51
+
46
52
  def __init__(self, logger: "LoggerProto") -> None:
47
53
  self.__logger = logger
48
54
 
@@ -58,6 +64,11 @@ class ManualLoggerStorage(LoggerParamsStorage):
58
64
 
59
65
 
60
66
  class DefaultLoggerStorage(LoggerParamsStorage):
67
+ __slots__ = (
68
+ "_logger_ref",
69
+ "logger_log_level",
70
+ )
71
+
61
72
  def __init__(self) -> None:
62
73
  # will be used to build logger in `get_logger` method
63
74
  self.logger_log_level = logging.INFO
@@ -36,6 +36,12 @@ def make_logger_state(
36
36
 
37
37
 
38
38
  class LoggerState:
39
+ __slots__ = (
40
+ "log_level",
41
+ "logger",
42
+ "params_storage",
43
+ )
44
+
39
45
  def __init__(
40
46
  self,
41
47
  log_level: int = logging.INFO,
@@ -16,6 +16,8 @@ if TYPE_CHECKING:
16
16
  class BaseMiddleware(Generic[PublishCommandType, AnyMsg]):
17
17
  """A base middleware class."""
18
18
 
19
+ __slots__ = ("context", "msg")
20
+
19
21
  def __init__(
20
22
  self,
21
23
  msg: AnyMsg | None,