from io import BytesIO from avro.schema import Parse from avro.io import DatumReader, BinaryDecoder schema = Parse("""{ "namespace": "org.buildroot.package.python_avro", "type": "record", "name": "Developer", "fields": [ {"name": "email", "type": "string"}, {"name": "maintainer_of", "type": "string"} ] }""") example = b'