{"id":19836941,"url":"https://github.com/pj8912/python_p2p","last_synced_at":"2025-02-28T18:45:37.925Z","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-01-11T11:12:37.618Z","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":null,"dependency_job_id":"4a8193c1-ead2-40cb-9eef-63d779dabdfc","html_url":"https://github.com/pj8912/python_p2p","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/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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202223,"owners_count":19926564,"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":["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":"2025-02-28T18:45:37.887Z","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## Requirements\n- Python 3.x\n- Required packages:\n  - `socket`\n  - `threading`\n\n\n## Quick Start \n  - Write `python3 peer.py ` on terminal to start.\n\n\n\n- The peer.py file combines both the `server` and the `client` files together to create a `Peer` in the network. \n- This program starts creating a peer as the Server and then when the server is disconnected this program takes care making another peer as the server.\n- This is done by constantly looping over the peers in list and try make all peers as clients and then try making itself as the server.\n\n\n\n## Features\n- Direct communication between nodes in the network.\n- Dynamic discovery of other nodes in the network.\n- Ability to send messages to other nodes in the network.\n\n## Limitations\n- The network does not support secure communication and is vulnerable to hacking and eavesdropping.\n\n\n## Hybrid approach\n\nIn a hybrid approach, both client and server components play a role in managing the peer list and maintaining the P2P network. \nCheck out [Hybrid approach](https://github.com/pj8912/python_p2p/tree/main/hybrid-approach)\n\n\n\n## Contribute\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"}