Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

28 results for “sqlite-utils”

Newest and most relevant first

datasette-charts 0.2a0

Datasette users can now ask the chat-based Datasette Agent to build charts conversationally instead of using a chart builder UI, blending chat and visual data exploration.

Simon Willison released version 0.2a0 of datasette-charts, a plugin for Datasette, a tool for publishing and exploring databases. The new part is that it connects to Datasette Agent, a chatbot for the same tool, so you can type a request like 'show sqlite-utils downloads over time as a chart' and get a chart drawn inside the chat. You can click to open that chart in a separate builder, change it, and the chatbot will notice and describe your changes. It matters to people who analyze data in a browser.

Willison's datasette-charts 0.2a0 adds chat-driven chart creation via Datasette Agent, demonstrated at agent.datasette.io with GitHub sign-in. The workflow shows chat output staying in sync with a visual editor: when a user changes the chart outside the chat, the agent detects the change and describes the new state. For teams using Datasette, this reduces the friction of building charts manually, though the alpha version number signals it is early and unpriced.

datasette-charts 0.2a0 integrates with Datasette Agent by exposing the same chart suggestion and generation tools to the chat interface. In the demo, a '#stats' shortcut opens a table search box, the agent renders a chart inline in chat, and 'Open in the chart builder' opens it in a panel beside the table page. The agent apparently observes panel state, since it described a chart the user switched manually. The article omits implementation details beyond stating the agent reuses the plugin's underlying tools.

Simon Willison’s Weblog →

github-to-sqlite 2.9.1

Developers pinning sqlite-utils 4.x can now keep using github-to-sqlite without downgrading, but the release is only a single compatibility fix.

github-to-sqlite is a free, open-source tool that saves information about GitHub projects, issues and users into a SQLite database, a simple file-based data store, so people can query it easily. Version 2.9.1 fixes one bug so the tool works with the newest major release of a companion library called sqlite-utils. Anyone using both tools together needed this fix. The article contains no other details, benchmarks or dates.

The Dogsheep project released github-to-sqlite 2.9.1, containing a single bug fix that restores compatibility with sqlite-utils 4.x. This matters only to teams already using both tools together, where the mismatch previously forced a version downgrade. There is no cost, competitive or timeline information, and the release notes are extremely thin.

github-to-sqlite 2.9.1 addresses issue #85, a breakage caused by the sqlite-utils 4.x major release, restoring compatibility for the tool that imports GitHub data into SQLite databases. The changelog lists nothing besides this single fix, and no mechanism, benchmark or performance detail is given. Users on sqlite-utils 3.x are unaffected. No dates or migration notes are provided.

Simon Willison’s Weblog →

sqlite-utils 4.2.1

Very little: sqlite-utils 4.2.1 fixes a missing typing-extensions dependency that crashed version 4.2, plus documents a uv command to test without dev dependencies.

sqlite-utils is a free command-line tool for working with SQLite databases. Version 4.2.1 fixes a bug from version 4.2 that made the tool crash because a helper package called typing-extensions was not installed alongside it. Anyone who downloaded the broken 4.2 version directly was affected. Users just need to upgrade to 4.2.1.

The 4.2 release of the open-source sqlite-utils tool shipped with a crash because the typing-extensions package was missing from its dependency list. Version 4.2.1 fixes this with no other changes announced. The risk is minimal: only users running 'uvx sqlite-utils' on the broken 4.2 hit it. No cost or competitive implications.

sqlite-utils 4.2.1 fixes a NameError caused by 'from typing_extensions import Self', where typing-extensions was only in the dev dependency group in pyproject.toml, not a runtime dependency, so 'uvx sqlite-utils' failed. Willison added a smoke test using 'uv run --isolated --no-default-groups sqlite-utils --help' to catch this class of missing-dependency bug in the project checkout.

Simon Willison’s Weblog →

sqlite-utils 4.2

sqlite-utils users can now safely alter table schemas in place, but should upgrade to 4.2.1 immediately because 4.2 shipped with a crashing bug.

sqlite-utils, a free open-source command-line tool and Python library for working with SQLite databases, released version 4.2. Its table.transform() feature, which restructures a table by rebuilding it and copying data across, now preserves trickier schema details like check constraints, unique constraints, and column comments. New properties also let developers inspect check constraints. A crashing bug was found in 4.2 and fixed in version 4.2.1.

sqlite-utils 4.2 makes schema transformations far safer for teams managing SQLite databases: version 4.2's transform() now preserves check constraints, unique constraints, and column comments that earlier releases could silently drop. The release is free and open source, with community contributions. Risk note: 4.2 contained a crashing bug, fixed in 4.2.1, so adopters should skip straight to the patched version.

