# APSW glues the entire SQLite C API to Python

Original title: apsw: Another Python SQLite Wrapper

> Hacker News story 50045273 · language: en · submitted 2026-10-11
> Web version: https://zeli.app/story/50045273
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 86 · by [tosh](<https://news.ycombinator.com/user?id=tosh>) · 💬 29
[original](<https://github.com/rogerbinns/apsw>) · [HN discussion](<https://news.ycombinator.com/item?id=50045273>)

## Summary

APSW, Another Python SQLite Wrapper, exposes the complete SQLite C API to CPython 3.10 and later, including full text search, sessions, virtual tables, VFS, JSON, and CArray. It works in synchronous code and all async frameworks. The author recommends the builtin sqlite3 module if you want SQLite to look interchangeable with other database drivers, and APSW when you want to use SQLite fully.

## Key quote

> Use APSW when you want to use SQLite fully, and have an improved developer experience.

## HN discussion (29 comments)

### [Retr0id](<https://news.ycombinator.com/item?id=50046583>)

> In a sentence, I'd say apsw is "the SQLite lover's SQLite library". The python stdlib one tries to provide a generic interface ("DBAPI") which is great if you want to be able to swap to a different database engine later, but it's bad for actually getting the most out of SQLite.

### [jph00](<https://news.ycombinator.com/item?id=50048185>)

> For anyone interested in an ergonomic API over this-- I ported sqlite-utils to apsw a while back: https://github.com/AnswerDotAI/apswutils
>
> I've been using it a lot over the last year or two and it's worked great.

### [arc-in-space](<https://news.ycombinator.com/item?id=50046251>)

> This library is great, and recently saved a project of mine. Figuring out what was going on with some of python's sqlite3 quirks was too much of a hassle, meanwhile this more or less just worked the way I expected it to. Because of this experience I started defaulting to it over sqlite3 for other projects as well.
>
> (This documentation page explains the library's intent: https://rogerbinns.github.io/apsw/pysqlite.html)

---

## Cite

- Page: https://zeli.app/story/50045273
- Date: 2026-10-11
- Source: github.com (https://github.com/rogerbinns/apsw)
- Hacker News: https://news.ycombinator.com/item?id=50045273

## Other languages

- zh: https://zeli.app/zh/story/50045273 · markdown: https://zeli.app/zh/story/50045273.md
- ja: https://zeli.app/ja/story/50045273 · markdown: https://zeli.app/ja/story/50045273.md
- ko: https://zeli.app/ko/story/50045273 · markdown: https://zeli.app/ko/story/50045273.md
- de: https://zeli.app/de/story/50045273 · markdown: https://zeli.app/de/story/50045273.md
- es: https://zeli.app/es/story/50045273 · markdown: https://zeli.app/es/story/50045273.md
- ru: https://zeli.app/ru/story/50045273 · markdown: https://zeli.app/ru/story/50045273.md
