skillfed

types-pika

PEP-484 stubs for Pika

types-pika v1.2.0b1 154.1K downloads/30d#10,861 on PyPI1
Permissive license MIT Active released

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

uv

uv add types-pika

poetry

poetry add types-pika

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Stubs Only

Tags

pika type stubsrabbitmq client typingpika mypy supporttype hints for pikapika static type checkingpython rabbitmq typing
type-stubsrabbitmq

More Libraries packages