Skip to main content

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 hmm command is a thin wrapper that delegates to the Go binary.
  • Python API: hmm(df) writes the DataFrame to a temporary Parquet file, launches the hmm binary, and cleans up the temp file when done.
  • Auto-download: If the Go binary isn't found on $PATH or ~/go/bin, it is automatically downloaded from GitHub releases and cached at ~/.cache/hmm/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hmm_viewer-2.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hmm_viewer-2.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file hmm_viewer-2.0.0.tar.gz.

File metadata

  • Download URL: hmm_viewer-2.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hmm_viewer-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8313dfffb85576c994b6dd7a7152dab399c4f1e478b0ada7150cf1301153325a
MD5 abe5f7b0355a839dc374439a88493919
BLAKE2b-256 874db3ee6da5f4cbfd10ba13148c07b56826490f90d44b41d64ab9fa76258fe0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hmm_viewer-2.0.0.tar.gz:

Publisher: release.yaml on suntianxun/hmm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hmm_viewer-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: hmm_viewer-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hmm_viewer-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5496460ccf1422e7bf97d2278205e1badcdc495e0fcf2a65d539b0396eefd128
MD5 28013f80e1bcca4cf898a13a4b95a0c8
BLAKE2b-256 1e0660fc53c598e0316bec0740b778431fa11d687d17c9ef39f86c22b31319d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hmm_viewer-2.0.0-py3-none-any.whl:

Publisher: release.yaml on suntianxun/hmm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page