Skip to content

Convert gRPC .proto files to Apache .avro files

License

Notifications You must be signed in to change notification settings

rightlag/cereal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quickstart

The purpose of this module is to convert Google Protocol Buffer files to Apache Avro files. The following example demonstrates how to use the parser:

$ python parser.py -f helloworld.proto --out helloworld.avro

Given that the input file is helloworld.proto:

message HelloRequest {
  string name = 1;
}

message HelloReply {
  string message = 1;
}

The output will be helloworld.avro:

[
    {
        "type": "record",
        "name": "HelloRequest",
        "fields": [
            {
                "type": "String",
                "name": "name"
            }
        ]
    },
    {
        "type": "record",
        "name": "HelloReply",
        "fields": [
            {
                "type": "String",
                "name": "message"
            }
        ]
    }
]

About

Convert gRPC .proto files to Apache .avro files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages