dataframely.read_parquet_metadata_schema#

dataframely.read_parquet_metadata_schema(
source: str | Path | IO[bytes] | bytes,
) type[Schema] | None[source]#

Read a dataframely schema from the metadata of a parquet file.

Parameters:

source – Path to a parquet file or a file-like object that contains the metadata.

Returns:

The schema that was serialized to the metadata. None if no schema metadata is found or the deserialization fails.