Skip to main content

AMGI MQTT Server

Project description

amgi-paho-mqtt

amgi-paho-mqtt is an AMGI compatible server to run AMGI applications against MQTT.

Installation

pip install amgi-paho-mqtt==0.34.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amgi_paho_mqtt-0.34.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amgi_paho_mqtt-0.34.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file amgi_paho_mqtt-0.34.0.tar.gz.

File metadata

  • Download URL: amgi_paho_mqtt-0.34.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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}

File hashes

Hashes for amgi_paho_mqtt-0.34.0.tar.gz
Algorithm Hash digest
SHA256 e6e9d59a2adec5f69a2362f672c4c81a0a0cc97ae3d0c1248d4912c61b5f3214
MD5 c4c2bf3499df3bb6ac39e95308b55157
BLAKE2b-256 3d23fa1c6ac764b864b2fa25406f82dde6ef3ea43f0e08bb2d73d9f939e64020

See more details on using hashes here.

File details

Details for the file amgi_paho_mqtt-0.34.0-py3-none-any.whl.

File metadata

  • Download URL: amgi_paho_mqtt-0.34.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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}

File hashes

Hashes for amgi_paho_mqtt-0.34.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d2a445c2e9c67a7ee58a8e000871d60c0222241ab8914b2ad6b63159a813c4
MD5 5699e0af455333d3a8f3a1e4a32ba86e
BLAKE2b-256 47d6885ba953b2cb3c8ed4a65928c23f5194e50febade59e25712d4689d0d7fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page