Skip to main content

A browser-based CSV database with SQL query support

Project description

CSVSQL

A browser-based database that uses CSV files as storage. Open CSV files as tables, run SQL queries against them, and edit data inline — all in a multi-window interface with no server or build step required.

Features

  • CSV as database tables — Each CSV file is a table. Open multiple files and query across them.
  • SQL queries — Write and execute SQL from the built-in console (powered by AlaSQL). Each query result opens in its own window.
  • Inline editing — Click any cell to edit. Tab/Enter to navigate, Escape to cancel.
  • Sort and filter — Click column headers to sort. Use the filter bar to search across all columns.
  • Multi-window workspace — Every table and query result lives in its own draggable, resizable subwindow. Arrange them with Tile, Grid, or Cascade layouts.
  • Row management — Add/delete rows, insert rows at any position (right-click row numbers), add new columns.
  • Save — Export any table or query result back to CSV.

Getting Started

No dependencies to install. Just serve the files or open directly:

# Option 1: any static file server
python3 -m http.server 8000
# then open http://localhost:8000

# Option 2: open directly
open index.html

Use File > Open CSV to load a CSV file (a sample.csv is included), or File > New Table to create one from scratch.

SQL Console

The console sits at the bottom of the window. Type a query and press Ctrl+Enter (or click Run) to execute.

-- Query a loaded table by its filename (minus extension)
SELECT * FROM sample WHERE name LIKE 'A%'

-- Aggregate queries
SELECT department, AVG(salary) as avg_salary FROM employees GROUP BY department

-- Join across tables
SELECT a.name, b.value FROM table1 a JOIN table2 b ON a.id = b.id

Table names are derived from the CSV filename (e.g., employees.csv becomes employees).

Keyboard Shortcuts

Key Action
Ctrl+Enter Execute SQL query
Tab / Shift+Tab Navigate between cells in a row
Enter Move to next row (same column)
Escape Cancel cell edit

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

csvsql-0.4.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

csvsql-0.4.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csvsql-0.4.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for csvsql-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1eb79553e39d55cb75f46fc5fe0dc2e2b773f0b159bae81efa10fc1bfe6b0165
MD5 3a5ddc7bf2a7904195ff5ab0b04f85a7
BLAKE2b-256 fbb4b0dcc55d3caf690033faa253f47bb1aa94869041d8357f3421fc09645bdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csvsql-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for csvsql-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8b6fb5873d896aab9ee380d3bd9c233724ea576e769b4ba249ff199919eebb
MD5 8f2c3038e4d18b81be5b2b25594c8af6
BLAKE2b-256 ebfd89c1941a92ca00a3ae80c30b47034d6e6b696381da5c3ebaff87ea36d0ae

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