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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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