Subcommands
The tool automatically detects the operation to perform based on the input file type and provided flags.
Conversion → Parquet (default mode)
convert_to_parquet [OPTIONS] <INPUT...>
Automatic input format detection:
| Extension | Format Processed |
|---|---|
.csv, .tsv | CSV/TSV (delimiter auto-detected) |
.json, .jsonl, .ndjson | JSON / JSONL / NDJSON |
.xlsx, .xlsm, .xlsb, .xls, .ods | Excel / LibreOffice Spreadsheet |
.parquet | Interactive schema inspection |
.gz, .zst | Automatic decompression then conversion |
Reverse Conversion: Parquet → CSV
convert_to_parquet --to-csv <FILE.parquet> -o <OUTPUT.csv>
Reverse Conversion: Parquet → JSONL
convert_to_parquet --to-jsonl <FILE.parquet> -o <OUTPUT.jsonl>
Reverse Conversion: Parquet → JSON
convert_to_parquet --to-json <FILE.parquet> -o <OUTPUT.json>
Produces a JSON array of objects from the Parquet file. Null fields are omitted.
Reverse Conversion: Parquet → XLSX
convert_to_parquet --to-xlsx <FILE.parquet> -o <OUTPUT.xlsx>
Writes the Parquet data into an Excel workbook (XLSX). Each Parquet file becomes a single sheet in the workbook.
Preview Mode: JSON/JSONL
convert_to_parquet --preview <FILE.json>
Prints a tabular preview to stdout without writing a Parquet file. Nested JSON is shown flattened (see --flatten-separator, --flatten-max-level).
Schema Inspection
convert_to_parquet --view-schema <FILE.parquet>
Displays Parquet file metadata (compressed/decompressed size per column, null count).
Interactive Mode
When a Parquet file is passed without an export flag and the terminal is interactive, a full-screen viewer (ratatui) opens:
- Data preview with navigation through rows and columns
- On-the-fly export to CSV, JSONL, JSON, or XLSX
When the output is redirected (non-interactive), it falls back to printing the schema and statistics instead.
Generating the Man Page
convert_to_parquet --man > convert_to_parquet.1