skillfed

pika-stubs

Mypy plugin and stubs for Pika

pika-stubs v0.1.3 679.2K downloads/30d#5,371 on PyPI7
Permissive license MIT DORMANT released

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-stubs

uv

uv add pika-stubs

poetry

poetry add pika-stubs

Installing 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

Development Status :: 1 - PlanningIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

pika type stubsrabbitmq client typingmypy pika pluginpython type hints rabbitmqstatic type checking amqp
type-stubsmypy-pluginrabbitmq

More Libraries packages