Simple peer2peer library.
Project description
This library enables you create P2P application.
## Require * Python3 (>=3.5) * [bin-json](https://github.com/namuyan/bin-json)
## How to install `commandline pip install git+https://github.com/namuyan/p2p-python.git `
## How to use `python from p2p_python.client import PeerClient port, net_ver = 1200, 123456789 pc = PeerClient(port, net_ver) pc.p2p.f_tor = False # Do not use tor. pc.start(f_server=True, f_stabilize=True) `
## Simple example Please look test dir. Simple chat program [simple_chat.py](test/simple_chat.py).
Uer test1 `commandline python3 test/simple_chat.py name >> test1 Create port 2001 Join "test2" [01-01-01-01][test2 ] hello world >> `
Another user test2 `commandline python3 test/simple_chat.py name >> test2 >> /join 2001 Create port 2002 Join "test2" >> hello world [01-01-01-01][test2 ] hello world >> `
## Author [@namuyan_mine](http://twitter.com/namuyan_mine/)
## Licence MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file p2p_python-0.0.5.tar.gz
.
File metadata
- Download URL: p2p_python-0.0.5.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eadd55a12a7f3d58c899a6f171bc761467c9e721e71c3e88fb6bd8498e710a95 |
|
MD5 | 55d42d5a046afab1cf380746ec5610f0 |
|
BLAKE2b-256 | e6d8a5853bd6903bdd26ce49a18fc7eef46f4e920a167533f5b7ef4751c55d0e |