Skip to main content
Version: dev 🚧

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

init​

__init__(
self, message, key=None
)