faust.types.streams
¶
-
faust.types.streams.
Processor
¶ alias of
typing.Callable
-
faust.types.streams.
GroupByKeyArg
= typing.Union[faust.types.models.FieldDescriptorT, typing.Callable[[~T], typing.Union[bytes, faust.types.core._ModelT, typing.Any, NoneType]]]¶ Type of the key argument to Stream.group_by()
-
class
faust.types.streams.
StreamT
(channel: AsyncIterator[T_co] = None, *, app: faust.types.streams._AppT = None, processors: Iterable[Callable[T]] = None, combined: List[faust.types.streams.JoinableT] = None, on_start: Callable = None, join_strategy: faust.types.streams._JoinT = None, beacon: mode.utils.types.trees.NodeT = None, concurrency_index: int = None, prev: Optional[faust.types.streams.StreamT] = None, active_partitions: Set[faust.types.tuples.TP] = None, enable_acks: bool = True, prefix: str = '', loop: asyncio.events.AbstractEventLoop = None) → None[source]¶ -
outbox
= None¶
-
join_strategy
= None¶
-
task_owner
= None¶
-
current_event
= None¶
-
active_partitions
= None¶
-
concurrency_index
= None¶
-
enable_acks
= True¶
-
prefix
= ''¶
-
abstract
enumerate
(start: int = 0) → AsyncIterable[Tuple[int, T_co]][source]¶ - Return type
AsyncIterable
[Tuple
[int
, +T_co]]
-
abstract
through
(channel: Union[str, faust.types.channels.ChannelT]) → faust.types.streams.StreamT[source]¶ - Return type
StreamT
[+T_co]
-