{"id":17222343,"url":"https://github.com/edigiacomo/asgi-mqtt","last_synced_at":"2025-08-14T07:37:51.464Z","repository":{"id":57411800,"uuid":"64211612","full_name":"edigiacomo/asgi-mqtt","owner":"edigiacomo","description":"Interface between MQTT and ASGI","archived":false,"fork":false,"pushed_at":"2017-11-11T14:42:10.000Z","size":22,"stargazers_count":37,"open_issues_count":2,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-12T07:35:57.452Z","etag":null,"topics":["django","django-channels","mqtt","paho-mqtt","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edigiacomo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-26T10:12:00.000Z","updated_at":"2022-12-29T21:16:51.000Z","dependencies_parsed_at":"2022-08-27T19:12:14.747Z","dependency_job_id":null,"html_url":"https://github.com/edigiacomo/asgi-mqtt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/edigiacomo/asgi-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edigiacomo%2Fasgi-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edigiacomo%2Fasgi-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edigiacomo%2Fasgi-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edigiacomo%2Fasgi-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edigiacomo","download_url":"https://codeload.github.com/edigiacomo/asgi-mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edigiacomo%2Fasgi-mqtt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270384907,"owners_count":24574531,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["django","django-channels","mqtt","paho-mqtt","python"],"created_at":"2024-10-15T04:04:54.353Z","updated_at":"2025-08-14T07:37:51.445Z","avatar_url":"https://github.com/edigiacomo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"asgimqtt\n========\n\n``asgimqtt`` is a simple `MQTT \u003chttp://mqtt.org/\u003e`_ interface for `ASGI\n\u003chttp://channels.readthedocs.org/en/latest/asgi.html\u003e`_.\n\nInstallation\n------------\n\nInstall with ``pip``::\n\n    pip install asgimqtt\n\n\nUsage\n-----\n\nConnect the server to a running `MQTT` broker::\n\n    asgimqtt --host localhost --port 1883 django_project.asgi:channel_layer\n\n\nIn your Django code::\n\n    # routing.py\n    channels_routing = [\n        route(\"mqtt.sub\", mqtt_consumer),\n    ]\n\n**Note**: you can only receive messages published in ``MQTT`` broker (channel\n``mqtt.sub``).\n\nThe keys are:\n\n* ``host``: host of the ``MQTT`` broker\n* ``port``: port of the ``MQTT`` broker\n* ``topic``: topic of the ``MQTT`` message\n* ``payload``: payload of the ``MQTT`` message\n* ``qos``: quality of service of the ``MQTT`` message (0, 1 or 2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedigiacomo%2Fasgi-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedigiacomo%2Fasgi-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedigiacomo%2Fasgi-mqtt/lists"}