sqlite-utils 4.2 expands table.transform(), which implements complex ALTER TABLE operations by creating a new table, copying data, then dropping and replacing the original. Version 4.2 preserves more edge-case schema definitions, including check constraints, unique constraints, and column comments. New introspection properties expose check constraint details. A crashing bug in 4.2 was fixed in 4.2.1 (issue #842).

Simon Willison’s Weblog →

alchemy-utils 0.1a0

Simon Willison's sqlite-utils CLI now has a database-agnostic SQLAlchemy-backed equivalent usable today against PostgreSQL, SQLite and DuckDB.

Simon Willison released the first test version (0.1a0) of a tool called alchemy-utils. It lets you work with databases using simple commands, just like his popular sqlite-utils tool, but it works with many kinds of databases instead of only one. He built most of it by asking OpenAI's Codex coding agent, using the model called GPT-5.6 Sol Ultra, in a single morning.

This is a niche developer tool release with no commercial stakes. Simon Willison shipped alchemy-utils 0.1a0, an alpha built largely by the Codex agent using GPT-5.6 Sol Ultra in one morning with few follow-up prompts. The practical signal for decision-makers is that agentic coding now produces a releasable, tested library prototype in hours. No pricing, adoption numbers or business impact are given.

alchemy-utils 0.1a0 ports sqlite-utils' core API (insert, upsert, insert_all, upsert_all, create, update, table introspection) onto SQLAlchemy for multi-engine support, tested against PostgreSQL, SQLite and DuckDB with pytest in red/green TDD. Installable via uvx with optional extras like alchemy-utils[postgresql] or [duckdb]. A CSV-to-DuckDB load of San Francisco's street tree list was slow (~1 hour) until Codex optimized it to ~35 seconds. Limitations: alpha release, no stated API stability.

Simon Willison’s Weblog →

datasette-auth-tokens 0.4a13

Very little for most readers: a maintenance release of a niche Datasette authentication plugin, relevant only if you run Datasette and have upgraded to sqlite-utils 4.

Simon Willison released version 0.4a13 of datasette-auth-tokens, a small add-on for his Datasette data-publishing tool that lets people access published data using API tokens instead of passwords. This release exists purely so the plugin keeps working with version 4 of sqlite-utils, a companion tool for working with SQLite databases. Only users who run both tools together are affected. No new capabilities, fixes or dates are mentioned in the post.

This is a compatibility maintenance release, not a product update: datasette-auth-tokens 0.4a13 exists solely so the token-authentication plugin continues to function with sqlite-utils 4. Only teams running Datasette, Willison's open-source data exploration tool, alongside the new sqlite-utils 4 release need to act. There is no cost, pricing or timeline information, and no competitive impact; the practical takeaway is to bump the plugin version when upgrading.

datasette-auth-tokens 0.4a13 is an alpha release of the Datasette plugin providing API-token-based authentication for Datasette instances. The single stated change is an upgrade for compatibility with sqlite-utils 4, presumably reflecting breaking API changes in that major version. No changelog detail, migration notes, benchmark figures or security fixes are given. Teams pinning the plugin should verify behaviour against sqlite-utils 4 after upgrading.

Simon Willison’s Weblog →

sqlite-utils 3.39.1

Users of sqlite-utils stuck on the 3.x series can now get a table.delete_where() bugfix without upgrading to version 4; otherwise the impact is minor.

Simon Willison released sqlite-utils 3.39.1, a small update to his open-source command-line tool and Python library for working with SQLite databases. It back-ports a fix for the table.delete_where() command, meaning the same repair that shipped in version 4 now also works on the older 3.x series. Users who cannot yet upgrade to version 4 get the fix without switching versions. The article omits any description of what the bug actually did.

This is a routine maintenance release of sqlite-utils, a free, open-source developer tool, not a strategic announcement. Version 3.39.1 back-ports a fix for the table.delete_where() function from version 4, letting teams that remain on the older 3.x branch patch the bug without a major upgrade. No costs, timelines or competitive implications are given, and the article does not say who the bug affected or how severely.

sqlite-utils 3.39.1 back-ports the fix for table.delete_where() from GitHub issue #815, originally shipped in the version 4 line, to the 3.x series. Teams pinned to 3.x can now get the delete_where() repair without migrating to 4.0. The article does not state the bug's behaviour, its severity, or whether other 4.x fixes will be back-ported.

Simon Willison’s Weblog →

Ruff v0.16.0

Ruff v0.16.0 enables 413 rules by default instead of 59, so un-pinned CI setups will start failing until their codebases are fixed.

Ruff is a free program that checks Python code for mistakes. Its new version, v0.16.0, released on July 23rd, checks for far more problems automatically: 413 kinds of issues instead of 59. The programmer Simon Willison ran it on his three projects and it found hundreds of problems, which AI coding assistants then fixed for him.

Astral shipped Ruff v0.16.0 on July 23rd with a much stricter default rule set, up from 59 rules to 413. Teams with unpinned dependencies saw their CI checks fail without changing any code, so migration effort lands this week. AI agents (Codex and Claude Code) successfully fixed hundreds of issues across three of Willison's open-source projects. Astral is now owned by OpenAI.

Ruff v0.16.0 raises the default rule count from 59 to 413 out of 968 total, catching issues like missing tz arguments in datetime.now() and blind exception catches. Running `uvx ruff@latest check . --fix --unsafe-fixes` on sqlite-utils reported 1,618 errors, auto-fixing 1,538 and leaving 80. Codex (GPT-5.6 Sol high) fixed llm and sqlite-utils; Claude Code with Opus 5 fixed Datasette.

Simon Willison’s Weblog →

sqlite-utils 4.1.1

It is a minor bug-fix release: sqlite-utils users calling table.transform() inside transactions with foreign keys can now silently corrupt fewer databases.

sqlite-utils is a free command-line tool for working with SQLite databases, which are small database files. Version 4.1.1 fixes a subtle bug where restructuring a table could silently delete or alter rows in related tables. The bug was spotted by the AI assistant Claude while answering a question. It only affects people running that specific operation inside a transaction; no pricing or other details are given.

This is a patch release of an open-source developer utility, not a business event. sqlite-utils 4.1.1 prevents a data-loss edge case when restructuring tables, and adds cross-references between its two documentation sets. Teams relying on SQLite for tooling should upgrade when convenient, but there is no cost, competitive or compliance implication. No pricing, timeline or adoption figures are stated.

sqlite-utils 4.1.1 fixes issue #794: table.transform() previously dropped the old table inside a transaction with PRAGMA foreign_keys enabled, which could fire destructive ON DELETE actions (CASCADE, SET NULL, SET DEFAULT) on referencing rows. transform() now raises TransactionError in that state, since the pragma cannot be toggled mid-transaction; workarounds are documented. Docs for CLI and Python API now cross-link (issue #791).

Simon Willison’s Weblog →

sqlite-utils 4.1

A minor sqlite-utils release adds practical CLI conveniences, Python-generated rows, CSV type overrides, index dropping, plus strict-table conversion, but nothing urgent for most practitioners.

sqlite-utils is a free open-source tool for working with SQLite databases from the command line. Version 4.1, released days after 4.0, adds small conveniences: you can now generate rows to insert by writing a short piece of Python code directly in the command, tell it to store columns like ZIP codes as text so leading zeros survive, and delete database indexes by name. Anyone using the tool benefits slightly; nobody else is affected.

This is a minor point release (4.1) of a free open-source command-line tool, so cost is nil and competitive stakes are low. The changes reduce friction for teams importing CSV data, ZIP-code-like columns no longer lose leading zeros, and simplify upserts by inferring primary keys. Notably, the developer used OpenAI's Codex agents to find and implement several of these features, illustrating how small tools now ship AI-assisted changes quickly.

sqlite-utils 4.1 adds a --code option to insert/upsert accepting inline Python defining a rows() generator, --type column-name type overrides for CSV/TSV schema inference, a drop-index command and table.drop_index() with ignore flags, and stdin query support via '-'. table.transform() gains strict=True/False to convert tables to or from SQLite STRICT mode, Hahn noted SQLite cannot ALTER strictness, so sqlite-utils copies data via its existing transform mechanism. upsert also infers primary keys from existing tables. Several features came from Codex review of open issues.

Simon Willison’s Weblog →

sqlite-utils 4.0, now with database schema migrations

Python developers working with SQLite can now run structured schema migrations and nested transactions through sqlite-utils 4.0, eliminating the need for a separate migration library.

Simon Willison released version 4.0 of sqlite-utils, a free open-source command-line tool for managing SQLite databases. Its headline addition is database migrations: an ordered list of changes to a database's structure that the tool tracks and applies automatically. It also adds nested transactions, meaning groups of changes that can be undone together, and support for compound foreign keys. Anyone building small apps or data tools on SQLite is the audience; there are minor breaking changes requiring an upgrade guide.

sqlite-utils 4.0, the first major release since November 2020 and the project's 124th, folds schema migrations directly into the tool, absorbing Willison's separate sqlite-migrate package, which existing dependents keep working via a compatibility shim. The migrations design deliberately skips automatic generation and rollback support, unlike Django's migrations. Teams using the Datasette/LLM ecosystem gain a built-in migration path; minor breaking changes mean checking the upgrade guide before bumping versions.

sqlite-utils 4.0 adds a Migrations API: migration functions decorated via Migrations() are tracked in a _sqlite_migrations table (migration_set, name, applied_at) and applied via 'sqlite-utils migrate data.db migrations.py' or migrations.apply(db). Migrations rely on table.transform(), which implements SQLite's recommended 12-step ALTER TABLE workaround (recreate-copy-drop-rename). Also new: nestable db.atomic() context manager built on SQLite savepoints, and compound foreign key creation and introspection. Upserts now use INSERT ... ON CONFLICT ... DO UPDATE SET. Rollback support is intentionally omitted; the design originated in the sqlite-migrate package released three years ago.

Simon Willison’s Weblog →

sqlite-migrate 0.2

Developers using sqlite-migrate can keep their migration workflows intact after upgrading to sqlite-utils 4.0, because version 0.2 replaces the retired library with a compatibility shim.

Simon Willison released sqlite-migrate 0.2 on 7th July 2026. It is a simple tool for managing database migrations (structured changes to a database's structure) for SQLite, a popular lightweight database. This version no longer contains its own code; instead it wraps the new sqlite-utils 4.0 release so existing users' setups keep working. The article itself is very short and gives no further technical detail.

sqlite-migrate 0.2, released 7th July 2026 by Simon Willison, keeps his SQLite migration tool alive through a compatibility shim on top of sqlite-utils 4.0. Teams relying on sqlite-migrate face no immediate breakage when adopting sqlite-utils 4.0. The post gives no roadmap, pricing or deprecation timeline, so long-term maintenance risk remains an open question.

sqlite-migrate 0.2, published 7th July 2026, retires the standalone library and implements a compatibility shim against the new sqlite-utils 4.0 dependency. Migration behaviour is now delegated to sqlite-utils itself, meaning the shim exists purely to preserve the existing API surface. The post documents no breaking changes, benchmark data or migration caveats, and links to other recent blog entries only.

Simon Willison’s Weblog →

sqlite-utils 4.0

sqlite-utils users now get built-in database schema migrations in the 4.0 release, though the post only links to details elsewhere.

sqlite-utils, a popular open-source command-line tool for working with SQLite databases, has reached version 4.0. This release adds support for database schema migrations, meaning you can now change a database's structure safely and repeatably instead of running hand-written SQL. The post itself is only a short pointer to a fuller write-up published the same week. No benchmarks or technical details are given here.

Simon Willison's sqlite-utils tool has shipped its 4.0 release, whose headline capability is database schema migrations. For teams using SQLite in data pipelines or applications, this reduces the need for external migration tooling. The post is a brief announcement with no pricing or adoption figures; full details sit in the linked companion article.

sqlite-utils 4.0 is out, with the release page linking to a July 2026 companion post titled 'sqlite-utils 4.0, now with database schema migrations'. The blog entry itself contains no release notes, API changes, breaking-change details or benchmark numbers. Engineers should consult the linked write-up or the GitHub release tag for specifics.

Simon Willison’s Weblog →

sqlite-utils 4.0rc4

The final release candidate of sqlite-utils 4.0 means the stable version is imminent; developers using it should test the breaking changes now before upgrading.

sqlite-utils is a free, open-source command-line tool and Python library for working with SQLite, the widely used lightweight database that stores data in a single file. Version 4.0rc4 is the last release candidate before the stable 4.0 version ships. It mainly applies corrections suggested by a detailed code review from Claude, an AI model. The article does not list the actual changes, pricing is irrelevant since the tool is free, and only Python developers who use SQLite are affected.

This is a minor software milestone: the final release candidate (4.0rc4) of sqlite-utils, a free open-source Python tool for managing SQLite databases, ahead of the stable 4.0 release. The changes come largely from a detailed review by Claude, an AI model. The only operational risk is to teams that depend on the tool, who should verify the 4.0 changes before upgrading. There is no cost, competition or timing consequence for anyone else.

sqlite-utils 4.0rc4 is the last release candidate before 4.0 stable of Simon Willison's Python CLI and library for manipulating SQLite databases. The changeset primarily implements feedback from a detailed review by Claude Fable 5, which likely identified bugs or API issues. The article names no specific API changes, breaking changes, dates for the stable release, or benchmark figures. Anyone maintaining sqlite-utils integrations should track the impending 4.0 stable release.

Simon Willison’s Weblog →

sqlite-utils 4.0rc3

The 4.0 release of sqlite-utils includes a subtle breaking change to table.foreign_keys, so developers must update their code before upgrading.

sqlite-utils is a free command-line tool and Python library for working with SQLite databases, a popular lightweight database format. Version 4.0rc3 is a release candidate, meaning a final stable version is nearly ready. The main addition is support for compound foreign keys, which are links that tie one database table to another using multiple columns at once. Anyone who maintains code using this tool may need to make small changes to keep it working.

sqlite-utils 4.0rc3 moves the popular open-source SQLite toolkit closer to a stable 4.0 release. The change is mostly relevant as maintenance risk: a subtle breaking change to the table.foreign_keys Python API means teams using the library must audit and update their code when 4.0 lands. No costs, competitors or dates beyond the author's weekend release target are stated.

sqlite-utils 4.0rc3 adds introspection and creation of compound foreign keys, which required a subtle breaking change to table.foreign_keys and therefore had to land before 4.0 stable. The library now follows SQLite's convention for case-insensitive column name matching, touching many code paths. The changelog since rc2 grew as the author worked through issues using Claude Fable 5 and GPT-5.5. No benchmark or performance figures are given.

Simon Willison’s Weblog →

sqlite-utils 4.0rc2, mostly written by Claude Fable (for about $149.25)

AI coding agents can autonomously find and fix release-blocking data-loss bugs in mature open source libraries before they ship.

Simon Willison used Anthropic's Claude Fable model to prepare the 4.0 release candidate of sqlite-utils, a popular Python tool for working with SQLite databases. The AI found a serious bug where deleting rows could silently erase other saved data, plus five other release blockers. Over 37 prompts it made changes across 30 files, costing an estimated $149.25 of AI usage.

Willison shipped sqlite-utils 4.0rc2 largely via Claude Fable inside his $200/month Claude Max subscription, avoiding full API pricing before the model's July 7 price increase. The agent found five release blockers, including a data-loss bug in delete_where(), and made +1,321/-190 line changes across 30 files. The main lesson: one model reviewing another model's work caught bugs the first missed.

Claude Code for web (claude-fable-5) produced sqlite-utils 4.0rc2 via 37 prompts, 34 commits, +1,321/-190 lines across 30 files, at an unsubsidized-equivalent cost of $149.25 measured with AgentsView. Key fixes: delete_where() left the connection in_transaction=True poisoning later atomic() savepoints; per-method auto-commit transactions now documented explicitly; Python 3.12+ sqlite3 autocommit modes broke the test suite and were fixed. GPT-5.5 via Codex Desktop found db.query() committed writes before raising ValueError and INSERT...RETURNING only committed after generator exhaustion.

Simon Willison’s Weblog →

sqlite-utils 4.0rc2

A second release candidate of sqlite-utils 4.0 signals the major version is nearly final, and it was produced largely by Anthropic's Claude Fable for about $149.25, a concrete data point on AI-assisted development costs.

Simon Willison has published the second release candidate of sqlite-utils 4.0, a command-line tool and Python library for working with SQLite databases. A release candidate is a near-final version released for testing before the official launch. Notably, he says this version was mostly written by an AI model called Claude Fable for about $149.25. It affects developers who use SQLite, a popular lightweight database.

Simon Willison released sqlite-utils 4.0rc2, the second near-final build of version 4.0 of his SQLite database toolkit. The notable detail is cost: he states the code was mostly written by Anthropic's Claude Fable model for about $149.25, a concrete benchmark for AI-assisted software development budgets. The article itself is a short pointer to a GitHub release and a companion post, containing no changelog, pricing plans or timeline for the final 4.0 release.

sqlite-utils 4.0rc2 is the second release candidate of the 4.0 major version, published on GitHub at tag 4.0rc2. Willison's blog post links to a companion article titled 'sqlite-utils 4.0rc2, mostly written by Claude Fable (for about $149.25)', indicating the majority of the code was generated by that AI model. The blog entry provides no changelog, breaking-change list, migration notes or benchmark data; readers must consult the linked GitHub release and companion post for technical detail.

Simon Willison’s Weblog →

June 2026 newsletter

Very little changes: this is an announcement that a paywalled monthly newsletter exists, with headline teasers but no substance on any item.

Simon Willison, a well-known AI commentator, published his June newsletter behind a $10/month sponsorship paywall. The teaser lists topics like new models (Claude Fable 5, GPT-5.6, GLM-5.2), export restrictions, and his tools sqlite-utils and Datasette, but gives no details on any of them. Readers who don't pay get only headlines plus the May edition as a free preview. No actual news content is included in the post itself.

This is a marketing post for Willison's sponsors-only newsletter, not the newsletter's contents. It names topics, Claude Fable 5, GPT-5.6, GLM-5.2 as the best open-weights model, US export restrictions, without explaining any of them. The only concrete facts: access costs $10/month, sponsors get it a month before the free release, and the May edition is shown as a preview. Decision-makers gain nothing from this post alone.

The post announces the June sponsors-only edition of Willison's monthly LLM digest, available for $10/month with a one-month delay to free publication. Section teasers mention Claude Fable 5, GPT-5.6, US export restrictions, GLM-5.2 as the new best open-weights model, and updates to sqlite-utils, shot-scraper and Datasette. It links to his Pyodide-based in-browser Datasette work (November 2026) but includes no technical detail, benchmarks, or analysis itself.

Simon Willison’s Weblog →

simonw/browser-compat-db

Browser compatibility data is now a single downloadable 66MB SQLite file with open CORS headers, so developers and AI tools can query it directly instead of scraping MDN.

Mozilla's MDN publishes a large dataset showing which web features work in which browsers. Simon Willison converted that dataset into a single database file, about 66MB, that anyone can download. He used AI coding tools to write both the conversion script and the automation that publishes it. Web developers building sites that must work across browsers can now query this data directly.

Willison released browser-compat-db, turning Mozilla's browser compatibility data into a ~66MB SQLite file hosted on GitHub's CDN with open CORS headers. Notably, two different AI tools did the work: a Claude Code-generated Python script built the database using sqlite-utils, and Codex Desktop (GPT-5.5) wrote the GitHub Actions workflow that publishes it. The project also demonstrates a practical workaround: GitHub releases lack CORS headers, so the file lives on an orphan 'db' branch instead.

Inspired by MDN's new MCP server, Willison converted mdn/browser-compat-data into a ~66MB SQLite database. A build_db.py script, generated by Claude Code for web using Opus 4.8, performs the conversion with sqlite-utils. Because GitHub releases lack CORS headers, a GitHub Actions workflow built by Codex Desktop (GPT-5.5) force-pushes the database to an orphan 'db' branch, where regular repo files get open CORS headers. The result is downloadable and explorable via Datasette Lite.

Simon Willison’s Weblog →

sqlite-utils 4.0rc1 adds migrations and nested transactions

SQLite-utils users get schema migrations and nested transactions in a 4.0 release candidate with several breaking changes, so anyone upgrading should test now before the stable version ships.

sqlite-utils is a free, open-source tool for working with SQLite, a popular lightweight database. Its author, Simon Willison, released a test version, 4.0rc1, of a major update. It adds 'migrations', a safe way to change a database's structure over time, and simpler handling of transactions, where groups of database changes either all succeed or all fail. It only affects people who build software using this specific tool.

Simon Willison shipped 4.0rc1 of sqlite-utils, the first release candidate of a major update to his widely used open-source SQLite library and command-line tool. Two headline additions are database migrations and nested transactions via db.atomic(). The version bump brings breaking changes, including type detection now defaulting on CSV imports and a new upsert implementation, so teams using sqlite-utils should test against the RC before the stable 4.0 release. It is free, and feedback goes through GitHub or Discord.

sqlite-utils 4.0rc1 bundles the sqlite-migrate package as a Migrations API (no reverse migrations; fix-forward by deploying new migrations), usable via Python's migrations.apply(db) or the CLI 'sqlite-utils migrate'. A new db.atomic() context manager implements nested transactions using SQLite savepoints, borrowed from Django/Peewee terminology; Willison flags it as less tested. Breaking changes include upserts using INSERT ... ON CONFLICT SET (opt-out via use_old_upsert=True), dropping Python 3.8, default type detection for CSV/TSV inserts, REAL replacing FLOAT, and db.view() replacing db.table() for views.

Simon Willison’s Weblog →

sqlite-utils 4.0rc1

Developers using sqlite-utils get schema migrations and nested transactions in the 4.0 series, changing how they manage database schema changes from code.

sqlite-utils 4.0rc1 is the first release candidate for version 4.0 of a command-line tool and Python library for working with SQLite databases. This version adds migrations, a way to apply controlled changes to a database's structure, and nested transactions, which group multiple operations that can be undone together. The 4.0 series includes potentially breaking changes for existing users.

Simon Willison has released sqlite-utils 4.0rc1, a candidate for version 4.0 of his widely used open-source SQLite utility, adding migrations and nested transactions. Teams relying on the tool should test the release candidate before the stable version, since major version bumps signal breaking changes that could affect existing scripts and workflows.

sqlite-utils 4.0rc1 introduces migrations and nested transactions to the SQLite CLI and Python library, marking the 4.0 series with potential breaking changes from 3.x. The release candidate is downloadable from GitHub. No benchmark figures, changelog details or stable-release date are given in the post; the author links to a separate announcement for specifics.

Simon Willison’s Weblog →

SQLite 3.53.0

Developers can now alter SQLite table constraints and format CLI results natively, removing workarounds and making the embedded database easier to maintain in production.

SQLite, the free database software that stores data inside ordinary applications, has released version 3.53.0. Its table-editing command can now add or remove rules about what data is allowed, such as checks that a field cannot be empty, which previously required external tools. A new function inserts items into JSON arrays, and the command-line tool displays results better. Anyone who builds or maintains apps using SQLite benefits.

SQLite 3.53.0 ships after version 3.52.0 was withdrawn, bundling accumulated fixes and user-facing improvements. Teams using SQLite gain direct ALTER TABLE support for NOT NULL and CHECK constraints, new JSON array functions, and better command-line output via a new Query Results Formatter library. No cost, performance figures or migration risks are stated, but the release is free and immediately available.

SQLite 3.53.0, the release replacing withdrawn 3.52.0, allows ALTER TABLE to add and remove NOT NULL and CHECK constraints, previously requiring tools like Simon Willison's sqlite-utils transform() method. It adds json_array_insert() plus a jsonb equivalent, and overhauls CLI result formatting via a new Query Results Formatter library (ext/qrf). Willison had Claude Code compile that library to WebAssembly for a browser playground. No benchmark numbers are given.

Simon Willison’s Weblog →

ty: An extremely fast Python type checker and LSP

Python teams can replace slow type checkers like mypy and Pyright with a tool that catches errors in milliseconds instead of hundreds of milliseconds, making in-editor checking practical on large codebases.

A company called Astral has released a free beta tool called ty that checks Python code for type mistakes, which are errors where data doesn't match what the code expects. It is dramatically faster than the existing tools developers use for this job, such as mypy and Pyright. Faster checking means errors show up almost instantly while coding rather than after a long wait.

Astral, the company behind uv and Ruff, has shipped the first beta of ty, a Python type checker claiming 10x to 60x speedups over mypy and Pyright without caching, and up to 500x over Pyrefly in one editor test. Adoption is essentially zero-cost: it is free, installable via uvx, and ships a VS Code extension. The risk is that it is a first beta, and even Willison found issues in his own sqlite-utils project.

Astral released the first beta of ty, a Python type checker and LSP server, runnable via 'uvx ty check' and through a new VS Code extension providing go-to-definition and diagnostics. Benchmarks claimed: no-cache checking 10x-60x faster than mypy and Pyright; recomputing diagnostics after editing a load-bearing PyTorch file took 4.7ms versus 386ms for Pyright and 2.38s for Pyrefly. The architecture enabling the speed is not described. Beta maturity limits production trust.

Simon Willison’s Weblog →

Under the hood of Canada Spends with Brendan Samek

Shows a working recipe, Datasette plus LLM-driven PDF extraction with arithmetic cross-checks, for turning messy government PDFs into a queryable public database.

Canada Spends is a website built by the volunteer group Build Canada that lets anyone browse Canadian government financial data, contracts, grants and transfers, in one place. Its founder Brendan Samek explains how the data is gathered, including using the AI model Gemini to pull numbers out of government PDF documents. The project's public database holds more than 2 million rows, including over 1.1 million contracts worth over $10,000.

Build Canada, a volunteer non-profit launched in February 2025, released Canada Spends to make Canadian government spending explorable by the public. Its stack combines Datasette, Ruby ingestion scripts, sqlite-utils and Gemini-powered PDF extraction, with sums cross-checked to catch extraction errors. A downloadable 2.4 GB SQLite database and live API instance are available, lowering the cost of civic-data scrutiny for journalists and researchers.

Brendan Samek walks through the Canada Spends architecture: Ruby ingestion scripts and sqlite-utils load scraped data into SQLite, served via a public Datasette instance at api.canadasbuilding.com with over 2 million rows and a combined search index over a denormalized copy. Audited financial statements are published as PDFs; Gemini extracts them, validated by cross-checking accounting sums. Tables include contracts-over-10k (1,172,575 rows), nserc_grants (701,310) and transfers (357,797).

Simon Willison’s Weblog →

Claude Opus 4.5, and why evaluating new LLMs is increasingly difficult

Opus 4.5's 67% price cut and improved prompt-injection resistance are immediately actionable, but even the author's hands-on test couldn't reliably distinguish it from the previous generation, complicating model-choice decisions.

Anthropic released Claude Opus 4.5, an AI model it calls the world's best for coding and computer use. It costs $5 per million input tokens and $25 for output, one-third the price of the previous Opus. The author tested it by having it refactor a real software project and found it excellent but indistinguishable in practice from the cheaper Sonnet 4.5. His bigger point: new AI models have become very hard to tell apart.

Anthropic launched Claude Opus 4.5, cutting Opus pricing by two-thirds to $5/$25 per million input/output tokens to compete with OpenAI's GPT-5.1-Codex-Max ($1.25/$10) and Google's Gemini 3 Pro ($2/$12), all released within a week. New features include an adjustable effort parameter and stronger prompt-injection defenses, though attacks still succeed roughly 1 in 3 times after ten attempts. Buyers get a cheaper flagship, but independent evidence it beats Sonnet 4.5 on real work remains thin.

Opus 4.5 offers 200k context, 64k output, and a March 2025 knowledge cutoff at $5/$25 per million tokens (down from $15/$75). It adds an effort parameter (high/medium/low), a computer-use zoom tool, and by default preserves thinking blocks from prior turns. Anthropic reports 4.7%/33.6%/63.0% prompt-injection success at k=1/10/100 versus Gemini 3 Pro's 12.5/60.7/92.0. The author's 20-commit, two-day sqlite-utils refactor matched Sonnet 4.5's pace, offering no practical differentiator.

Simon Willison’s Weblog →

sqlite-utils 3.39

sqlite-utils users installing via uv get a fixed plugin installer, and Claude Code demonstrated it can cherry-pick and argue about backports, not just write code.

sqlite-utils, a tool for working with SQLite databases from the command line, has released version 3.39. It fixes a bug where installing extras failed when the tool was set up using uv, a newer installer that lacks the older pip helper. The release also lets users point to a Python file for custom functions and now requires Python 3.10 or newer.

The main content for teams is the uv bug fix: plugin installation broke because uv doesn't bundle pip, the same flaw Datasette hit earlier. Notably, Willison used Claude Code to backport changes from a 4.0 alpha, with the AI successfully arguing against two larger changes, though he still did manual cleanup in PR #689. A maintenance release, not a strategic shift.

sqlite-utils 3.39 fixes plugin installation under uv tool install, which failed because uv doesn't ship pip (#687). --functions now accepts a file path to a Python file, repeatable, instead of only inline code strings (#659). Python 3.10+ is required. Willison had Claude Code cherry-pick non-breaking changes from the 4.0 alpha branch onto a 3.x branch, then manually revised the result in PR #689.

Simon Willison’s Weblog →

sqlite-utils 4.0a1 has several (minor) backwards incompatible changes

Developers using sqlite-utils must fix code touching views, FLOAT columns, square-bracket quoting and CSV type detection before the 4.0 stable release lands.

sqlite-utils 4.0a1 is a test release of a popular open-source tool for working with SQLite databases, available as both a Python library and a command-line tool. The 4.0 label means it contains small changes that break code written for the previous 3.x versions, such as renaming how views are accessed. Most changes are minor, and users of the tool will need to update their scripts before the final 4.0 arrives.

Simon Willison released sqlite-utils 4.0a1, the first alpha on the way to a stable 4.0 of his widely-used SQLite toolkit. The breaking changes are deliberately small but will force downstream projects to update tests and code, especially the switch from square-bracket to double-quote quoting in generated schemas. The release also shows AI coding tools doing real maintenance work: Claude Code updated hundreds of tests, and much of the release was built with Anthropic's new Claude Opus 4.5.

sqlite-utils 4.0a1 (the 128th release) introduces breaking changes: db.table()/db.view() separation for type hints, FLOAT replaced by REAL as the default column type, double-quoted identifiers instead of non-standard square brackets, convert() no longer skipping falsy values, and type detection on by default for CSV/insert with a --no-detect-types escape hatch. New features include insert_all()/upsert_all() accepting list/tuple iterators (prototyped via Claude Code on phone with a benchmark in the linked research repo) and a --functions flag accepting Python files. Packaging moved to pyproject.toml with uv recipes in a Justfile.

Simon Willison’s Weblog →