# simonw/sqlite-utils

Python CLI utility and library for manipulating SQLite databases

Repository: https://github.com/simonw/sqlite-utils
Canonical: https://ross.abutalabs.com/products/sqlite-utils
Homepage: https://sqlite-utils.datasette.io
Language: Python
License: Apache-2.0
License Family: permissive
Topics: sqlite, python, datasette, sqlite-database, click, cli, datasette-io, datasette-tool
Last push: 2026-08-14T00:01:52+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 2972, "days_push": 20, "days_rel": 20, "gap_med": 13, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2159, forks 167 (observed 2026-08-28T04:06:19.868500+00:00)

## What it is
sqlite-utils is a Python CLI utility and library for creating, querying, and manipulating SQLite databases. It supports piping JSON/CSV/TSV data into tables, running SQL against files, configuring full-text search, schema transformations, migrations, and plugins.

## Use cases
- load a csv file into a sqlite database
- run sql queries against  files
- add full-text search to a sqlite table
- change a column type in sqlite
- normalize data by extracting columns into lookup tables
- manage sqlite schema migrations from python
- convert  to sqlite

## When to choose
- you work with SQLite from the command line or Python
- you need to import/export JSON, CSV, or TSV data into SQLite
- you want full-text search or schema changes SQLite doesn't support natively

## When to avoid
- you need a full GUI database browser
- you're working with a database other than SQLite

## Facets
- artifact type: cli-tool
- maturity: stable
- function: cli, database, search-engine, etl, csv, plugin-system
- domain: databases, developer-tools, files
- platform: cli, python, cross-platform
- tags: sqlite, datasette, full-text-search, data-import, schema-migrations, command-line, data-engineering

## Member repositories
- simonw/sqlite-utils (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.868500+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:21.096157+00:00, confidence not recorded.
  - readme: https://github.com/simonw/sqlite-utils (fetched 2026-08-28T04:06:19.868500+00:00, sha 393364c70d80)
  - registry_pypi: https://pypi.org/pypi/sqlite-utils/json (fetched 2026-08-29T10:30:44.679576+00:00, sha a496c5c575bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
