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
Release files for mqtt-cli 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mqtt_cli-0.4.2.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mqtt_cli-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / mqtt_cli-0.4.2.tar.gz
| Download URL | mqtt_cli-0.4.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4326dd65f5f6e6ecf9c8a92ed5b3a0fa1cb40b8136f6cbabecf48158d20f797
|
|
BLAKE2b-256 checksum How to use checksums |
3da1ec6e032905b284867a1ac144bc7b9792188afa8a48b9e08849a697508f4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency logRelease files / mqtt_cli-0.4.2-py3-none-any.whl
| Download URL | mqtt_cli-0.4.2-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1b005c57bb8eb6063b96e501f57d077970094e6f55e36b4070efe588a28eb56
|
|
BLAKE2b-256 checksum How to use checksums |
9bdce18c6229df9dbbf5311e585252e706824be9387127278c68f914073032ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency log