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-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

litestar_mqtt-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: litestar_mqtt-0.1.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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 029d17bfe25a48571238498cf1dc555351c6263d85b2567642729ec2d67c3e2a
MD5 165f40d046a6c3ee39fa725d1846cbe4
BLAKE2b-256 a0fe5fdba430e956a45185e42bf1ee7a434d5bd993b3433c437f59462b4e938c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litestar_mqtt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d77abc0d89d3ef95318891d9a9066028df0db7dac16640583d38e2a0b30c88f5
MD5 b2e317300f07075c802b4aecbf1ea641
BLAKE2b-256 3d02204378bbebdd0c0e32643d98cf5bda6af4ea6d20802223d868f179c6a313

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