Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

ExtensionFormat Processed
.csv, .tsvCSV/TSV (delimiter auto-detected)
.json, .jsonl, .ndjsonJSON / JSONL / NDJSON
.xlsx, .xlsm, .xlsb, .xls, .odsExcel / LibreOffice Spreadsheet
.parquetInteractive schema inspection
.gz, .zstAutomatic 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:

  1. Data preview with navigation through rows and columns
  2. 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