{"id":29591840,"url":"https://github.com/empicano/mqtt5","last_synced_at":"2026-04-02T00:08:19.785Z","repository":{"id":304566903,"uuid":"1016248436","full_name":"empicano/mqtt5","owner":"empicano","description":"The MQTTv5 protocol for Python written in Rust","archived":false,"fork":false,"pushed_at":"2026-03-22T23:08:45.000Z","size":313,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-23T17:41:32.315Z","etag":null,"topics":["internet-of-things","iot","mqtt","mqtt5","networking","protocol","pubsub","python","rust","sans-io"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/empicano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-08T18:00:00.000Z","updated_at":"2026-03-22T23:08:07.000Z","dependencies_parsed_at":"2025-07-14T00:06:36.922Z","dependency_job_id":"9f7c2c76-e39b-48ea-a3be-76ba8c6c232e","html_url":"https://github.com/empicano/mqtt5","commit_stats":null,"previous_names":["empicano/mqtt5"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/empicano/mqtt5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empicano%2Fmqtt5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empicano%2Fmqtt5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empicano%2Fmqtt5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empicano%2Fmqtt5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/empicano","download_url":"https://codeload.github.com/empicano/mqtt5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/empicano%2Fmqtt5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["internet-of-things","iot","mqtt","mqtt5","networking","protocol","pubsub","python","rust","sans-io"],"created_at":"2025-07-20T05:34:32.969Z","updated_at":"2026-04-02T00:08:19.778Z","avatar_url":"https://github.com/empicano.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mqtt5\n\n\u003ca href=\"https://pypi.org/project/mqtt5\"\u003e\u003cimg alt=\"PyPI downloads\" src=\"https://img.shields.io/pypi/dm/mqtt5\"\u003e\u003c/a\u003e \u003ca href=\"https://pypi.org/project/mqtt5\"\u003e\u003cimg alt=\"PyPI version\" src=\"https://img.shields.io/pypi/v/mqtt5\"\u003e\u003c/a\u003e \u003ca href=\"https://pypi.org/project/mqtt5\"\u003e\u003cimg alt=\"Supported Python versions\" src=\"https://img.shields.io/pypi/pyversions/mqtt5\"\u003e\u003c/a\u003e\n\nA [sans-I/O](https://sans-io.readthedocs.io/how-to-sans-io.html#what-is-an-i-o-free-protocol-implementation) implementation of the MQTTv5 protocol for Python, written in Rust. Serialization is ~5x faster and deserialization ~20x faster than comparable Python code (benchmarked against [mqttproto](https://github.com/agronholm/mqttproto)).\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/empicano/mqtt5/blob/main/chart.svg?raw=true\" width=\"650px\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eReading/Writing a QoS=1 Publish packet with 256 bytes payload.\u003c/i\u003e\n\u003c/p\u003e\n\n**Serialize a packet to bytes**\n\n```py\nimport mqtt5\n\npacket = mqtt5.ConnectPacket(client_id=\"Bulbasaur\")\ndata = packet.write()\n```\n\n**Deserialize a packet from bytes**\n\n```py\nimport mqtt5\n\nbuffer = memoryview(b\"\\x20\\x03\\x00\\x00\\x00\")\npacket, nbytes = mqtt5.read(buffer)\n```\n\n## Key features\n\n- Complete MQTTv5 support (user properties, QoS, topic aliases, flow control, ...)\n- Packets are serialized to minimal wire format\n- Strict validation on both outgoing and incoming packets\n- Fully type-annotated\n\n## Installation\n\n```bash\npip install mqtt5\n```\n\nNote that mqtt5 implements only the low-level packet de/serialization. If you're looking for a complete MQTT client, check out [aiomqtt](https://github.com/empicano/aiomqtt).\n\n## Documentation\n\nSee the [stub file](https://github.com/empicano/mqtt5/blob/main/mqtt5/mqtt5.pyi) for an API reference and the [MQTTv5 specification](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html) for details about the de/serialization.\n\n## Versioning\n\nThis project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/empicano/mqtt5/blob/main/CHANGELOG.md), which follows the principles of [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).\n\n## Acknowledgments\n\nI've learned a lot from Alex Grönholm's [mqttproto](https://github.com/agronholm/mqttproto), which is an excellent pure-Python MQTTv5 protocol implementation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempicano%2Fmqtt5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fempicano%2Fmqtt5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fempicano%2Fmqtt5/lists"}