Alchemy Repo: Typed Async Repository Layer for SQLAlchemy Released on PyPI and GitHub
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (3)
Common questions
Does this release contain a security vulnerability?
What are the requirements to use it?
Are there any upsert caveats?
Continue Reading
CVE-2026-123890: Auth bypass in VMware vCenter exploited by Armory Castle before patch CVE-2026-123890, a flaw in VMware vCenter Server rated CVSS 9.8, allows an unauthenticated remote attacker to obtain an administrator session on the platform. According to the Google Threat Intelligence Group, the flaw was exploited by the espionage group Armory Castle (formerly UNC5221), which has suspected China…