Skip to main content

dataview-tui

dataview-tui is a keyboard-driven terminal UI for inspecting columnar data files. The command line entry point is dview.

The project supports Parquet, ORC, Avro, and optional Lance datasets. It is built for quickly moving between schema, data preview, metadata, and SQL query views without leaving the terminal.

Features

  • Textual-based terminal application with a project-specific dark theme.
  • Automatic format detection by extension and magic bytes.
  • S3-compatible object storage reads for Parquet, ORC, and Avro objects.
  • PyArrow-backed Parquet and ORC readers.
  • fastavro-backed Avro reader.
  • Optional Lance reader via the lance extra.
  • Schema, Data, Metadata, and SQL sidebar views.
  • Schema tree entries include field type and nullable state.
  • Metadata view includes file info, row groups/fragments/blocks, and per-column details.
  • DuckDB SQL engine exposing the opened file as data and t.
  • CLI entry points: dview and dataview.

Installation

pipx install dataview-tui
dview --version

For Lance datasets:

pipx install "dataview-tui[lance]"

To update an existing install:

pipx upgrade dataview-tui

To install the current main branch from source:

pipx install git+https://github.com/lyne7-sc/dataview-tui.git

Quick Start

Open supported files or datasets:

dview path/to/file.parquet
dview path/to/file.orc
dview path/to/file.avro
dview path/to/dataset.lance

Open a Parquet, ORC, or Avro object from S3-compatible storage:

dview s3://bucket/path/to/file.parquet

For MinIO or another S3-compatible endpoint:

dview s3://bucket/path/to/file.parquet \
  --s3-endpoint-url http://localhost:9000 \
  --s3-access-key minioadmin \
  --s3-secret-key minioadmin \
  --s3-region us-east-1

S3-compatible reads use PyArrow's S3 filesystem. If explicit credentials are not provided, PyArrow uses the available AWS credential chain. SQL is disabled for remote S3-compatible objects in this version. Remote Lance datasets are not supported yet.

Choose an initial tab:

dview path/to/file.parquet --tab data

Shell Completion

dview can print static shell completion scripts. Static completion keeps Tab completion fast because the shell does not need to start the Python TUI app for each completion request.

For zsh:

mkdir -p ~/.zfunc
dview --print-completion zsh > ~/.zfunc/_dview

Make sure ~/.zfunc is on your fpath, then restart your shell or run compinit.

For bash or fish, replace zsh with bash or fish.

Keyboard

Key Action
q Quit
1 / 2 / 3 Show Schema / Data / Metadata tab
] / [ Next page / previous page
Ctrl+F Filter columns by regex
/ Search cell contents
n / Shift+N Next / previous match
Enter Show full current cell value
y Copy current cell value
s Toggle SQL sidebar
Ctrl+Enter / Ctrl+J / F5 Run SQL

SQL

The SQL engine exposes the opened file as DuckDB views named data and t:

SELECT * FROM data LIMIT 20;
SELECT count(*) FROM t;

Query results are capped by the engine to keep the terminal responsive.

Terminal Setup

The app cannot force a terminal font. For a clearer table and SQL experience, use a monospaced font with readable punctuation and digits, such as JetBrains Mono or Maple Mono.

Development

Install dependencies and run checks:

uv sync --extra dev
uv run pytest -q
uv run ruff check .
uv build

Project layout:

src/dataview/
  app.py
  cli.py
  readers/
  widgets/
tests/

Publishing

Releases are built by GitHub Actions when a GitHub Release is published. PyPI publishing uses PyPI Trusted Publishing, so the PyPI project must be configured with this repository and .github/workflows/release.yml before publishing a release.

Dependencies

Runtime:

  • pyarrow>=12
  • textual>=0.40
  • fastavro>=1.9
  • duckdb>=0.9
  • tree-sitter>=0.25
  • tree-sitter-sql>=0.3.11

Optional:

  • pylance>=0.20 via the lance extra

Development:

  • pytest
  • pytest-asyncio
  • ruff

License

MIT

Metadata

Release files for dataview-tui 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataview-tui 0.4.0
File Size Uploaded Provenance Actions
dataview_tui-0.4.0.tar.gz 34.7 kB With provenance Details for dataview_tui-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dataview-tui 0.4.0
File Interpreter ABI Platform Actions
dataview_tui-0.4.0-py3-none-any.whl Python 3 none any Details for dataview_tui-0.4.0-py3-none-any.whl

Total release size: 67.2 kB

Release files / dataview_tui-0.4.0.tar.gz

Download URL dataview_tui-0.4.0.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01fc08125b58589fd638a847260e022fa25485fba859f6095cc041e15d44c91a
BLAKE2b-256 checksum
How to use checksums
70a404bd6bfc4df527c0114c0b7b2a6e3d01273054a5a4973a705faeb4e5d830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.

Transparency log

Release files / dataview_tui-0.4.0-py3-none-any.whl

Download URL dataview_tui-0.4.0-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bec16a29f3529938a5a68aa68272880f8ba3581aef658a16a45b0b8b3ee0bf7
BLAKE2b-256 checksum
How to use checksums
46b70730b990af4ee40ea245237b25cdf26cd3d26b953b925d6eb22e6ae2e61a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.

Transparency log

Security for dataview-tui 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dataview_tui-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page