View CSV, Parquet files and pandas/polars DataFrames in a terminal UI
Project description
hmm-viewer
Python package for hmm — a terminal UI for viewing CSV and Parquet files.
The Go binary is automatically downloaded from GitHub releases on first use. No need to install Go.
Installation
uv pip install hmm-viewer # base install
uv pip install 'hmm-viewer[pandas]' # with pandas support
uv pip install 'hmm-viewer[polars]' # with polars support
Usage
CLI
After installing, the hmm command is available:
hmm data.csv
hmm data.parquet
Python API
from hmm_viewer import hmm
# Works with pandas DataFrames
import pandas as pd
df = pd.read_csv("data.csv")
hmm(df)
# Works with polars DataFrames
import polars as pl
df = pl.read_parquet("data.parquet")
hmm(df)
This is especially useful from a debugger (ipdb, pdb, ipython) to quickly inspect a DataFrame in the terminal.
How it works
- CLI: The
hmmcommand is a thin wrapper that delegates to the Go binary. - Python API:
hmm(df)writes the DataFrame to a temporary Parquet file, launches thehmmbinary, and cleans up the temp file when done. - Auto-download: If the Go binary isn't found on
$PATHor~/go/bin, it is automatically downloaded from GitHub releases and cached at~/.cache/hmm/.
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 hmm_viewer-1.0.3.tar.gz.
File metadata
- Download URL: hmm_viewer-1.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e686b1c3f73d02a307dde70cc070da77edb822a2d28b0999cba3b2a22bfa161
|
|
| MD5 |
3c10ab7b31e4083e480acccabf085d0d
|
|
| BLAKE2b-256 |
f22209412e8893376e9fae2729fb45280cad69730ef910e363ae30aad6fd97ef
|
Provenance
The following attestation bundles were made for hmm_viewer-1.0.3.tar.gz:
Publisher:
release.yaml on suntianxun/hmm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hmm_viewer-1.0.3.tar.gz -
Subject digest:
1e686b1c3f73d02a307dde70cc070da77edb822a2d28b0999cba3b2a22bfa161 - Sigstore transparency entry: 1228925262
- Sigstore integration time:
-
Permalink:
suntianxun/hmm@8fcbef8eb2397a3cd938e0e79e90af1df90c7e17 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/suntianxun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8fcbef8eb2397a3cd938e0e79e90af1df90c7e17 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hmm_viewer-1.0.3-py3-none-any.whl.
File metadata
- Download URL: hmm_viewer-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.5 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 |
7e7a0f23bbf531bb18faac95fb7488754ae3c7eb972d8e26c2130713123af61d
|
|
| MD5 |
41a987c10c1b30dce0a089127f6af212
|
|
| BLAKE2b-256 |
396c6fdac7eef70a33fa4b8f8970afd01d5b7e1368b6a09ac3af90338e6d3c64
|
Provenance
The following attestation bundles were made for hmm_viewer-1.0.3-py3-none-any.whl:
Publisher:
release.yaml on suntianxun/hmm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hmm_viewer-1.0.3-py3-none-any.whl -
Subject digest:
7e7a0f23bbf531bb18faac95fb7488754ae3c7eb972d8e26c2130713123af61d - Sigstore transparency entry: 1228925283
- Sigstore integration time:
-
Permalink:
suntianxun/hmm@8fcbef8eb2397a3cd938e0e79e90af1df90c7e17 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/suntianxun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8fcbef8eb2397a3cd938e0e79e90af1df90c7e17 -
Trigger Event:
push
-
Statement type: