PyMySQL is a 100% Python implementation of the MySQL client protocol, allowing Python applications to connect to MySQL and MariaDB databases without requiring binary extensions. It supports standard DB‑API 2.0 features, such as cursors, transactions, and parameterized queries. PyMySQL is versatile for web applications, scripts, and tools, offering compatibility with ORMs like SQLAlchemy and frameworks like Django.

Features

  • Pure-Python MySQL and MariaDB connectivity
  • Compliant with DB‑API 2.0 interface
  • Supports SSL, compression, and timeout settings
  • Cursor with dict result support
  • Transaction support with commit/rollback
  • Compatible with SQLAlchemy and Django

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow PyMySQL

PyMySQL Web Site

Other Useful Business Software
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

More flexibility. More control.

Generate interest, access liquidity without selling, and execute trades seamlessly. All in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PyMySQL!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2025-07-03