$npx skillfedfor your agent

types-PyMySQL

Typing stubs for PyMySQL

With conditionsPyPI DatabaseReleased Aug 202613.4M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — types_pymysql-1.2.0.20260807-py3-none-any.whl
v1.2.0.20260807 · released 2026-08-07 · Python >=3.10

Yes, if you use PyMySQL and want static type checking. It has no runtime cost, is actively maintained, carries no security vulnerabilities, and is licensed permissively. Install it alongside PyMySQL in your development environment or type-checking pipeline.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with no runtime dependencies.
  • Actively maintained; latest release was 7 days ago and the package has been updated consistently since its 2021 inception.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.

last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 37 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 13,403,278 downloads/mo, #1,283 on PyPI

Verify before relying

pip install types-PyMySQL

import pymysql
conn = pymysql.connect(host='localhost', user='root', password='', database='test')
  • Whether type coverage is complete for all PyMySQL 1.2.* APIs or if gaps remain.
  • Compatibility with type checkers beyond those tested: mypy 2.3.0, pyright 1.1.411, ty 0.0.59.
Same gist for agents: .md · .json

What it is and what it does

types-PyMySQL is a type stub package that provides type annotations for the PyMySQL database driver. It allows static type checkers like mypy, pyright, and ty to understand and validate code that uses PyMySQL, catching type errors before runtime. The package is maintained as part of the typeshed project and aims to cover PyMySQL version 1.2.*.

Type stubs are metadata-only packages with no runtime code—they exist purely to inform type checkers about the shape and types of an external library's API. Installing this package does not change how PyMySQL behaves; it only improves the development experience by enabling IDE autocomplete and static analysis of PyMySQL usage.

Use it for

  • Enable mypy or pyright to type-check code that imports and uses PyMySQL without false positives.
  • Get IDE autocomplete and inline type hints when writing PyMySQL database queries and connection code.
  • Validate function signatures and return types in a codebase that depends on PyMySQL before deployment.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use PyMySQL and want static type checking.

It has no runtime cost, is actively maintained, carries no security vulnerabilities, and is licensed permissively. Install it alongside PyMySQL in your development environment or type-checking pipeline.

Install

types-pymysql on PyPI

Before you install

Low friction install with no runtime dependencies. Actively maintained; latest release was 7 days ago and the package has been updated consistently since its 2021 inception.

Requires Python 3.10 or later.

License in practice

Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.

Quickstart

pip install types-PyMySQL

import pymysql
conn = pymysql.connect(host='localhost', user='root', password='', database='test')

Verify before relying

  • Whether type coverage is complete for all PyMySQL 1.2.* APIs or if gaps remain.
  • Compatibility with type checkers beyond those tested: mypy 2.3.0, pyright 1.1.411, ty 0.0.59.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads13,403,278 / month, #1,283 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3Typing :: Stubs Only

Evidence: types_pymysql-1.2.0.20260807-py3-none-any.whl

Tags

Capabilities
type stubs pymysqlpymysql type hintsstatic type checking mysqlpymysql mypy supporttype annotations database driver
Topics
type-stubsstatic-analysis

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 pymysql”

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

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.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

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.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

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.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

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.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also types-gunicorn · types-mysqlclient · types-peewee · types-docker · types-grpcio · types-shapely · types-mypy-extensions · types-psycopg2 · types-pyflakes · types-confluent-kafka