简体   繁体   中英

Create avro schema for python dict

I want to create an avro-schema for following python-dictionary:

d = {
    'topic': 'example', 
    'content': (
        { 'description': {'name': 'alex', 'value': 12}, 'id': '234ba' }, 
        { 'description': {'name': 'john', 'value': 14}, 'id': '823cx' }
    )
}

How can I do this?

Have you tried to use the default serialization and deserialization included in the avro library for python?

https://avro.apache.org/docs/1.10.0/gettingstartedpython.html

Verify that is what you want

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM