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-0.1.3.tar.gz (3.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-0.1.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hmm_viewer-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hmm_viewer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a164b274339cf92f2df2c8ae6ed6ed7c6ad8948eab4e005bb6ab3fee537aac1e
MD5 c3ff9b05d8d21649983c02f3d959d873
BLAKE2b-256 cb6d843a0425053f0327bca66a0ea9bb2ee673fa3c9d37be76605d8fe5c3009c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hmm_viewer-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hmm_viewer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 22231fb6f2ed7dd2c973cae4ecfb98fa7758d1f1ea1138b5336f29b729b4efef
MD5 e7c41e11db9e8f715940358a45608946
BLAKE2b-256 58f1606b6cb928d48e1836afa8b043d82139eadb2f380b7452e62351a99ff7cc

See more details on using hashes here.

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