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, Parquet, and Excel 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
hmm data.xlsx

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)

# Dict of DataFrames — each key becomes a sheet tab
sheets = pd.read_excel("data.xlsx", sheet_name=None)
hmm(sheets)

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 (or Excel file for a dict of DataFrames), launches the hmm binary, and cleans up the temp file when done. For dicts the TUI spinner shows immediately while the Excel file is being written.
  • 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.1.4.tar.gz (6.5 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.1.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hmm_viewer-2.1.4.tar.gz
Algorithm Hash digest
SHA256 190fdad12837c368fe3be04c292b793f00ad81409e81b63b5a324f31d14a02d7
MD5 1a1de09d54490c57cea33d32ddf96a6d
BLAKE2b-256 e3b8df68d08aa6edbfd661c6cd4320b67601d00662c1f708c3c109f30f279319

See more details on using hashes here.

Provenance

The following attestation bundles were made for hmm_viewer-2.1.4.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.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hmm_viewer-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 db68263531695d94b9d18b71c4b91b15e1581dc508c4787db8f1461adf7ca7df
MD5 86ab1ca27c105e1a0c258d6a9c16169e
BLAKE2b-256 c94d15b69f439529bb0f66a35305199b0b7b77d2a804c36a51a7bd51b3252345

See more details on using hashes here.

Provenance

The following attestation bundles were made for hmm_viewer-2.1.4-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