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

Uploaded Source

Built Distribution

mqtt_rest-0.4.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mqtt_rest-0.4.0.tar.gz
  • Upload date:
  • Size: 11.4 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.4.0.tar.gz
Algorithm Hash digest
SHA256 63598ef08b7699d92326edcc023d4e4ee1782600a4c98d9c83256a1107ed3ceb
MD5 ea80941ffc42341c4eff2d8de3284282
BLAKE2b-256 d4fb108c8f18bcc182e034f4f2be712dd603a8ff627b22586005cdc220356888

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mqtt_rest-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 124767b73e6c96d986dc87d67939a29727d547cacccfac2f79107bddceb1f00a
MD5 048a95a8ea0b87f67aab2fe6bf70886d
BLAKE2b-256 16f042b8bd9615eb525d7ea5c0bb40524c69bc26616c36c69ceecf3cbf5128fd

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