Skip to main content

fastapi-mqtt

MQTT is a lightweight publish/subscribe messaging protocol designed for M2M (machine to machine) telemetry in low bandwidth environments. Fastapi-mqtt is the client for working with MQTT.

For more information about MQTT, please refer to here: MQTT

Fastapi-mqtt wraps around the gmqtt module, a Python async MQTT client. The module supports the MQTT version 5.0 protocol.

MIT licensed GitHub stars GitHub forks GitHub issues


Documentation: FastApi-MQTT

The key features are:

  • Subscribe to topics with decorated handlers, publish to topics
  • Pydantic models for message payloads, to receive and publish typed messages
  • MQTT 5.0, with callbacks for connection events
  • MQTT settings with a pydantic class, authentication to the broker with credentials

🔨 Installation

Requires Python 3.12 or newer.

pip install fastapi-mqtt

Next: Getting Started, Configuration, Pydantic Models, Advanced.

Contributing

Feel free to open issues and send pull requests.

Thanks To Contributors. Contributions of any kind are welcome!

Before you start please read CONTRIBUTING, which also explains how to run the tests and the examples.

Metadata

Release files for fastapi-mqtt 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-mqtt 3.0.0
File Size Uploaded Provenance Actions
fastapi_mqtt-3.0.0.tar.gz 10.2 kB Without provenance Details for fastapi_mqtt-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-mqtt 3.0.0
File Interpreter ABI Platform Actions
fastapi_mqtt-3.0.0-py3-none-any.whl Python 3 none any Details for fastapi_mqtt-3.0.0-py3-none-any.whl

Total release size: 21.4 kB

Release files / fastapi_mqtt-3.0.0.tar.gz

Download URL fastapi_mqtt-3.0.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1b67c402d0cf20590dc1396cf14de3741197426cad90d41f6f523275bb339c11
BLAKE2b-256 checksum
How to use checksums
bb3d7a8beeca3b9fe7ca34e0d319cf85a08a5384cb810fb8494aa3957d030b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.15 Linux/6.17.0-1022-azure

Release files / fastapi_mqtt-3.0.0-py3-none-any.whl

Download URL fastapi_mqtt-3.0.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d23e83d52047f0057f604bf6f010466d8144c92e826f37f2b588a58cbbe287c6
BLAKE2b-256 checksum
How to use checksums
23f570fb44e0f2ee3ed7d6393b45c4d3bf06c723e194fe12db2170cb72c1d23a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.15 Linux/6.17.0-1022-azure

Security for fastapi-mqtt 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page