avro_encoder
avro_encoder​
View sourceavro_encoder(
msg
)
Encoder to encode pydantic instances to avro message
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg | BaseModel | An instance of pydantic basemodel | required |
Returns:
Type | Description |
---|---|
bytes | A bytes message which is encoded from pydantic basemodel |