view-data
Universal tabular data viewer — open any CSV, JSON, Parquet, or Excel file in a fast, interactive terminal UI with sort, filter, search, and SQL — all in one command.
view file.csv
view data.json --sql "SELECT name, age FROM data WHERE age > 30"
view results.parquet
view sheet.xlsx
view --sql "SELECT * FROM 'a.csv' JOIN 'b.json' USING(id)"
Install
# From source
pip install .
# Or with pipx (recommended — isolated environment)
pipx install .
Requires Python 3.10+.
Usage
view <file> Open a file in the TUI
view <file> --format csv Force format detection
view <file> --head 1000 Load only first 1 000 rows
view <file> --sql "SELECT …" Run SQL before viewing (table alias: data)
view --sql "SELECT … FROM 'a.csv'" Cross-file SQL (no positional file needed)
view --version
view --help
Supported formats
| Extension | Format |
|---|---|
.csv, .tsv, .txt |
CSV / TSV (delimiter auto-detected) |
.json |
JSON array-of-objects |
.jsonl, .ndjson |
Newline-delimited JSON |
.parquet |
Apache Parquet |
.xlsx, .xls |
Excel (first sheet) |
Keybindings
Navigation
| Key | Action |
|---|---|
↑ ↓ ← → |
Move cursor |
Page Up / Page Down |
Scroll by page |
Home / End |
First / last column |
g |
Jump to first row |
G (Shift+G) |
Jump to last row |
Enter |
Expand full cell value |
Sorting
| Key | Action |
|---|---|
s |
Sort by current column (asc → desc → clear) |
Filtering
| Key | Action |
|---|---|
/ |
Open filter bar |
Esc |
Clear all filters |
Filter syntax:
name=Alice exact match
age>30 numeric comparison
city~New.* regex match
age>=18 city~NY AND (space-separated)
Search
| Key | Action |
|---|---|
Ctrl+F |
Open search (all visible cells) |
n |
Next match |
N (Shift+N) |
Previous match |
Esc |
Clear search |
Columns
| Key | Action |
|---|---|
c |
Open column show/hide picker |
< |
Shrink current column |
> |
Grow current column |
SQL
| Key | Action |
|---|---|
: |
Open SQL prompt (table alias: data) |
Example: : SELECT city, COUNT(*) AS n FROM data GROUP BY city ORDER BY n DESC
Export & Other
| Key | Action |
|---|---|
e |
Export current view (CSV or JSON) |
? |
Show help overlay |
q / Esc |
Quit |
SQL Examples
# Filter before viewing
view employees.csv --sql "SELECT * FROM data WHERE salary > 100000"
# Aggregate
view orders.csv --sql "SELECT product, SUM(amount) as total FROM data GROUP BY product"
# Cross-file join (no positional file)
view --sql "SELECT a.name, b.order_count FROM 'customers.csv' a JOIN 'orders.json' b ON a.id = b.customer_id"
# Nested JSON — access struct fields with dot notation
view events.json --sql "SELECT meta.page, meta.duration_ms FROM data WHERE event='click'"
Screenshot
(placeholder — run view tests/fixtures/sample.csv to see it live)
Development
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
# Generate test fixtures
python tests/fixtures/create_fixtures.py
# Run
view tests/fixtures/sample.csv
view tests/fixtures/sample.json --sql "SELECT id, title FROM data LIMIT 5"
Metadata
Release files for viewcli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viewcli-0.1.0.tar.gz | 29.8 kB | Without provenance | Details for viewcli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| viewcli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for viewcli-0.1.0-py3-none-any.whl |
Total release size: 56.1 kB
Release files / viewcli-0.1.0.tar.gz
| Download URL | viewcli-0.1.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9c34d1b83f84a436700cfcf7dfde4d6a74be76188dd5e0685ea33b7f1468167
|
|
BLAKE2b-256 checksum How to use checksums |
d00db0446cd7a73fa3ca9c36edc8083e2ecfba987d417b24b5cb1a6403d92458
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / viewcli-0.1.0-py3-none-any.whl
| Download URL | viewcli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68a94ddbb838026afdae78faf070c9af4f3e10324ae4df545aa9774f745ecc51
|
|
BLAKE2b-256 checksum How to use checksums |
b386e9604f039f6d242c872d3c9df3c0398e6e339f2a436e7ab67f40fd9eb926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for viewcli 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.