Git Product home page Git Product logo

python_p2p's Introduction

python_p2p

Peer-to-Peer network in python

This 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.

Requirements

  • Python 3.x
  • Required packages:
    • socket
    • threading

Quick Start

  • Write python3 peer.py on terminal to start.

  • The peer.py file combines both the server and the client files together to create a Peer in the network.

  • 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.

  • 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.

Features

  • Direct communication between nodes in the network.
  • Dynamic discovery of other nodes in the network.
  • Ability to send messages to other nodes in the network.

Limitations

  • The network does not support secure communication and is vulnerable to hacking and eavesdropping.

Hybrid approach

In a hybrid approach, both client and server components play a role in managing the peer list and maintaining the P2P network. Check out Hybrid approach

Contribute

  • 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.

python_p2p's People

Contributors

pj8912 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.