Display version compression and bloom filter information about a parquet file
Project description
iparq
After reading this blog, I began to wonder which Parquet version and compression methods the everyday tools we rely on actually use, only to find that there's no straightforward way to determine this. That curiosity and the difficulty of quickly discovering such details motivated me to create iparq (Information Parquet). My goal with iparq is to help users easily identify the specifics of the Parquet files generated by different engines, making it clear which featuresโlike newer encodings or certain compression algorithmsโthe creator of the parquet is using.
Features
- Bloom filters: Displays if columns have bloom filters. Read more in this great article.
- Encryption detection: Shows if columns are encrypted (๐)
- Statistics exactness: Indicates if min/max statistics are exact or approximate (PyArrow 22+)
- Compression ratios: Optional display of column sizes and compression efficiency
Installation
Zero installation - Recommended
-
Make sure to have Astral's UV installed by following the steps here:
-
Execute the following command:
uvx --refresh iparq inspect yourparquet.parquet
Using pip
-
Install the package using pip:
pip install iparq
-
Verify the installation by running:
iparq --help
Using uv
-
Make sure to have Astral's UV installed by following the steps here:
-
Execute the following command:
uv pip install iparq
-
Verify the installation by running:
iparq --help
Using Homebrew in a MAC
-
Run the following:
brew tap MiguelElGallo/tap https://github.com/MiguelElGallo//homebrew-iparq.git brew install MiguelElGallo/tap/iparq iparq --help
Usage
iparq supports inspecting single files, multiple files, and glob patterns:
iparq inspect <filename(s)> [OPTIONS]
Options include:
--format,-f: Output format, eitherrich(default) orjson--metadata-only,-m: Show only file metadata without column details--column,-c: Filter results to show only a specific column--sizes,-s: Show column sizes and compression ratios
Single File Examples:
# Basic inspection .
iparq inspect yourfile.parquet
# Output in JSON format
iparq inspect yourfile.parquet --format json
# Show only metadata
iparq inspect yourfile.parquet --metadata-only
# Filter to show only a specific column
iparq inspect yourfile.parquet --column column_name
# Show column sizes and compression ratios
iparq inspect yourfile.parquet --sizes
Multiple Files and Glob Patterns:
# Inspect multiple specific files
iparq inspect file1.parquet file2.parquet file3.parquet
# Use glob patterns to inspect all parquet files
iparq inspect *.parquet
# Use specific patterns
iparq inspect yellow*.parquet data_*.parquet
# Combine patterns and specific files
iparq inspect important.parquet temp_*.parquet
When inspecting multiple files, each file's results are displayed with a header showing the filename. The utility will read the metadata of each file and print the compression codecs used in the parquet files.
Example output
ParquetMetaModel(
created_by='parquet-cpp-arrow version 14.0.2',
num_columns=3,
num_rows=3,
num_row_groups=1,
format_version='2.6',
serialized_size=2223
)
Parquet Column Information
โโโโโโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโณโโโโโโโโโโโโโโณโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโโโโโณโโโโโโโโ
โ Row Group โ Column Name โ Index โ Compression โ Bloom โ Encrypted โ Min Value โ Max Value โ Exact โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ one โ 0 โ SNAPPY โ โ
โ โ โ -1.0 โ 2.5 โ N/A โ
โ 0 โ two โ 1 โ SNAPPY โ โ
โ โ โ bar โ foo โ N/A โ
โ 0 โ three โ 2 โ SNAPPY โ โ
โ โ โ False โ True โ N/A โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโ
Compression codecs: {'SNAPPY'}
With --sizes flag
iparq inspect yourfile.parquet --sizes
Parquet Column Information
โโโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโโณโโโโโโโโณโโโโโโโโโโณโโโโโโโโโณโโโโโโโโโโณโโโโโโโโณโโโโโโโโโณโโโโโโโโโณโโโโโโโโ
โ Row โ Column โ โ โ โ โ Min โ Max โ โ โ โ โ
โ Group โ Name โ Index โ Comprโฆ โ Bloom โ Encrypโฆ โ Value โ Value โ Exact โ Values โ Comprโฆ โ Ratio โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ one โ 0 โ SNAPPY โ โ
โ โ โ -1.0 โ 2.5 โ N/A โ 3 โ 104.0B โ 1.0x โ
โ 0 โ two โ 1 โ SNAPPY โ โ
โ โ โ bar โ foo โ N/A โ 3 โ 80.0B โ 0.9x โ
โ 0 โ three โ 2 โ SNAPPY โ โ
โ โ โ False โ True โ N/A โ 3 โ 42.0B โ 1.0x โ
โโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโโดโโโโโโโโ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iparq-0.5.0.tar.gz.
File metadata
- Download URL: iparq-0.5.0.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de20dd083092c4b40b767541614b5286cfcb255b7fbdd3b891b84a9ff4d142c6
|
|
| MD5 |
e4c92dcabea9fb70860996fa398306b6
|
|
| BLAKE2b-256 |
80885bdd4e20957c7be06295f8784b42487b77e58192178151eb223289790c5e
|
Provenance
The following attestation bundles were made for iparq-0.5.0.tar.gz:
Publisher:
python-publish.yml on MiguelElGallo/iparq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iparq-0.5.0.tar.gz -
Subject digest:
de20dd083092c4b40b767541614b5286cfcb255b7fbdd3b891b84a9ff4d142c6 - Sigstore transparency entry: 908552038
- Sigstore integration time:
-
Permalink:
MiguelElGallo/iparq@22a53356eb79943ee60b9bdf6b64f56662728bed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MiguelElGallo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22a53356eb79943ee60b9bdf6b64f56662728bed -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file iparq-0.5.0-py3-none-any.whl.
File metadata
- Download URL: iparq-0.5.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ba71baaa81dece6d300344256c3c998bf509c5a6171a1ce38e6f6476e12a645
|
|
| MD5 |
59881d3d26993d9b86236e710895be10
|
|
| BLAKE2b-256 |
582bd8800e7b12f67d944dad3c344b437e838975343c0884a888219dfead3f07
|
Provenance
The following attestation bundles were made for iparq-0.5.0-py3-none-any.whl:
Publisher:
python-publish.yml on MiguelElGallo/iparq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iparq-0.5.0-py3-none-any.whl -
Subject digest:
2ba71baaa81dece6d300344256c3c998bf509c5a6171a1ce38e6f6476e12a645 - Sigstore transparency entry: 908552045
- Sigstore integration time:
-
Permalink:
MiguelElGallo/iparq@22a53356eb79943ee60b9bdf6b64f56662728bed -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MiguelElGallo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@22a53356eb79943ee60b9bdf6b64f56662728bed -
Trigger Event:
workflow_dispatch
-
Statement type: