types-pika-ts
Typing stubs for pika
What it is and what it does
types-pika-ts is a type stub package that adds static type information to the pika AMQP client library. It allows type checkers like mypy and pyright to understand pika's API and catch type errors in code that uses pika for RabbitMQ communication. The package is maintained as part of the typeshed project and targets pika version 1.4.*.
Installing this package does not change pika's runtime behavior—it only provides type hints for development and CI/CD type-checking workflows. It has no runtime dependencies and installs cleanly. The stubs are tested against multiple type checkers to ensure compatibility.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses pika for RabbitMQ connections and message handling.
- Catch type mismatches in pika API calls (e.g., incorrect parameter types to ConnectionParameters) during development.
- Provide IDE autocomplete and inline type hints for pika objects when using a type-aware editor.
- Enforce type safety in CI/CD pipelines that run static type checking on pika-dependent applications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the pika AMQP client library, enabling static type checking of pika-based code with mypy, pyright, and other type checkers.
Yes, if you use pika and run a type checker in your workflow. It has no runtime cost, no dependencies, and is actively maintained. Install it if you want static type checking of pika code; skip it if you don't use type checkers or don't use pika.
Install
types-pika-ts on PyPI
pip
pip install types-pika-tsuv
uv add types-pika-tspoetry
poetry add types-pika-tsInstalling types-pika-ts
Before you install
Low friction—a pure stub package with no runtime dependencies. Actively maintained as part of typeshed, with a release 15 days old and last commit on 2026-08-14.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-pika-ts
# In your code using pika, type checkers will now understand pika's API:
import pika
connection: pika.BlockingConnection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
Requires Python 3.10 or later; only useful when running a type checker (mypy, pyright, or ty) on your codebase.
Verify before relying
- Whether this stub package is actively synchronized with pika 1.4.* releases or if it lags behind upstream changes.
- Whether the tested type checker versions (mypy 2.3.0, pyright 1.1.411, ty 0.0.59) represent current best practice or are outdated.
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 — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 206,669/month — #9,566 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_pika_ts-1.4.0.20260730-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-grpcioProvides type stubs for the grpcio package,…
permissive · top 5,000 on PyPI
pika-stubsProvides type stubs for the pika RabbitMQ…
permissive · top 15,000 on PyPI
types-pikaProvides type stubs for the Pika RabbitMQ…
permissive · top 15,000 on PyPI
types-gunicornProvides type stubs for gunicorn to enable…
permissive · top 15,000 on PyPI
types-networkxProvides type stubs for networkx to enable…
permissive · top 5,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-shapelyProvides type stubs for the shapely package,…
permissive · top 15,000 on PyPI
types-geopandasProvides type annotations for the geopandas…
permissive · top 15,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-paramikoProvides type hints for paramiko, enabling…
permissive · top 1,000 on PyPI