[Python] How to write a python code for the below scenario without protoc installation:...

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    Input: GBP proto file, respective GBP message Output: Deserialise the GBP messagesas per the given proto file. Also the code should be agnostic to the GBP proto File. Meaning the user can provide input file as different.proto file

    How to write a python code for the above scenario without protoc installation.

    sample proto file:

    syntax = "proto3";

    message ExampleMessage {
    int32 id = 1;
    string name = 2;
    }


    Sample GPB Message:

    id: 123
    name: "Alice"


    Output:

    id: 123
    name: "Alice"

    Continue reading...

Compartilhe esta Página