sqlite-utils
CLI tool and Python library for manipulating SQLite databases
Decision gist · record as of 2026-08-14
Yes. Active maintenance, low install friction, no known vulnerabilities, permissive license, and broad Python version support. Useful both as a CLI utility for data exploration and as a library for programmatic database work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction: pure Python wheel with 7 runtime dependencies.
- Active maintenance with a release 1 day ago and 2150 repository stars.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 2,150 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,410,769 downloads/mo, #3,939 on PyPI
Alternatives
Verify before relying
pip install sqlite-utils
import sqlite_utils
db = sqlite_utils.Database("demo.db")
db["dogs"].insert_all([
{"id": 1, "age": 4, "name": "Cleo"},
{"id": 2, "age": 2, "name": "Pancakes"}
], pk="id")- Whether the full-text search feature requires sqlite-fts4 to be compiled or if it works on all platforms without additional system dependencies.
- Performance characteristics when working with large datasets or complex transformations.
What it is and what it does
sqlite-utils is both a command-line tool and a Python library for working with SQLite databases. It lets you pipe JSON, CSV, or TSV data directly into a new database with automatic schema inference, run SQL queries against files without creating a database first, and perform schema transformations that SQLite does not support natively. The library wraps SQLite with a Python API that handles common tasks like inserting records, extracting columns into separate tables, and managing full-text search indexes.
You can use it as a standalone CLI for one-off data operations—querying CSV files with SQL, converting JSON to a database, viewing results in different formats—or import it into your Python code to automate database creation and manipulation. It includes support for database migrations via Python files, plugin installation for custom SQL functions, and a memory mode for querying data without persisting to disk.
Use it for
- Convert CSV or JSON files into a queryable SQLite database with automatic schema creation in a single command.
- Run ad-hoc SQL queries against CSV or JSON data files without manually creating a database.
- Normalize existing database tables by extracting columns into separate tables to reduce redundancy.
- Configure and run full-text search queries against database tables, ordered by relevance.
- Manage schema changes and migrations across SQLite databases using Python migration files.
- Automate data ingestion pipelines that transform and load data into SQLite from various sources.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, low install friction, no known vulnerabilities, permissive license, and broad Python version support. Useful both as a CLI utility for data exploration and as a library for programmatic database work.
Install
sqlite-utils on PyPI
Before you install
Low install friction: pure Python wheel with 7 runtime dependencies. Active maintenance with a release 1 day ago and 2150 repository stars.
Requires Python 3.10 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install sqlite-utils
import sqlite_utils
db = sqlite_utils.Database("demo.db")
db["dogs"].insert_all([
{"id": 1, "age": 4, "name": "Cleo"},
{"id": 2, "age": 2, "name": "Pancakes"}
], pk="id")
Verify before relying
- Whether the full-text search feature requires sqlite-fts4 to be compiled or if it works on all platforms without additional system dependencies.
- Performance characteristics when working with large datasets or complex transformations.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesclickclick-default-grouppluggypython-dateutilsqlite-fts4tabulatepip |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,410,769 / month, #3,939 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Science/ResearchProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Database |
Evidence: sqlite_utils-4.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sqlite database from csv json”
- sqlite-utilsCLI tool and Python library for creating, querying, and transforming…
- datasetteDatasette is a web server and CLI tool that transforms SQLite…
- DataRecorderDataRecorder provides buffered writing tools for saving data to files…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also datasette · sqlite-migrate · apswutils · fastlite · syntaqlite · apsw · sqlite-fts4 · dirsql · litecli · csvkit