Skip to main content

No project description provided

Project description

litestar-mqtt

Litestar-mqtt is porting of Fastapi-mqtt for the Litestar framework.

For more information about MQTT, please refer to the Fastapi-mqtt MQTT documentation.

As Fastapi-mqtt, Litestar-mqtt wraps around gmqtt module.


Features:

Litestar-mqtt implements the same feature of Fastapi-mqtt and also:

  • Load configurations via .env file
 MQTT_HOST="mqtt-dashboard.com"

Installation:

 $ pip install litestar-mqtt

or

 $ poetry add litestar-mqtt

Differences:

Litestar-mqtt must be hooked to the on_startup and on_shutdown handlers.

 app = Litestar(
    route_handlers=[test_func],
    on_startup=[lite_mqtt.startup],
    on_shutdown=[lite_mqtt.shutdown],
)

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

litestar_mqtt-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

litestar_mqtt-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file litestar_mqtt-1.0.0.tar.gz.

File metadata

  • Download URL: litestar_mqtt-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Windows/10

File hashes

Hashes for litestar_mqtt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 865a5e0badd12a755e708bbb5c8382bda22aca1bbffe8be8bd5f31278492533a
MD5 28eb28689cf10dd48e4f84fae67b9505
BLAKE2b-256 61412e0e590021e38b23d785f531718c981c65e4de4f79b35f07de619ff7d799

See more details on using hashes here.

File details

Details for the file litestar_mqtt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: litestar_mqtt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Windows/10

File hashes

Hashes for litestar_mqtt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d715e768278814a21c6b197563acb62f385d6c513729a9ad2b5fac492e812ecc
MD5 9ddda4a7fd8e1dc19e6a030926544909
BLAKE2b-256 c6dbfd77490ef75e6cf2928f9cf57a1caf3a1c1ae5b581899836010b0ccf57a6

See more details on using hashes here.

Supported by

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