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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for litestar_mqtt-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d715e768278814a21c6b197563acb62f385d6c513729a9ad2b5fac492e812ecc |
|
MD5 | 9ddda4a7fd8e1dc19e6a030926544909 |
|
BLAKE2b-256 | c6dbfd77490ef75e6cf2928f9cf57a1caf3a1c1ae5b581899836010b0ccf57a6 |