Skip to main content

play mqtt

https://img.shields.io/pypi/v/play_mqtt.svg https://img.shields.io/travis/tierratelematics/play_mqtt.svg Documentation Status Updates https://codecov.io/gh/tierratelematics/play_mqtt/branch/develop/graph/badge.svg

pytest-play support for MQTT support.

Thanks to play_mqtt you can test the integration between a mocked IoT device that sends commands on MQTT and a reactive web application with UI checks.

You can also build a simulator that generates messages for you.

Features

This project defines a new pytest-play command:

{"provider": "mqtt",
 "type": "publish",
 "host": "$mqtt_host",
 "port": $mqtt_port,
 "endpoint": '$mqtt_endpoint',
 "payload": {
     "measure_id": [100],
     "obj_id_L": [0],
     "measureType": ["float"],
     "start_time": 1514911926114,
     "bin_value": [77251432]
 }
}

You can add more commands adding new methods to the command provider implementation in providers.py module.

More info and examples on:

Thanks to pytest-play you can drive your tests or simulators through a configuration file containing an array of commands.

Credits

This package was created with Cookiecutter and the cookiecutter-play-plugin (based on audreyr/cookiecutter-pypackage project template).

CHANGES

0.0.1 (2018-01-04)

  • First release

Metadata

Release files for play-mqtt 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for play-mqtt 0.0.1
File Size Uploaded Provenance Actions
play_mqtt-0.0.1.tar.gz 11.8 kB Without provenance Details for play_mqtt-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for play-mqtt 0.0.1
File Interpreter ABI Platform Actions
play_mqtt-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for play_mqtt-0.0.1-py2.py3-none-any.whl

Total release size: 17.0 kB

Release files / play_mqtt-0.0.1.tar.gz

Download URL play_mqtt-0.0.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dee2a25e4c20a0ab09bad973a1dd86c06cc9a1c90ed68d4821b65ac1f22c5842
BLAKE2b-256 checksum
How to use checksums
27d527e5389e7a0496582908c8c76d9caa7e40de709fc6b90d35b2b66b432c3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / play_mqtt-0.0.1-py2.py3-none-any.whl

Download URL play_mqtt-0.0.1-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b2d75f5b73aec1935da7d935e8ed69434016cc70d0dbc5dd31d6f091b5bc32f2
BLAKE2b-256 checksum
How to use checksums
0ecd268acc1ce1ed663404cf1b76f76426166b30a3a2538ea0e15193c3ee8a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for play-mqtt 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page