{"id":22348001,"url":"https://github.com/slashgordon/pyeasysocket","last_synced_at":"2025-03-26T10:43:35.152Z","repository":{"id":48594524,"uuid":"221173308","full_name":"SlashGordon/pyeasysocket","owner":"SlashGordon","description":"Python TCP and UDP sockets made easy.","archived":false,"fork":false,"pushed_at":"2021-07-19T05:38:28.000Z","size":18,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T00:48:38.926Z","etag":null,"topics":["network","python3","receiver","streamer","tcp","tcp-client","tcp-server","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/SlashGordon.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}},"created_at":"2019-11-12T08:58:19.000Z","updated_at":"2020-05-04T18:34:03.000Z","dependencies_parsed_at":"2022-09-19T05:01:26.360Z","dependency_job_id":null,"html_url":"https://github.com/SlashGordon/pyeasysocket","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/SlashGordon%2Fpyeasysocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashGordon%2Fpyeasysocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashGordon%2Fpyeasysocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlashGordon%2Fpyeasysocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlashGordon","download_url":"https://codeload.github.com/SlashGordon/pyeasysocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641317,"owners_count":20648637,"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":["network","python3","receiver","streamer","tcp","tcp-client","tcp-server","udp"],"created_at":"2024-12-04T10:12:09.379Z","updated_at":"2025-03-26T10:43:35.131Z","avatar_url":"https://github.com/SlashGordon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/SlashGordon/pyeasysocket.svg?branch=master)](https://travis-ci.org/SlashGordon/pyeasysocket)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pyeasysocket?style=plastic)\n[![Coverage Status](https://coveralls.io/repos/github/SlashGordon/pyeasysocket/badge.svg?branch=master)](https://coveralls.io/github/SlashGordon/pyeasysocket?branch=master)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/30808a98d54b4f24bf26f5a89b92501a)](https://www.codacy.com/manual/SlashGordon/pyeasysocket?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=SlashGordon/pyeasysocket\u0026amp;utm_campaign=Badge_Grade)\n\n# pyeasysocket\nPython TCP and UDP sockets made easy.\n\n## install\n\n```shell\npip install pyeasysocket\n```\n\n## quick start\n\nCreate a TCPReceiver:\n\n```python\nfrom pyeasysocket.udp import UDPReceiver\nfrom pyeasysocket.tcp import TCPReceiver\n\nreceiver_udp = UDPReceiver('localhost', 8001)\nreceiver = TCPReceiver('localhost', 8000)\ntry:\n    # run background thread for receive\n    receiver.start()\n    # wait for data\n    received_data = receiver.data\nfinally:\n    receiver.join() # closes the background thread\n```\n\nOr use the advantage of a with statement with the guarantee that the connection will be closed.\n\n```python\nimport time\nfrom pyeasysocket.tcp import TCPReceiver, TCPClient\n\nclient = TCPClient('localhost', 8000)\nwith TCPReceiver('localhost', 8000) as receiver:\n    client.send('test')\n    time.sleep(0.2) # only for timing purpose\n    received_data = receiver.data # test\n```\n## issue tracker\n\n[https://github.com/SlashGordon/pyeasysocket/issuese](https://github.com/SlashGordon/pyeasysocket/issues\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashgordon%2Fpyeasysocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashgordon%2Fpyeasysocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashgordon%2Fpyeasysocket/lists"}