hopsworks-aiomysql
MySQL driver for asyncio.
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is stable and has no known vulnerabilities, with permissive MIT licensing. However, the 381-day gap since the last release and aging maintenance status suggest it may not receive prompt updates for new MySQL/MariaDB features or Python versions. Install it if you need async MySQL access in an asyncio application and are comfortable with a package that updates infrequently; avoid it if you require active, rapid maintenance or cutting-edge compatibility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running MySQL or MariaDB server accessible at the specified host and port; Python 3.7+ is required.
- Low install friction with a single runtime dependency (PyMySQL).
- Maintenance status is aging—last release was 381 days ago, though the repository remains active with a recent commit on 2025-07-29.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
last release 2025-07-29 (381 days) · last repo commit 2025-07-29
0 known vulnerabilities (OSV.dev, 2026-08-14) · 137,797 downloads/mo, #11,355 on PyPI
Alternatives
Verify before relying
import asyncio
import aiomysql
async def query_mysql():
pool = await aiomysql.create_pool(host='127.0.0.1', user='root', db='mydb')
async with pool.acquire() as conn:
async with conn.cursor() as cur:
await cur.execute('SELECT 1')
result = await cur.fetchone()
pool.close()
await pool.wait_closed()
asyncio.run(query_mysql())- Whether hopsworks-aiomysql is a maintained fork or the canonical aiomysql package, and if there are differences in API or support.
- Current test coverage and compatibility status with MySQL 8.0+ and recent MariaDB versions.
- Whether the 381-day gap since last release indicates active maintenance or dormancy.
What it is and what it does
hopsworks-aiomysql is an async MySQL driver that wraps PyMySQL to provide non-blocking database access within Python's asyncio framework. It reuses most of PyMySQL's implementation but replaces blocking I/O calls with async equivalents, allowing you to query MySQL or MariaDB without blocking your event loop. The package maintains API compatibility with PyMySQL—you simply await method calls instead of calling them synchronously—and includes optional SQLAlchemy integration for ORM users.
The package is designed for applications that need to handle many concurrent database connections efficiently, such as web services or async data pipelines. It supports connection pooling, SSL connections, multiple authentication methods including sha256_password and caching_sha2_password, and both standard and server-side cursors. Python 3.7+ is required.
Use it for
- Building async web services (FastAPI, aiohttp) that query MySQL without blocking the event loop.
- Concurrent data ingestion or batch processing where multiple async tasks read from or write to MySQL simultaneously.
- SQLAlchemy-based async applications needing a MySQL backend with the aiomysql.sa integration layer.
- Connection pooling for high-concurrency scenarios where traditional synchronous drivers would exhaust system resources.
- Microservices or serverless functions that must minimize latency by avoiding blocking database calls.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is stable and has no known vulnerabilities, with permissive MIT licensing. However, the 381-day gap since the last release and aging maintenance status suggest it may not receive prompt updates for new MySQL/MariaDB features or Python versions. Install it if you need async MySQL access in an asyncio application and are comfortable with a package that updates infrequently; avoid it if you require active, rapid maintenance or cutting-edge compatibility.
Install
hopsworks-aiomysql on PyPI
Before you install
Low install friction with a single runtime dependency (PyMySQL). Maintenance status is aging—last release was 381 days ago, though the repository remains active with a recent commit on 2025-07-29.
Requires a running MySQL or MariaDB server accessible at the specified host and port; Python 3.7+ is required.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
import asyncio
import aiomysql
async def query_mysql():
pool = await aiomysql.create_pool(host='127.0.0.1', user='root', db='mydb')
async with pool.acquire() as conn:
async with conn.cursor() as cur:
await cur.execute('SELECT 1')
result = await cur.fetchone()
pool.close()
await pool.wait_closed()
asyncio.run(query_mysql())
Verify before relying
- Whether hopsworks-aiomysql is a maintained fork or the canonical aiomysql package, and if there are differences in API or support.
- Current test coverage and compatibility status with MySQL 8.0+ and recent MariaDB versions.
- Whether the 381-day gap since last release indicates active maintenance or dormancy.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagePyMySQL |
| Maintenance | Aging 381 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 137,797 / month, #11,355 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: Web EnvironmentFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: DatabaseTopic :: Database :: Front-Ends |
Evidence: hopsworks_aiomysql-0.2.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 › “asyncio database connector”
- hopsworks-aiomysqlAsync MySQL database driver for Python asyncio applications,…
- aiohttp_socksProvides a proxy connector for aiohttp that supports SOCKS4(a),…
- PyAthenaPyAthena is a Python DB API 2.0 client for Amazon Athena that lets…
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 aiomysql · asyncmy · aiopg · asyncmy2 · databases · aioodbc · aiosql · PyMySQL · mysqlclient · asynch