{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"},{"label":"Front-Ends","url":"https://skillfed.io/packages/category/database-front-ends"}],"enrichment":{"capability":"aiomysql provides async/await access to MySQL databases by wrapping PyMySQL with asyncio support, letting you query MySQL non-blockingly from async Python code.","skillfed_tags":["async-io","mysql-driver","connection-pooling"],"use_cases":["Build async web services (FastAPI, aiohttp) that query MySQL without blocking the event loop.","Write concurrent batch jobs that fetch or insert data into MySQL from multiple coroutines.","Integrate MySQL with SQLAlchemy in async frameworks using the `aiomysql.sa` module.","Handle high-concurrency scenarios where traditional blocking drivers would exhaust thread pools.","Migrate from aiopg to MySQL while preserving async/await patterns and similar API structure."],"what_it_does":"aiomysql is an async wrapper around PyMySQL that lets you execute MySQL queries without blocking your asyncio event loop. It reuses PyMySQL's connection logic and SQL parsing but replaces all blocking I/O calls with async equivalents, so you can use `await` and `async with` to manage connections, cursors, and queries. The API mirrors PyMySQL closely, making it familiar if you've used that library, and it includes optional SQLAlchemy integration ported from aiopg for ORM-style queries.\n\nYou create a connection pool with `create_pool()`, acquire connections from it, and execute queries through cursors\u2014all with `await`. It supports both raw SQL and SQLAlchemy table operations, and works across Python 3.9 through 3.13. The package is actively maintained, has no known vulnerabilities, and carries an MIT license.","worth_installing":"Yes. aiomysql is a straightforward, low-friction async MySQL driver with active maintenance, no security issues, permissive licensing, and broad Python version support. Install it if you need non-blocking MySQL access in an asyncio application; the single dependency (PyMySQL) and pure-Python wheel keep setup simple."},"id":"aiomysql","links":{"html":"https://skillfed.io/packages/aiomysql","md":"https://skillfed.io/packages/aiomysql.md","pypi":"https://pypi.org/project/aiomysql/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-22","license_spdx":"MIT","license_treatment":"permissive","name":"aiomysql","python_support":"supports_current","summary":"MySQL driver for asyncio."},"popularity":{"monthly_downloads":16758493,"position":1140,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.3.2"}
