types-pika
PEP-484 stubs for Pika
What it is and what it does
types-pika is a type stub package that adds static type information to the Pika RabbitMQ client library. It implements PEP 484 stubs, allowing type checkers to understand Pika's API and provide accurate type hints and autocompletion in your IDE. The package contains no runtime code—it is purely for development-time type checking.
When installed, type checkers automatically discover these stubs and use them to validate your Pika code without requiring changes to your imports or runtime behavior. This is useful for catching type-related bugs early and improving code clarity in projects that use Pika for RabbitMQ communication.
Use it for:
- Enable type checking on code that uses Pika for RabbitMQ message publishing and consumption.
- Improve IDE autocompletion and inline documentation when writing Pika client code.
- Catch type errors in RabbitMQ connection setup and channel operations before runtime.
- Maintain type safety in larger projects that integrate Pika alongside other typed libraries.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the Pika RabbitMQ client library, enabling static type checking and improved IDE autocompletion when working with Pika in your Python code.
Yes, if you use Pika and run a compatible type checker. The package is lightweight, permissively licensed, and has no runtime dependencies. However, note that the package has not been updated since 2022-01-18; verify that the stubs cover your target Pika version before relying on them in production type-checking workflows.
Install
types-pika on PyPI
pip
pip install types-pikauv
uv add types-pikapoetry
poetry add types-pikaInstalling types-pika
Before you install
Low install friction with no runtime dependencies. Repository is active with a recent commit on 2026-02-27, though the package itself has not been updated since its initial release on 2022-01-18.
License in practice
MIT license permits unrestricted use, modification, and distribution with only attribution required—a permissive choice typical for type stub packages.
Quickstart
pip install types-pika
Then import and use Pika normally; type checkers will automatically pick up the type information:
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
Requires a type checker compatible with PEP 484 stubs to be useful; the stubs alone do not affect runtime behavior.
Verify before relying
- Whether these stubs cover all Pika versions or only specific release ranges
- Compatibility status with current Pika releases and whether maintenance is planned
- Whether the stubs are compatible with modern type checkers beyond mypy
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,669 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 154,097/month — #10,861 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pika-1.2.0b1-py3-none-any.whl
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
asyncpg-stubsProvides type stubs for asyncpg to enable…
permissive · top 5,000 on PyPI
pika-stubsProvides 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
scipy-stubsProvides type stubs for the entire SciPy…
permissive · top 5,000 on PyPI
homeassistant-stubsProvides PEP 484 type stubs for Home Assistant…
permissive · top 15,000 on PyPI
sqlalchemy-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI
pydub-stubsProvides type stubs for Pydub, enabling static…
permissive · top 15,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI
django-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI