Skip to main content
Version: 0.8.0

avro_encoder

avro_encoder​

View source
avro_encoder(
msg
)

Encoder to encode pydantic instances to avro message

Parameters:

NameTypeDescriptionDefault
msgBaseModelAn instance of pydantic basemodelrequired

Returns:

TypeDescription
bytesA bytes message which is encoded from pydantic basemodel