{"id":17687654,"url":"https://github.com/sdeancos/mqtt-client","last_synced_at":"2025-05-13T00:41:29.955Z","repository":{"id":151063417,"uuid":"136631030","full_name":"sdeancos/mqtt-client","owner":"sdeancos","description":"Simple MQTT Client.","archived":false,"fork":false,"pushed_at":"2023-07-12T18:45:26.000Z","size":19,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T05:11:34.543Z","etag":null,"topics":["automation","cli","client","domotic","home-automation","internet-of-things","iot","m2m","messaging","mqtt","mqtt-client","paho-mqtt","paho-mqtt-python","python"],"latest_commit_sha":null,"homepage":"https://mqtt.clubpulp.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdeancos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-08T14:42:39.000Z","updated_at":"2023-12-27T07:32:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"774db58a-ba72-437f-bf0c-a64a0e779013","html_url":"https://github.com/sdeancos/mqtt-client","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeancos%2Fmqtt-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeancos%2Fmqtt-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeancos%2Fmqtt-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeancos%2Fmqtt-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdeancos","download_url":"https://codeload.github.com/sdeancos/mqtt-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850841,"owners_count":21973667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","client","domotic","home-automation","internet-of-things","iot","m2m","messaging","mqtt","mqtt-client","paho-mqtt","paho-mqtt-python","python"],"created_at":"2024-10-24T11:06:56.131Z","updated_at":"2025-05-13T00:41:29.930Z","avatar_url":"https://github.com/sdeancos.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":["Talks"],"readme":"# MQTT Client \n\nver: 1.6.1\n\n[Documentation](https://mqtt.clubpulp.com/)\n\n[![Downloads](https://pepy.tech/badge/mqtt-client)](https://pepy.tech/project/mqtt-client) [![Downloads](https://pepy.tech/badge/mqtt-client/month)](https://pepy.tech/project/mqtt-client) [![Downloads](https://pepy.tech/badge/mqtt-client/week)](https://pepy.tech/project/mqtt-client)\n\n## Install\n\n\u003e pip install --upgrade mqtt-client\n\n## Examples\n\n```shell\nmqtt-client publish --config=my_config_file.json\nmqtt-client subscribe --config=my_config_file.json\n```\n\n```shell\nmqtt-client publish --host=mqttbroker.testing:1883 --topic=home/room/1/up --payload=ok\nmqtt-client publish --host=mqttbroker.testing:1883 --topic=home/room/1/up --interactive\nmqtt-client subscribe --host=mqttbroker.testing:1883 --topic=home/room/1/up\n```\n\n```shell\nmqtt-client subscribe --host=mqttbroker.testing:1883 --topic=home/room/1/up --callback=command --command=my_command\n```\n\n## Usage\n\nSimple MQTT Client.\n\n```shell\nUsage:\n  mqtt-client (publish | subscribe) --config=\u003cconfig\u003e\n  mqtt-client publish --host=\u003chost\u003e --topic=\u003ctopic\u003e (--payload=\u003cpayload\u003e | --interactive) [--client_id=\u003cclient_id\u003e] [--username=\u003cusername\u003e] [--password=\u003cpassword\u003e] [--transport=\u003ctransport\u003e] [--cert_path=\u003ccert_path\u003e] [--qos=\u003cqos\u003e] [--retain=\u003cretain\u003e]\n  mqtt-client subscribe --host=\u003chost\u003e --topic=\u003ctopic\u003e [--client_id=\u003cclient_id\u003e] [--username=\u003cusername\u003e] [--password=\u003cpassword\u003e] [--transport=\u003ctransport\u003e] [--cert_path=\u003ccert_path\u003e] [--callback=\u003ccallback\u003e] [--command=\u003ccommand\u003e]\n  mqtt-client (-h|--help)\n  mqtt-client (-v|--version)\n\nCommands:\n  publish                   Publish to topic from MQTT Broker.\n  subscribe                 Subscribe to topic from MQTT Broker.\n\nOptions:\n  -h --help                 Show this screen.\n  -v --version              Show version.\n  --config=\u003cconfig\u003e         Config file.\n  --host=\u003chost\u003e             Broker Host. (Example: example.your_broker.com:1883)\n  --topic=\u003ctopic\u003e           Topic.\n  --payload=\u003cpayload\u003e       Payload to send.\n  -i --interactive          Interactive mode.\n  --client_id=\u003cclient_id\u003e   Client ID.\n  --username=\u003cusername\u003e     Username.\n  --password=\u003cpassword\u003e     Password.\n  --transport=\u003ctransport\u003e   TCP, TCP-TLS, WS, WS-TLS (Default: TCP)\n  --cert_path=\u003ccert_path\u003e   Path cert (Default: ./mqtt_broker_cert.pem)\n  --qos=\u003cqos\u003e               Qos (Default: 0)\n  --retain=\u003cretain\u003e         Retain (Default: false)\n  --callback=\u003ccallback\u003e     Use a custom callback for subscriber. (default, raw, command)\n  --command=\u003ccommand\u003e       Command for callback type command.\n\n```\n\n## Example file config\n\n\u003e mqtt-client publish --config=example_config.json\n\n```json\n{\n  \"host\": \"mqttbroker:1883\",\n  \"topic\": \"my_topic\",\n  \"payload\": \"Testing Simple MQTT Client 1.5.0\",\n  \"interactive\": false,\n  \"client_id\": \"awesome-mqtt-client\",\n  \"username\": \"user\",\n  \"password\": \"pass\",\n  \"transport\": \"TCP\",\n  \"cert_path\": \"\",\n  \"qos\": 0,\n  \"retain\": false,\n  \"callback\": \"\",\n  \"command\": \"\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdeancos%2Fmqtt-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdeancos%2Fmqtt-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdeancos%2Fmqtt-client/lists"}