{"id":20959209,"url":"https://github.com/codophobia/network-communication-protocols","last_synced_at":"2025-09-10T00:24:06.635Z","repository":{"id":219622298,"uuid":"749488331","full_name":"codophobia/Network-communication-protocols","owner":"codophobia","description":"Code examples in Python to understand popular network communication protocols like TCP, HTTP and RPC","archived":false,"fork":false,"pushed_at":"2024-02-22T08:04:23.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T00:16:41.552Z","etag":null,"topics":["http","learning-by-doing","python","rpc","tcp"],"latest_commit_sha":null,"homepage":"https://medium.com/@shivammitra/part-1-exploring-network-communication-from-local-functions-to-tcp-http-and-rpc-93ee5c27a2df","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/codophobia.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}},"created_at":"2024-01-28T18:15:50.000Z","updated_at":"2025-01-07T19:22:41.000Z","dependencies_parsed_at":"2024-01-28T19:30:10.362Z","dependency_job_id":"ccf8cf2e-b95f-4b58-8fa0-2c5ae3863400","html_url":"https://github.com/codophobia/Network-communication-protocols","commit_stats":null,"previous_names":["codophobia/rest-vs-rpc","codophobia/network-communication-protocols"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2FNetwork-communication-protocols","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2FNetwork-communication-protocols/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2FNetwork-communication-protocols/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2FNetwork-communication-protocols/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codophobia","download_url":"https://codeload.github.com/codophobia/Network-communication-protocols/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243356524,"owners_count":20277847,"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":["http","learning-by-doing","python","rpc","tcp"],"created_at":"2024-11-19T01:52:13.503Z","updated_at":"2025-03-13T06:30:01.245Z","avatar_url":"https://github.com/codophobia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Popular network communication protocols\n\n[![lint](https://github.com/codophobia/Network-communication-protocols/actions/workflows/lint.yaml/badge.svg)](https://github.com/codophobia/Network-communication-protocols/actions/workflows/lint.yaml) [![test](https://github.com/codophobia/Network-communication-protocols/actions/workflows/test.yaml/badge.svg)](https://github.com/codophobia/Network-communication-protocols/actions/workflows/test.yaml) ![GitHub License](https://img.shields.io/github/license/codophobia/Network-communication-protocols) ![GitHub top language](https://img.shields.io/github/languages/top/codophobia/Network-communication-protocols)\n\nCode examples in Python to understand popular network communication protocols like TCP, HTTP and RPC\n\n## Set up\n```\ngit clone https://github.com/codophobia/rest-vs-rpc.git\ncd rest-vs-rpc\npython3 -m pip install virtualenv\nvirtualenv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Running RPC client and server\n```\npython rpc/server.py\n```\nIn another terminal, run the client.\n```\npython rpc/python_client.py\n```\nGenerate client stubs\n```\npython -m grpc_tools.protoc --proto_path=rpc/proto --python_out=rpc/proto/gen/py  --pyi_out=rpc/proto/gen/py --grpc_python_out=rpc/proto/gen/py rpc/proto/calculator.proto\n```\n\n## Running REST client and server\n```\npython rest/server.py\n```\nIn another terminal, run the client.\n```\npython rest/python_client.py\n```\n\n## Running Socket client and server\n```\npython socket/server.py\n```\nIn another terminal, run the client.\n```\npython socket/python_client.py\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodophobia%2Fnetwork-communication-protocols","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodophobia%2Fnetwork-communication-protocols","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodophobia%2Fnetwork-communication-protocols/lists"}