Skip to main content

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqtt_cli-0.4.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mqtt_cli-0.4.2.tar.gz.

File metadata

  • Download URL: mqtt_cli-0.4.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mqtt_cli-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c4326dd65f5f6e6ecf9c8a92ed5b3a0fa1cb40b8136f6cbabecf48158d20f797
MD5 53d03a73dd6c11e67d591797d476bfea
BLAKE2b-256 3da1ec6e032905b284867a1ac144bc7b9792188afa8a48b9e08849a697508f4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtt_cli-0.4.2.tar.gz:

Publisher: release.yml on RISE-Maritime/mqtt-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqtt_cli-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: mqtt_cli-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mqtt_cli-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1b005c57bb8eb6063b96e501f57d077970094e6f55e36b4070efe588a28eb56
MD5 a28005a63a1ce7874f2a17211380ef49
BLAKE2b-256 9bdce18c6229df9dbbf5311e585252e706824be9387127278c68f914073032ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtt_cli-0.4.2-py3-none-any.whl:

Publisher: release.yml on RISE-Maritime/mqtt-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page