amgi-paho-mqtt
amgi-paho-mqtt is an AMGI compatible server to run AMGI applications against MQTT.
Installation
pip install amgi-paho-mqtt==0.48.0
Example
This example uses AsyncFast:
from dataclasses import dataclass
from amgi_paho_mqtt import run
from asyncfast import AsyncFast
app = AsyncFast()
@dataclass
class Order:
item_ids: list[str]
@app.channel("order-topic")
async def order_topic(order: Order) -> None:
# Makes an order
...
if __name__ == "__main__":
run(app, "order-topic")
Or the application could be run via the commandline:
asyncfast run amgi-paho-mqtt main:app order-topic
Contact
For questions or suggestions, please contact jack.burridge@mail.com.
License
Copyright 2025 AMGI
Metadata
Release files for amgi-paho-mqtt 0.48.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| amgi_paho_mqtt-0.48.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / amgi_paho_mqtt-0.48.0-py3-none-any.whl
| Download URL | amgi_paho_mqtt-0.48.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f746e119dee5a3d226ca7a9cac1d256de35d69b2d6a4e8800dc56433258f965c
|
|
BLAKE2b-256 checksum How to use checksums |
cc4d5e1401003e6374f0729e7a22bb607603b616a8bc9e9b60b0b78880caacf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|