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.
New Bloom filters information: Displays if there are bloom filters. Read more about bloom filters in this great article.
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 now supports additional options:
iparq inspect <filename> [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
Examples:
# 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
Replace <filename> with the path to your .parquet file. The utility will read the metadata of the file and print the compression codecs used in the parquet file.
Example ouput - Bloom Filters
ParquetMetaModel(
created_by='DuckDB version v1.2.1 (build 8e52ec4395)',
num_columns=1,
num_rows=100000000,
num_row_groups=10,
format_version='1.0',
serialized_size=1196
)
Parquet Column Information
┏━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Row Group ┃ Column Name ┃ Index ┃ Compression ┃ Bloom Filter ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ 0 │ r │ 0 │ SNAPPY │ ✅ │
│ 1 │ r │ 0 │ SNAPPY │ ✅ │
│ 2 │ r │ 0 │ SNAPPY │ ✅ │
│ 3 │ r │ 0 │ SNAPPY │ ✅ │
│ 4 │ r │ 0 │ SNAPPY │ ✅ │
│ 5 │ r │ 0 │ SNAPPY │ ✅ │
│ 6 │ r │ 0 │ SNAPPY │ ✅ │
│ 7 │ r │ 0 │ SNAPPY │ ✅ │
│ 8 │ r │ 0 │ SNAPPY │ ✅ │
│ 9 │ r │ 0 │ SNAPPY │ ✅ │
└───────────┴─────────────┴───────┴─────────────┴──────────────┘
Compression codecs: {'SNAPPY'}
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.2.6.tar.gz.
File metadata
- Download URL: iparq-0.2.6.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
965b437768389f50cda3e6ed3c69c3b748c5c85ca2f4801c6353512c95f9d7de
|
|
| MD5 |
2cb1dfb1560310446a8fc052c39ef35d
|
|
| BLAKE2b-256 |
3b5148d36cebfa5661333cfa4c8337059b38f2d926e7686c57233b4050dde6fb
|
Provenance
The following attestation bundles were made for iparq-0.2.6.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.2.6.tar.gz -
Subject digest:
965b437768389f50cda3e6ed3c69c3b748c5c85ca2f4801c6353512c95f9d7de - Sigstore transparency entry: 227339481
- Sigstore integration time:
-
Permalink:
MiguelElGallo/iparq@e8f938dd78210357b40a03ad46dbf9b518bb9533 -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/MiguelElGallo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8f938dd78210357b40a03ad46dbf9b518bb9533 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file iparq-0.2.6-py3-none-any.whl.
File metadata
- Download URL: iparq-0.2.6-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dd38632671f0b4304592caeac17922849dafff98134abca5d07042d1e4b376f
|
|
| MD5 |
b3ac818a616d4299f30223965bb3df3e
|
|
| BLAKE2b-256 |
f808be1df560f3efb68fe20366ce7f35c425af6ce6ec66e8f77adf898063b501
|
Provenance
The following attestation bundles were made for iparq-0.2.6-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.2.6-py3-none-any.whl -
Subject digest:
2dd38632671f0b4304592caeac17922849dafff98134abca5d07042d1e4b376f - Sigstore transparency entry: 227339484
- Sigstore integration time:
-
Permalink:
MiguelElGallo/iparq@e8f938dd78210357b40a03ad46dbf9b518bb9533 -
Branch / Tag:
refs/tags/v0.2.6 - Owner: https://github.com/MiguelElGallo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e8f938dd78210357b40a03ad46dbf9b518bb9533 -
Trigger Event:
workflow_dispatch
-
Statement type: