class documentation
class StreamDataSource(ABC, Codable, SerializableType): (source)
Known subclasses: aligned.HttpStreamSource
, aligned.sources.kafka.KafkaTopicConfig
, aligned.sources.redis.RedisStreamSource
Constructor: StreamDataSource._deserialize(value)
Used to determend if an API call should be created, or if we should listen to a stream.
Method | consumer |
Returns a consumer that actually can load data |
Class Variable | name |
Undocumented |
Class Variable | topic |
Undocumented |
Class Method | _deserialize |
Undocumented |
Method | _serialize |
Undocumented |
Returns a consumer that actually can load data
E.g: ```python redis_config = RedisConfig(env_var="REDIS_URL")
consumer = redis_config.consumer() ```
- Returns:
- ReadableStream: A stream you can read records from
overridden in
aligned.HttpStreamSource
, aligned.sources.kafka.KafkaTopicConfig
, aligned.sources.redis.RedisStreamSource
Undocumented
overridden in
aligned.HttpStreamSource
, aligned.sources.kafka.KafkaTopicConfig
, aligned.sources.redis.RedisStreamSource
Undocumented