{"id":18577110,"url":"https://github.com/brianlesko/py-net-sockets","last_synced_at":"2025-05-16T01:10:39.401Z","repository":{"id":213021346,"uuid":"732774971","full_name":"BrianLesko/py-net-sockets","owner":"BrianLesko","description":"This code implements wireless socket communication between a server and client - written in pure python with a user interface for both computers. To recreate what ive done here you'll need two laptops and a network to communicate over. Make sure your IP addresses and subnet masks are correct and networkable.","archived":false,"fork":false,"pushed_at":"2024-01-28T23:02:10.000Z","size":8002,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T15:23:22.253Z","etag":null,"topics":["communication","computers","jammy-jellyfish","linux","low-code","mac","macos","mechanical-engineer","network","networking","ohio-state","prototyping","python","robotics","robotics-engineer","sockets","ubuntu","user-interface","wifi","wireless"],"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/BrianLesko.png","metadata":{"files":{"readme":"readme.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-17T19:33:48.000Z","updated_at":"2024-08-28T01:38:04.000Z","dependencies_parsed_at":"2024-01-16T10:34:38.533Z","dependency_job_id":"6bc7058f-71e2-4428-b7a5-7b1c09b66ecf","html_url":"https://github.com/BrianLesko/py-net-sockets","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.18181818181818177","last_synced_commit":"53c7fc1c20fdac371a3d6826e8160f2602aa3849"},"previous_names":["brianlesko/py-net-sockets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpy-net-sockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpy-net-sockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpy-net-sockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLesko%2Fpy-net-sockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLesko","download_url":"https://codeload.github.com/BrianLesko/py-net-sockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448614,"owners_count":22072765,"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":["communication","computers","jammy-jellyfish","linux","low-code","mac","macos","mechanical-engineer","network","networking","ohio-state","prototyping","python","robotics","robotics-engineer","sockets","ubuntu","user-interface","wifi","wireless"],"created_at":"2024-11-06T23:27:51.640Z","updated_at":"2025-05-16T01:10:34.385Z","avatar_url":"https://github.com/BrianLesko.png","language":"Python","readme":"# Py-net\nSocket Stream(lit)\nThis code implements wireless TCP socket communication between a server and client - written in pure python with a user interface for both computers. To recreate what ive done here you'll need two laptops and a network to communicate over. Make sure your IP addresses and subnet masks are correct and networkable. \n\n![Preview](docs/preview.png)\n\n\u0026nbsp;\n\n## Local Computer Dependencies\n\nThis code uses the following libraries:\n- `streamlit`: For creating the user interface\n- `socket`: For handling the system level communication hardware \n\n\u0026nbsp;\n\n## Run this demo yourself\n\nClone the repository on two computers and install the necessary dependencies using pip. Next, run the streamlit apps in a terminal in the directory of the repositories\n\non the server computer:\n``` \nstreamlit run server.py\n```\n\non the client computer:\n``` \nstreamlit run client.py\n```\n\n\u0026nbsp;\n\n## How it Works\n\nThe app as follows:\n1. The server waits for a connection\n2. The client connects to the server\n3. The client waits for text input from the user\n4. The client send the user data to the server\n5. The server displays the data as text and responds with a received message\n6. The server continually waits for another message\n7. The client saves the socket connection but reruns and only displays the most recent message and server response\n\n\u0026nbsp;\n\n## Topics \n```\nPython | Wifi | wireless communication | sockets | TCP | networking \ndecode bytes | communication | custom classes\nSelf taught coding | Mechanical engineer | Robotics engineer \nBrian Lesko | Brian Joseph Lesko\n```\n\u0026nbsp;\n\n\u003chr\u003e\n\n\u0026nbsp;\n\n\u003cdiv align=\"center\"\u003e\n\n\n\n╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮        ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮\n┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃        ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃\n┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃        ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃\n┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃        ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃\n┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃        ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃\n╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯        ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯\n  \n\n\n\u0026nbsp;\n\n\n\u003ca href=\"https://twitter.com/BrianJosephLeko\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/x-logo-white.svg\" width=\"30\" alt=\"X Logo\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://github.com/BrianLesko\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/github-mark-white.svg\" width=\"30\" alt=\"GitHub\"\u003e\u003c/a\u003e \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u003ca href=\"https://www.linkedin.com/in/brianlesko/\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BrianLesko/BrianLesko/f7be693250033b9d28c2224c9c1042bb6859bfe9/.socials/svg-white/linkedin-icon-white.svg\" width=\"30\" alt=\"LinkedIn\"\u003e\u003c/a\u003e\n\nfollow all of these or i will kick you\n\n\u003c/div\u003e\n\n\n\u0026nbsp;\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fpy-net-sockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlesko%2Fpy-net-sockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlesko%2Fpy-net-sockets/lists"}