types-paho-mqtt
Typing stubs for paho-mqtt
Decision gist · record as of 2026-08-14
Yes, if you use paho-mqtt 1.6.* and want static type checking. Install friction is negligible, maintenance is active, and the Apache-2.0 license poses no restrictions. Do not install if you are already on paho-mqtt 2.0.0 or later, as those versions include built-in type annotations.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires paho-mqtt 1.6.* to be installed separately; paho-mqtt 2.0.0+ includes its own type stubs and makes this package redundant.
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained via typeshed with recent updates.
License · maintenance · safety
Apache-2.0 license (permissive) — Apache-2.0 permissive license allows use in most projects with minimal restrictions.
last release 2024-03-21 (876 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 135,318 downloads/mo, #11,441 on PyPI
Alternatives
Verify before relying
pip install types-paho-mqtt
# In your code using paho-mqtt, type checkers will now understand the types
import paho.mqtt.client as mqtt
client: mqtt.Client = mqtt.Client()- Whether type coverage is complete for all paho-mqtt 1.6.* APIs and edge cases.
- Compatibility with paho-mqtt 1.6.x patch versions beyond the latest tested release.
What it is and what it does
This package provides PEP 561 type stubs for the paho-mqtt MQTT client library, version 1.6.*. Type stubs are metadata files that tell static type checkers like mypy and pyright what types to expect from paho-mqtt's functions and classes, enabling type-safe code development without requiring the library itself to include annotations.
The stubs are maintained in the Python typeshed repository and tested against multiple type checkers. If you are using paho-mqtt 1.6.x and want static type checking support, install this package alongside paho-mqtt. Note that paho-mqtt 2.0.0 and later versions include their own type annotations, making this stub package unnecessary for newer releases.
Use it for
- Enable mypy or pyright to type-check code that imports and uses paho-mqtt 1.6.x.
- Catch type errors in MQTT client setup and message handling before runtime.
- Provide IDE autocomplete and type hints for paho-mqtt APIs in editors like PyCharm.
- Maintain type safety in projects locked to paho-mqtt 1.6.* for compatibility reasons.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use paho-mqtt 1.6.* and want static type checking.
Install friction is negligible, maintenance is active, and the Apache-2.0 license poses no restrictions. Do not install if you are already on paho-mqtt 2.0.0 or later, as those versions include built-in type annotations.
Install
types-paho-mqtt on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained via typeshed with recent updates.
Requires paho-mqtt 1.6.* to be installed separately; paho-mqtt 2.0.0+ includes its own type stubs and makes this package redundant.
License in practice
Apache-2.0 permissive license allows use in most projects with minimal restrictions.
Quickstart
pip install types-paho-mqtt
# In your code using paho-mqtt, type checkers will now understand the types
import paho.mqtt.client as mqtt
client: mqtt.Client = mqtt.Client()
Verify before relying
- Whether type coverage is complete for all paho-mqtt 1.6.* APIs and edge cases.
- Compatibility with paho-mqtt 1.6.x patch versions beyond the latest tested release.
Package facts
| License | Apache-2.0 license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 876 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,318 / month, #11,441 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_paho_mqtt-1.6.0.20240321-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs paho-mqtt”
- types-paho-mqttProvides type stubs for paho-mqtt 1.6.* to enable static type…
- asyncio-mqttProvides an async/await interface to MQTT messaging, wrapping…
- pyeconetProvides an async Python interface to the unofficial Rheem EcoNet API…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-boto · types-redis · types-Pillow · paho-mqtt · tb-paho-mqtt-client · types-urllib3 · types-typed-ast · types-stripe · asyncio-mqtt · aiomqtt