{"id":19836941,"url":"https://github.com/pj8912/python_p2p","last_synced_at":"2026-06-10T11:32:00.874Z","repository":{"id":121661826,"uuid":"526204472","full_name":"pj8912/python_p2p","owner":"pj8912","description":"Peer-to-Peer network in python","archived":false,"fork":false,"pushed_at":"2023-05-08T03:12:01.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T22:11:54.525Z","etag":null,"topics":["decentralized-applications","hybrid-approach","p2p","p2p-networks","p2p-node","peer-to-peer","python","python-socket"],"latest_commit_sha":null,"homepage":"https://github.com/pj8912/python_p2p","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pj8912.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["pj8912"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-08-18T12:34:04.000Z","updated_at":"2023-05-15T13:54:27.000Z","dependencies_parsed_at":"2026-04-23T00:00:41.791Z","dependency_job_id":null,"html_url":"https://github.com/pj8912/python_p2p","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pj8912/python_p2p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fpython_p2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fpython_p2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fpython_p2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fpython_p2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pj8912","download_url":"https://codeload.github.com/pj8912/python_p2p/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pj8912%2Fpython_p2p/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34151274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["decentralized-applications","hybrid-approach","p2p","p2p-networks","p2p-node","peer-to-peer","python","python-socket"],"created_at":"2024-11-12T12:13:05.030Z","updated_at":"2026-06-10T11:32:00.868Z","avatar_url":"https://github.com/pj8912.png","language":"Python","funding_links":["https://github.com/sponsors/pj8912"],"categories":[],"sub_categories":[],"readme":"# python_p2p\nPeer-to-Peer network in python\n\nThis is a peer-to-peer network built using Python programming language. The network enables direct communication between nodes (peers) in the network without the need for a central server.\n\n\u003e UPDATE : Rewrote the p2p network  with `asyncio`\n\n## Requirements\n- Python 3.x\n- Required packages:\n  - `asyncio`\n\n## Get Started\n  ### Clone repo\n  ```\n  git clone https://github.com/pj8912/python_p2p.git\n  ```\n  \n  ```\n  cd python_p2p\n  ```\n  ### Start\n  \n  ```\n  python peer.py\n  ```\n\n## Working\n- The network uses asyncion to create the server client connection\n- To run this in a single machine clone/copy the repo folder somewhere else and change the server and client ports\n- Example \n  - `Node 1` : `server:6000`, `client:4000`\n  - `Node 2` : `server:4000`, `client:6000`\n- So `Node 1` server connects to `Node 2` client via `port:6000` \n\n- On a real p2p network, only one node runs per machine, so you wouldn't have these problems.\n\n\n\n## Limitations\n- The network does not support secure communication and is vulnerable to hacking and eavesdropping.\n- **Not for production**\n\n\n\n## Contribution\n- If you are interested in contributing to the development of the P2P network, you can create a pull request with your changes. All contributions are welcome and appreciated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fpython_p2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpj8912%2Fpython_p2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpj8912%2Fpython_p2p/lists"}