Redis Subscriber Specification (subscriber/specification.py)

faststream · faststream/redis/subscriber/specification.py · python · Apache-2.0
realtime, integration, database, chat, lang:python, tag:asyncapi

Defines schema specifications for Redis subscribers in FastStream. Use this to generate AsyncAPI documentation for Redis-based message consumers.

# Source: https://github.com/ag2ai/faststream | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from typing import TYPE_CHECKING, Any

from faststream._internal.endpoint.subscriber import SubscriberSpecification
from faststream.redis.configs import RedisBrokerConfig
from faststream.redis.schemas import ListSub, PubSub, StreamSub
from faststream.specification.asyncapi.utils import resolve_payloads
from faststream.specification.schema import Message, Operation, SubscriberSpec
from faststream.specification.schema.bindings import ChannelBinding, redis

from .config import RedisSubscriberSpecificationConfig

if TYPE_CHECKING:
    from faststream._internal.endpoint.subscriber.call_item imp

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key