Skip to content
Alchemy Repo: Typed Async Repository Layer for SQLAlchemy Released on PyPI and GitHub

Alchemy Repo: Typed Async Repository Layer for SQLAlchemy Released on PyPI and GitHub

First seen 24 Nov 2026, 10:17 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 24, 2026 at 10:18 UTC
  • •alchemy-repo 0.1.0 is a typed repository layer for SQLAlchemy 2.1+ async ORM, published to PyPI on 2026-11-24.
  • •The library provides statement builders, persistence helpers, and offset and cursor pagination for application-owned sessions.
  • •Upserts use native ON CONFLICT on PostgreSQL and SQLite; other databases use a portable update-then-insert path that may need retries under concurrent inserts.
  • •The articles describe no vulnerability, exploitation, or security incident.

On 2026-11-24, a PyPI package named alchemy-repo (version 0.1.0) was published, described as a typed repository layer for SQLAlchemy's async ORM. The library provides statement builders, persistence helpers, and offset pagination for application-owned sessions. It requires SQLAlchemy 2.1 or later and an async database driver such as aiosqlite or asyncpg. The documentation describes defining repository subclasses per model, with the repository owning query construction while the application owns sessions and transactions. Pagination is zero-based and requires a stable sort with a unique tie-breaker. Cursor pagination uses ascending mapped primary-key order and fetches one extra row to detect further pages without a count query. Primary-key lookup supports composite keys via tuples or dictionaries. Upsert support covers PostgreSQL and SQLite using native ON CONFLICT DO UPDATE when update_none is set, with a portable update-then-insert fallback elsewhere; the fallback may require transaction retries under concurrent inserts. A matching GitHub source tree at a specific commit hash is linked as background. The articles describe a software library release and contain no security vulnerability, exploitation, or threat content.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Timeline

2026-11-24
alchemy-repo 0.1.0 published on PyPI
The PyPI package page describes the library as a typed repository layer for SQLAlchemy's async ORM.
Pypi
2026-11-24
Matching source tree listed on GitHub
A GitHub tree at commit 85bbdad60c46b53a6edae366d60c9266b733b774 carries the same project description, linked as background.
github.com

More articles in this cluster (3)

Common questions

Does this release contain a security vulnerability?
The articles describe a software library release and report no vulnerability, CVE, or exploitation.
What are the requirements to use it?
SQLAlchemy 2.1 or later and an async database driver such as aiosqlite or asyncpg are required.
Are there any upsert caveats?
On databases other than PostgreSQL and SQLite, or when update_none is not set, upserts use update-then-insert, and concurrent inserts for the same key may require a transaction retry.