pika-stubs
Mypy plugin and stubs for Pika
What it is and what it does
pika-stubs is a type stub package that adds static type information to pika, the Python RabbitMQ client library. It allows type checkers to understand pika's API at development time, improving IDE autocomplete and catching type errors before runtime. The package requires Python >=3.8 and installs with no runtime dependencies—it is purely a development tool consumed by type checkers and IDEs.
The package has been dormant since its single release on 2020-06-10. While the repository is not archived and shows a recent commit on 2024-01-23, there have been no new releases or updates to the stubs themselves. This means the type annotations may not reflect changes to pika's API over the intervening years.
Use it for:
- Enable static type checking in projects that use pika for RabbitMQ message queue operations.
- Improve IDE autocomplete and type hints when writing pika client code in type-aware editors.
- Catch type errors in pika method calls and message handling code before runtime.
- Support gradual typing adoption in legacy pika-based codebases by providing type information.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the pika RabbitMQ client library to enable static type checking with mypy and improve IDE type inference.
Yes, if you use pika and want static type checking—but with caution. The MIT license is unrestrictive and there are no known vulnerabilities. However, the package has been dormant since 2020-06-10 with no updates to reflect pika API changes. Before installing, verify that the stubs cover the pika version and features your project uses.
Install
pika-stubs on PyPI
pip
pip install pika-stubsuv
uv add pika-stubspoetry
poetry add pika-stubsInstalling pika-stubs
Before you install
High install friction with dormant maintenance—last release was 2020-06-10 with no updates since, though the repository remains accessible with a recent commit on 2024-01-23.
License in practice
MIT license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pika-stubs
Then run mypy on your pika-using code; mypy will automatically pick up the stubs.
Requires Python >=3.8 and mypy or another type checker to be useful.
Verify before relying
- Whether stubs remain accurate for current pika versions given the 2020 release date and dormant status.
- Whether type coverage is complete across the pika API surface.
- Compatibility with modern mypy and type checker releases.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 2,256 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 679,165/month — #5,371 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pika-stubs-0.1.3.tar.gz
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
types-pikaProvides type stubs for the Pika RabbitMQ…
permissive · top 15,000 on PyPI
types-pika-tsProvides type stubs for the pika AMQP client…
permissive · top 15,000 on PyPI
pikaPika is a pure-Python AMQP 0-9-1 client library…
permissive · top 5,000 on PyPI
homeassistant-stubsProvides PEP 484 type stubs for Home Assistant…
permissive · top 15,000 on PyPI
asyncpg-stubsProvides type stubs for asyncpg to enable…
permissive · top 5,000 on PyPI
sqlalchemy-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI
aio-pikaaio-pika is an asyncio-based wrapper around…
permissive · top 5,000 on PyPI
django-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pikaAdds distributed tracing to pika (RabbitMQ…
permissive · top 5,000 on PyPI
google-api-python-client-stubsProvides type stubs for…
permissive · top 5,000 on PyPI