Skip to content

Support Proto Descriptors #70

Closed
@MSSandroid

Description

@MSSandroid

Summary

The Messages do not have Proto Descriptors like the protobuf implementation. These are required e.g., to write protobuf into MCAP file format.

What is the feature request for?

The core library

The Problem

I am looking into creating MCAP files from python code. MCAP is a container format that stores the schema together with the messages easing the reading of data. To write the schema to the MCAP file it utilizes the Protobuf Descriptors, see mcap-protobuf-support and where schema is writen to mcap. The betterproto2 message classes do not provide such descriptors.

Is it in the scope of this project to provide descriptors for the messages? What do you think would be a good way to implement the feature?

The Ideal Solution

The descriptor could be either added during compile and would then be implemented in betterproto2_compiler or be more of a "decompiler" from the python classes directly (decompiler could be an extra package).

The Current Solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions