{"id":20961405,"url":"https://github.com/perbu/dgram","last_synced_at":"2025-10-26T17:42:56.103Z","repository":{"id":143067652,"uuid":"254129941","full_name":"perbu/dgram","owner":"perbu","description":"Async UDP server in Micropython using the new uasyncio lib","archived":false,"fork":false,"pushed_at":"2023-01-09T16:48:08.000Z","size":19,"stargazers_count":22,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T14:49:27.860Z","etag":null,"topics":["micropython","uasyncio","udp"],"latest_commit_sha":null,"homepage":null,"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/perbu.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}},"created_at":"2020-04-08T15:40:13.000Z","updated_at":"2025-04-01T20:17:36.000Z","dependencies_parsed_at":"2023-04-27T16:47:29.381Z","dependency_job_id":null,"html_url":"https://github.com/perbu/dgram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdgram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdgram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdgram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdgram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/dgram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254094772,"owners_count":22013639,"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":["micropython","uasyncio","udp"],"created_at":"2024-11-19T02:03:54.265Z","updated_at":"2025-10-26T17:42:55.989Z","avatar_url":"https://github.com/perbu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple UDP listening service for uasyncio\n\nSuper simple UDP-listener for the new (April 2020) uasyncio library. It invokes a callback. The return value of the callback (if any) is sent as a response to the client. If None is turned nothing is sent to the client.\n\nSending is sync.\n\nNot sure if I should have a zero timeout on the poll. I've defaulted to 1ms which is good enough for me. Opinions welcome.\n\nUsage:\n\n```\nfrom dgram import UDPServer\nimport uasyncio\n(..)\n\nport=12345\n\ndef cb(msg, adr):\n    print('Got:', msg)\n    return 'ack'.encode('ascii')\n\ndef main():\n    s = UDPServer()\n    l = uasyncio.get_event_loop()\n    l.run_until_complete(s.serve(cb, '0.0.0.0', port))```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdgram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fdgram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdgram/lists"}