Skip to main content

A REST API for MQTT Client Management

Project description

build

MQTT-REST

MQTT-REST is a project that bridges MQTT and RESTful APIs, allowing seamless communication between IoT devices using MQTT and web services using REST.

It's useful if you want to monitor arbritary stuff from a machine in Home-assistant without writing custom integration.

Development

git clone https://github.com/rahulsrma26/mqtt-rest
cd mqtt-rest
poetry shell
poetry install
poetry run python -m mqtt_rest.run

If you dont want poetry to managing virtual environment then dont need to run poetry run or poetry shell. In that case one can directly run python -m mqtt_rest.run.

Visit /docs endpoint to access API docs via SwaggerUI.

Testing

poetry run pytest

Linting

poetry run ruff check

Contributing

Install pre-commit

poetry run pre-commit install

Check if everything runs:

poetry run pre-commit run --all-files

Note: The process may occasionally fail due to caching issues with PyPI. If this happens, please clear the cache before trying again.

poetry cache clear PyPI --all

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

mqtt_rest-0.3.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

mqtt_rest-0.3.2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file mqtt_rest-0.3.2.tar.gz.

File metadata

  • Download URL: mqtt_rest-0.3.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for mqtt_rest-0.3.2.tar.gz
Algorithm Hash digest
SHA256 6d7ed83858e67a9f38c5764e8541d87dc21c22555afcc355ef31dccd67d25ef6
MD5 324a518134209c1ec4b3b5a78f4b9d80
BLAKE2b-256 0850812320a79a190497ebe6b2f06d14df3d0a594cfc2558353963c2ae6a52d0

See more details on using hashes here.

File details

Details for the file mqtt_rest-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: mqtt_rest-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for mqtt_rest-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 589febeebc35eff94061c7e4661392449e59219e2e5acce09f3a8e604851da0c
MD5 ee188df999e93201ad40f88e777a752a
BLAKE2b-256 72312b9d7a0275058b31b93e6aeaea3c4a8416dedf4e771285509a4a01856800

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