aio-libs/aiomysql
aiomysql is a library for accessing a MySQL database from the asyncio observed · 2026-08-28
Health v2 · maintenance only
61/100
- Activity 74
- Release rhythm 21
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4256
- days_rel: 316
- days_push: 160
- n_releases_24m: 1
Adoption not part of the score
1896 stars · 272 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
aiomysql is an asyncio-based Python driver for accessing MySQL and MariaDB databases, built on top of PyMySQL with its I/O calls converted to async. It also offers optional SQLAlchemy integration ported from aiopg, preserving a familiar API for aiopg users.
Use cases
- query MySQL from an asyncio Python application
- connect to MariaDB asynchronously
- use SQLAlchemy core with async MySQL connections
- pool async MySQL connections in a web app
- migrate aiopg-style code to MySQL
- run async database queries with cursors in Python
When to choose
- you need async MySQL/MariaDB access in an asyncio codebase
- you want a PyMySQL-compatible API with await support
- you want SQLAlchemy integration similar to aiopg
When to avoid
- you use synchronous code or another framework without asyncio
- you need a different database like PostgreSQL (use aiopg or asyncpg)
- you need an ORM with full async model support (consider SQLAlchemy 2.0 async or Tortoise ORM)
Facets
library · maturity active
database-driver database orm databases backend developer-tools python cross-platform asyncio mysql mariadb pymysql sqlalchemy connection-pooling
2 sources
- readme: https://github.com/aio-libs/aiomysql · fetched 2026-08-28 · c7de2425111c
- registry_pypi: https://pypi.org/pypi/aiomysql/json · fetched 2026-08-29 · 846b10f47e9d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| aio-libs/aiomysql | main | 61 |
For agents
markdown · JSON · MCP: product_card(name="aio-libs/aiomysql")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem