Skip to main content
Version: 0.8.0

KafkaEvent

fastkafka.KafkaEvent​

View source

A generic class for representing Kafka events. Based on BaseSubmodel, bound to pydantic.BaseModel

Parameters:

NameTypeDescriptionDefault
messageBaseSubmodelThe message contained in the Kafka event, can be of type pydantic.BaseModel.required
keyOptional[bytes]The optional key used to identify the Kafka event.None