{"id":31177731,"url":"https://github.com/khudaibirdin/micropython_nats_client","last_synced_at":"2026-05-18T03:31:04.325Z","repository":{"id":314219718,"uuid":"1054634714","full_name":"khudaibirdin/micropython_nats_client","owner":"khudaibirdin","description":"Library to create micropython NATS publisher.","archived":false,"fork":false,"pushed_at":"2025-09-13T13:06:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-19T14:36:03.212Z","etag":null,"topics":["iot","m2m","micropython","micropython-esp32","nats","nats-client"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khudaibirdin.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"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-09-11T05:57:14.000Z","updated_at":"2025-09-13T13:06:03.000Z","dependencies_parsed_at":"2025-09-12T15:46:33.904Z","dependency_job_id":null,"html_url":"https://github.com/khudaibirdin/micropython_nats_client","commit_stats":null,"previous_names":["khudaibirdin/micropython_nats_client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khudaibirdin/micropython_nats_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khudaibirdin%2Fmicropython_nats_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khudaibirdin%2Fmicropython_nats_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khudaibirdin%2Fmicropython_nats_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khudaibirdin%2Fmicropython_nats_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khudaibirdin","download_url":"https://codeload.github.com/khudaibirdin/micropython_nats_client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khudaibirdin%2Fmicropython_nats_client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["iot","m2m","micropython","micropython-esp32","nats","nats-client"],"created_at":"2025-09-19T14:05:12.591Z","updated_at":"2026-05-18T03:31:04.304Z","avatar_url":"https://github.com/khudaibirdin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nTo collect data from the MCU on Micropython, there are only libraries with support for the MQTT protocol. Undoubtedly, this protocol is well suited for IOT interaction.\nAt the moment, it is possible to collect data using EDA systems, such as NATS, which is lightweight and the most modern and fastest.\nThe library allows you to implement the NATS PUBLISHER client in Micropython.\n\n# Usage\n\n## Installation\nCopy micropython_nats_client folder into mcu directory.\n\n## Pub to NATS\n```python\nfrom nats.publisher import Publisher\n\n\nNATS_HOST = \"192.168.31.102\" # nats server host\nNATS_PORT = 4222  # nats server port\n\n# implement ethernet connection via Wi-Fi/LAN\n\nnp = Publisher(\n    host=NATS_HOST,\n    port=NATS_PORT\n)\n\nnp.send(\n    topic=\"test\",\n    msg=f\"Test message\"\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhudaibirdin%2Fmicropython_nats_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhudaibirdin%2Fmicropython_nats_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhudaibirdin%2Fmicropython_nats_client/lists"}