Hope you all doing well.
I'm ingesting data from a Kafka topic where I have multiple event types and schemas for each type. As Kafka is using wire format, the first byte is the magic byte, from byte 1 to 4 we have the schema-id and after the 5th byte we have the data itself.
I want to decode the schema-id so I'll be able to get the schema from schema-registry. How can I do that with Python?
For example, if I have b'\x00\x00\x00\x04' as the schema-id binary, how can I decode this binary so I can get the actual value of the schema-id?