CLI for Paho MQTT
Project description
mqtt-cli
A command-line tool for publishing and subscribing to mqtt.
Use cases:
- Trials
- As part of a bash pipeline
Installation
pip install mqtt-cli
Usage
$ mqtt --help
usage: mqtt [-h] [--host HOST] [--port PORT] [--transport {tcp,websockets}] [--clientid CLIENTID] [--user USER] [--password PASSWORD] [--protocol {3,4,5}] [--path PATH] [--tls] [--clean-start] [--log-level LOG_LEVEL]
{publish,subscribe} ...
MQTT command-line client application
positional arguments:
{publish,subscribe}
options:
-h, --help show this help message and exit
--host HOST
--port PORT
--transport {tcp,websockets}
--clientid CLIENTID
--user USER
--password PASSWORD
--protocol {3,4,5}
--path PATH
--tls
--clean-start
--log-level LOG_LEVEL
$ mqtt publish --help
usage: mqtt publish [-h] [--qos {0,1,2}] [-t TOPIC] [-m MESSAGE] [--line LINE] [--retain] [--queue QUEUE]
options:
-h, --help show this help message and exit
--qos {0,1,2}
-t TOPIC, --topic TOPIC
-m MESSAGE, --message MESSAGE
--line LINE
--retain
--queue QUEUE
$ mqtt subscribe --help
usage: mqtt subscribe [-h] [--qos {0,1,2}] -t TOPIC [--line LINE] [--json]
options:
-h, --help show this help message and exit
--qos {0,1,2}
-t TOPIC, --topic TOPIC
--line LINE
--json
TBC
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-cli-0.4.1.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file mqtt-cli-0.4.1.tar.gz
.
File metadata
- Download URL: mqtt-cli-0.4.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c96d6f96753dee2c3e2f9ea6bd150f1cf6e7f99458f4912c89001e2b48b6ca |
|
MD5 | 8578b0adeeeb79fd272874cc14d71d40 |
|
BLAKE2b-256 | e2f7069562fe1f38268746581e51fe19302d758d3ec1d2e34930ff9cb55d9e32 |
Provenance
File details
Details for the file mqtt_cli-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: mqtt_cli-0.4.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b72218e5abe3ed7897ac85bec3f85cefb29c13dc41a8f1852bb00db5b68ccd13 |
|
MD5 | 33ca4faf0452e8da291b4e29c21a2069 |
|
BLAKE2b-256 | 637f3271931cfd1db89dd5ed579cf0356a836ff2f8dc165f304b97924bc210f9 |