apswutils
A fork of sqlite-minutils for apsw
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight SQLite abstraction layer and are comfortable with apsw's error model. The package is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. It's a solid choice for projects that want more than raw SQL but don't need a full ORM. Verify apsw's installation requirements for your platform first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; apsw must be installed as a runtime dependency.
- Low install friction with only two runtime dependencies (fastcore and apsw).
- The package is actively maintained with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache Software License 2.0 (permissive) — Licensed under Apache Software License 2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2025-12-18 (239 days) · last repo commit 2026-07-26 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 732,203 downloads/mo, #5,202 on PyPI
Alternatives
Verify before relying
pip install apswutils
from apswutils.db import *
db = Database(":memory:")
users = Table(db, 'Users')
users.create(columns=dict(id=int, name=str, age=int))
users.insert(dict(name='Alice', age=8))
for row in users.rows_where('age > 3'):
print(row)- Whether apsw installation requires compilation or system libraries on all platforms.
- Performance characteristics compared to other SQLite wrappers for large datasets.
- Completeness of feature parity with sqlite-minutils beyond the documented differences.
What it is and what it does
apswutils is a fork of sqlite-minutils adapted to use apsw instead of the standard sqlite3 library. It provides a high-level Python interface for working with SQLite databases, offering classes like Database, Table, View, and Queryable that abstract away raw SQL for common operations like table creation, row insertion, filtering, and transactions.
The package is designed for developers who want a more Pythonic way to interact with SQLite without writing raw SQL. It supports features like schema introspection, filtered queries with WHERE clauses, transaction management with rollback capability, and automatic handling of default values including expression-based defaults. Key differences from the original include WAL as the default mode, different error handling that maps to apsw exceptions, and stricter primary key requirements for foreign key targets.
Use it for
- Build a lightweight application database layer without a full ORM framework.
- Manage SQLite schemas programmatically with automatic table creation and transformation.
- Query and filter data with a Pythonic API instead of writing raw SQL strings.
- Handle multi-step database operations with explicit transaction control and rollback.
- Work with in-memory SQLite databases for testing or temporary data processing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight SQLite abstraction layer and are comfortable with apsw's error model.
The package is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. It's a solid choice for projects that want more than raw SQL but don't need a full ORM. Verify apsw's installation requirements for your platform first.
Install
apswutils on PyPI
Before you install
Low install friction with only two runtime dependencies (fastcore and apsw). The package is actively maintained with recent releases and no known vulnerabilities.
Requires Python 3.9 or later; apsw must be installed as a runtime dependency.
License in practice
Licensed under Apache Software License 2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install apswutils
from apswutils.db import *
db = Database(":memory:")
users = Table(db, 'Users')
users.create(columns=dict(id=int, name=str, age=int))
users.insert(dict(name='Alice', age=8))
for row in users.rows_where('age > 3'):
print(row)
Verify before relying
- Whether apsw installation requires compilation or system libraries on all platforms.
- Performance characteristics compared to other SQLite wrappers for large datasets.
- Completeness of feature parity with sqlite-minutils beyond the documented differences.
Package facts
| License | Apache Software License 2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesfastcoreapsw |
| Maintenance | Actively maintained 239 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 732,203 / month, #5,202 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.9 |
Evidence: apswutils-0.1.2-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 orm python”
- apswutilsProvides a Python interface for SQLite databases using APSW, with…
- peeweePeewee is a lightweight ORM that maps Python classes to database…
- opentelemetry-instrumentation-tortoiseormAdds distributed tracing to Tortoise ORM queries across MySQL,…
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 apsw · fastlite · sqlite-utils · aiosqlite · aiosql · sqlitedict · sqlite-migrate · oslo.db · anysqlite · dirsql