Skip to main content

SQL exploration over data files with your CLI

Project description

sqlexplore

SQL exploration over data files with your CLI

Currently in development (Feb 2026).

Install

Requires Python 3.13+.

pip install sqlexplore

Optional (uv tool install):

uv tool install sqlexplore

Usage

Local file:

sqlexplore ./data/example.parquet

Remote file URL:

sqlexplore https://example.com/data_file.csv

Show version:

sqlexplore --version

Remote URL behavior:

  • Supports http:// and https:// URLs ending in .csv, .tsv, .txt, .parquet, or .pq.
  • Downloads to <app-user-dir>/downloads/<filename> by default.
  • Use --download-dir /your/path to override the download location.
  • If local download target already exists, prints warning and exits (no overwrite by default). Use --overwrite to replace it.
  • Logs download details before normal app flow: remote/local path, progress, elapsed time, and file size.
  • In TUI mode, the Activity pane shows app version on load, then startup download log lines (if any).
  • Activity pane logs executed SQL for startup query runs, manual SQL, and helper/slash-command generated SQL.

Result formatting:

  • JSON syntax highlighting is auto-applied for VARCHAR/text columns when sampled values look like JSON objects/arrays.
  • Detection samples only a few visible rows (not full columns) to keep rendering fast.
  • Highlighting is disabled when query result row count is over 100,000.
  • .txt sources load as one line per row with extra metrics columns: line_number, line_length, line_hash, word_count, mean_word_length, median_word_length, max_word_length, min_word_length.

Autocomplete behavior:

  • Completions auto-open from engine context for SQL clauses and helper command arguments (for example SELECT and /top ).
  • Up/Down navigates the completion menu whenever it is visible.
  • Tab accepts the selected completion when the menu is visible; otherwise it inserts editor indentation.
  • Esc closes the completion menu.
  • Ctrl+Space opens completion mode explicitly.

Known limitations

  • Python 3.12 and below are not supported.
  • Remote downloads only support .csv, .tsv, .txt, .parquet, .pq.

Links

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

sqlexplore-0.4.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

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

sqlexplore-0.4.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file sqlexplore-0.4.0.tar.gz.

File metadata

  • Download URL: sqlexplore-0.4.0.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 sqlexplore-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f19aca879bd4c3d89dbde2238f74cf564078a925fde1276de9020d7935d89445
MD5 b6d5d9d05af10967216a2b1bcf46209b
BLAKE2b-256 4d35f1e55aa737454d7f5c1a21e74e044cf353a7ad3bfeca5c3c859a792347ed

See more details on using hashes here.

File details

Details for the file sqlexplore-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: sqlexplore-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","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 sqlexplore-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27a395e4673498eda1b1e9c591e18907b33930e7d37040fe4f71092b72acb0db
MD5 efa851659d4f53c645f4fd86bee512ec
BLAKE2b-256 039a5dbe2c34d4beaa04ecb57ac3da62306071787c6d4d83cd0fa041e044d6e3

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