class documentation

class KafkaTopicConfig(StreamDataSource): (source)

View In Hierarchy

Undocumented

Method consumer Returns a consumer that actually can load data
Method kafka_consumer Undocumented
Class Variable env_key Undocumented
Class Variable name Undocumented
Class Variable topic_name Undocumented

Inherited from StreamDataSource:

Class Method _deserialize Undocumented
Method _serialize Undocumented
def consumer(self, from_timestamp: str | None = None) -> KafkaReadableStream: (source)

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
def kafka_consumer(self) -> KafkaConsumer: (source)

Undocumented

Undocumented