Skip to content

Parquet

Parquet graph-directory helpers from annnet.io.parquet.

The public functions are to_parquet(...) and from_parquet(...). The Parquet reader and writer remain format-specific, but intermediate annotation tables are built through AnnNet's centralized dataframe backend helpers instead of choosing Polars or pandas locally.

annnet.io.parquet

Parquet import/export helpers for AnnNet.

Provides: to_parquet(G, path, ...) -> None from_parquet(path, ...) -> AnnNet

This module stores AnnNet graph tables and metadata as Parquet-backed files. Dataframe construction and Parquet IO are routed through AnnNet's dataframe backend via the IO common façade.

Classes

Functions

to_parquet
to_parquet(graph, path)

Write lossless GraphDir:

vertices.parquet, edges.parquet, slices.parquet, edge_slices.parquet, manifest.json Wide tables (attrs as columns). Hyperedges stored with 'kind' and head/tail/members lists.

from_parquet
from_parquet(path)

Read GraphDir (lossless) using bulk ops for speed.