skillfed

types-pika-ts

Typing stubs for pika

types-pika-ts v1.4.0.20260730 206.7K downloads/30d#9,566 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-pika-ts

poetry

poetry add types-pika-ts

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

pika type stubstype checking amqp clientpika type hintsmypy pika annotationsstatic type checking rabbitmqpika typing supporttype stubs for pika
type-stubsamqptypeshed

More Software Development packages