types-peewee
Typing stubs for peewee
Decision gist · record as of 2026-08-14
Yes, if you use peewee and want type checking. Install it alongside peewee to unlock static type validation in your IDE and CI pipeline. The package is lightweight, actively maintained, and has no runtime overhead. Only skip it if you do not use a type checker or do not use peewee.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Type stubs are only useful when used with a type checker (mypy, pyright, or ty); they do not affect runtime behavior.
- Low friction installation with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal constraints.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,349 downloads/mo, #12,028 on PyPI
Alternatives
Verify before relying
pip install types-peewee
# Then use peewee with type checking:
import peewee
db = peewee.SqliteDatabase('test.db')- Coverage completeness: the package is marked as partial; which peewee features lack annotations is not detailed in the fact sheet.
- Whether the stub version 4.3.0.20260807 aligns with peewee 4.3.0 exactly or covers a range of peewee versions.
What it is and what it does
types-peewee is a type stub package that provides type annotations for the peewee ORM library. It allows Python type checkers like mypy, pyright, and ty to understand and validate code that uses peewee, catching type errors before runtime. The package is maintained as part of the typeshed project, the standard repository for Python type stubs, and is tested against multiple type checkers.
This is a stub-only package with no runtime dependencies—it exists purely to enhance your development experience by enabling static type checking. The package is marked as partial, meaning some annotations may be incomplete; the maintainers welcome contributions to fill gaps. It targets peewee 4.3.0 and requires Python 3.10 or later.
Use it for
- Enable mypy or pyright to type-check a peewee-based application and catch database model errors early.
- Improve IDE autocomplete and inline documentation for peewee model definitions and queries.
- Validate peewee ORM usage in a CI/CD pipeline to prevent type-related bugs in production code.
- Contribute missing type annotations back to typeshed to help the broader Python community.
- Use peewee in a strictly typed codebase where all dependencies must have type support.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use peewee and want type checking.
Install it alongside peewee to unlock static type validation in your IDE and CI pipeline. The package is lightweight, actively maintained, and has no runtime overhead. Only skip it if you do not use a type checker or do not use peewee.
Install
types-peewee on PyPI
Before you install
Low friction installation with no runtime dependencies. Released 7 days ago with active maintenance; part of the typeshed project, which is the standard repository for Python type stubs.
Requires Python 3.10 or later. Type stubs are only useful when used with a type checker (mypy, pyright, or ty); they do not affect runtime behavior.
License in practice
Licensed under Apache-2.0 (permissive), so you can use it freely in commercial and open-source projects without significant legal constraints.
Quickstart
pip install types-peewee
# Then use peewee with type checking:
import peewee
db = peewee.SqliteDatabase('test.db')
Verify before relying
- Coverage completeness: the package is marked as partial; which peewee features lack annotations is not detailed in the fact sheet.
- Whether the stub version 4.3.0.20260807 aligns with peewee 4.3.0 exactly or covers a range of peewee versions.
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 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 120,349 / month, #12,028 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_peewee-4.3.0.20260807-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 › “peewee type stubs”
- types-peeweeProvides type annotations for the peewee ORM library, enabling type…
- peewee-migratePeewee Migrate provides a command-line and programmatic interface for…
- peeweePeewee is a lightweight ORM that maps Python classes to 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-Pygments · peewee · types-geopandas · types-PyMySQL · types-pyinstaller · types-pyflakes · types-mypy-extensions · types-docker · types-shapely · types-gunicorn