Skip to content

schema_adapter

πŸ€– AI-Generated Content

This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.

pyvider.conversion.schema_adapter

Classes

Functions

pvs_schema_to_proto async

pvs_schema_to_proto(schema: PvsSchema) -> pb.Schema

Converts a PvsSchema into a protobuf Schema message.

Source code in pyvider/conversion/schema_adapter.py
async def pvs_schema_to_proto(schema: PvsSchema) -> pb.Schema:
    """Converts a PvsSchema into a protobuf Schema message."""
    proto_block = _pvs_object_type_to_proto(schema.block)
    return pb.Schema(version=schema.version, block=proto_block)