types-mysqlclient
Typing stubs for mysqlclient
Decision gist · record as of 2026-08-14
Yes, if you use mysqlclient and run static type checking. It has no runtime cost, low install friction, and is actively maintained. Install it alongside mysqlclient in development and CI environments to catch type errors early. Not necessary if you don't use type checkers.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; only provides type information, does not provide mysqlclient itself.
- Low friction; pure Python stub package with no runtime dependencies.
- Actively maintained as part of typeshed, last updated 98 days ago.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
last release 2026-05-08 (98 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 287,769 downloads/mo, #8,027 on PyPI
Alternatives
Verify before relying
pip install types-mysqlclient
# Then use with type checker (mypy, pyright)
# mypy your_code.py
# or configure in pyproject.toml/mypy.ini- Whether this stub version remains synchronized with mysqlclient 2.2.* releases after typeshed updates.
- Compatibility with type checkers beyond mypy 1.20.0 and pyright 1.1.408.
What it is and what it does
types-mysqlclient is a type stub package that supplies type annotations for the mysqlclient MySQL driver. It allows Python type checkers like mypy and pyright to understand the types and signatures of mysqlclient's API, catching type errors in your code before runtime. The stubs are maintained as part of the typeshed project and are tested against current versions of popular type checkers.
This package does not provide mysqlclient itself—you must install mysqlclient separately to actually connect to MySQL databases. The stubs are purely informational for static analysis tools. They target mysqlclient 2.2.* and require Python 3.10 or later.
Use it for
- Enable mypy or pyright to type-check code that imports and uses mysqlclient.
- Catch type mismatches in database connection parameters and query results before runtime.
- Provide IDE autocomplete and type hints when working with mysqlclient in an editor.
- Enforce type safety in a CI/CD pipeline that runs static type checking on Python projects using MySQL.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use mysqlclient and run static type checking.
It has no runtime cost, low install friction, and is actively maintained. Install it alongside mysqlclient in development and CI environments to catch type errors early. Not necessary if you don't use type checkers.
Install
types-mysqlclient on PyPI
Before you install
Low friction; pure Python stub package with no runtime dependencies. Actively maintained as part of typeshed, last updated 98 days ago.
Requires Python 3.10 or later; only provides type information, does not provide mysqlclient itself.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-mysqlclient
# Then use with type checker (mypy, pyright)
# mypy your_code.py
# or configure in pyproject.toml/mypy.ini
Verify before relying
- Whether this stub version remains synchronized with mysqlclient 2.2.* releases after typeshed updates.
- Compatibility with type checkers beyond mypy 1.20.0 and pyright 1.1.408.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 287,769 / month, #8,027 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_mysqlclient-2.2.0.20260508-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 › “type stubs mysqlclient”
- types-mysqlclientProvides type annotations for the mysqlclient MySQL database driver,…
- mysqlThis package is a deprecated virtual wrapper that redirects to…
- opentelemetry-instrumentation-mysqlclientAdds OpenTelemetry tracing instrumentation to mysqlclient database…
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 types-PyMySQL · types-tabulate · types-Flask-Migrate · mysql · mysqlclient · types-pyperclip · types-jmespath · types-Markdown · types-mypy-extensions · types-toml