| Name | decentralized-p2p JSON |
| Version |
0.0.2
JSON |
| download |
| home_page | |
| Summary | A small package built for my cs50p course. It includes a Peer module which provides straight forward methods to exchange messages and create/join networks |
| upload_time | 2023-09-18 16:29:12 |
| maintainer | |
| docs_url | None |
| author | |
| requires_python | >=3.7 |
| license | |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
cryptography
socket
ecdsa
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# CS50P peer to peer network
A simple system to handle networking through python sockets, in a p2p style
## Installation
Download PyPI library
```bash
pip install decentralized-p2p
```
Import the peer class in your main file
```py
from peer import Peer
```
## Usage/Examples
Declare a peer object with:
```py
my_peer = Peer()
```
To create a new network, use the Peer.create_network method.
You will need to specify your username, password, ip and eventual signature and encryption keys
```py
my_peer.create_network("Username", "Password", "192.168.1.2", "None", "None")
```
In another file, call the sign up method to connect to the newly created network:
```py
my_peer_2.signup("SecondUsername", "SecondPassword", "192.168.1.2")
```
Now you can send and receive messages respectivly with the .send() and .read() methods.
## Features
- Asyncronous message send and receive
- Totally decentralized system, allows for wide horizontal expansion
- Asymmetrix signature implemented through ecdsa
- Asymmetric encryption implemented using fernet
## Running Tests
To run tests, run the following command
```bash
pytest test_project.py
```
## Authors
- [@NeekoKun](https://www.github.com/NeekoKun)
- [@NeekoKun02](https://www.github.com/NeekoKun02)
Raw data
{
"_id": null,
"home_page": "",
"name": "decentralized-p2p",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "NeekoKun <leonardo.riccim@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/d8/01/688b5677a39d60c45268ae05f5b285643a34142185b1a42f70e0173272a8/decentralized_p2p-0.0.2.tar.gz",
"platform": null,
"description": "\n# CS50P peer to peer network\n\nA simple system to handle networking through python sockets, in a p2p style\n\n## Installation\n\nDownload PyPI library\n\n```bash\n pip install decentralized-p2p\n```\n\nImport the peer class in your main file\n\n```py\n from peer import Peer\n```\n## Usage/Examples\n\nDeclare a peer object with:\n\n```py\nmy_peer = Peer()\n```\n\nTo create a new network, use the Peer.create_network method.\nYou will need to specify your username, password, ip and eventual signature and encryption keys\n\n```py\nmy_peer.create_network(\"Username\", \"Password\", \"192.168.1.2\", \"None\", \"None\")\n```\n\nIn another file, call the sign up method to connect to the newly created network:\n\n```py\nmy_peer_2.signup(\"SecondUsername\", \"SecondPassword\", \"192.168.1.2\")\n```\n\nNow you can send and receive messages respectivly with the .send() and .read() methods.\n\n## Features\n\n- Asyncronous message send and receive\n- Totally decentralized system, allows for wide horizontal expansion\n- Asymmetrix signature implemented through ecdsa\n- Asymmetric encryption implemented using fernet\n\n\n## Running Tests\n\nTo run tests, run the following command\n\n```bash\n pytest test_project.py\n```\n\n\n## Authors\n\n- [@NeekoKun](https://www.github.com/NeekoKun)\n- [@NeekoKun02](https://www.github.com/NeekoKun02)",
"bugtrack_url": null,
"license": "",
"summary": "A small package built for my cs50p course. It includes a Peer module which provides straight forward methods to exchange messages and create/join networks",
"version": "0.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/NeekoKun/cs50p-project/issues",
"Homepage": "https://github.com/NeekoKun/cs50p-project"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "230b79d64fca164f91d7581c0d5c8340d3ce30c35070f4eddc3c8f31fdd2a964",
"md5": "01e29e36fcd763e4034ef8907c95dff8",
"sha256": "e075090c5ffe1b3b3ac6cb83deaa654f5a5de9f8ea2c6dd6d42386bfd2ae2e01"
},
"downloads": -1,
"filename": "decentralized_p2p-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "01e29e36fcd763e4034ef8907c95dff8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8003,
"upload_time": "2023-09-18T16:29:11",
"upload_time_iso_8601": "2023-09-18T16:29:11.162616Z",
"url": "https://files.pythonhosted.org/packages/23/0b/79d64fca164f91d7581c0d5c8340d3ce30c35070f4eddc3c8f31fdd2a964/decentralized_p2p-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d801688b5677a39d60c45268ae05f5b285643a34142185b1a42f70e0173272a8",
"md5": "39934c0b67cf36c9ee949fa691e0c142",
"sha256": "64730819f20cea2a2237c95fb4b920ff14165f4a7892164353ff69ff17d2aa71"
},
"downloads": -1,
"filename": "decentralized_p2p-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "39934c0b67cf36c9ee949fa691e0c142",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6803,
"upload_time": "2023-09-18T16:29:12",
"upload_time_iso_8601": "2023-09-18T16:29:12.912491Z",
"url": "https://files.pythonhosted.org/packages/d8/01/688b5677a39d60c45268ae05f5b285643a34142185b1a42f70e0173272a8/decentralized_p2p-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-18 16:29:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NeekoKun",
"github_project": "cs50p-project",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "cryptography",
"specs": []
},
{
"name": "socket",
"specs": []
},
{
"name": "ecdsa",
"specs": []
}
],
"lcname": "decentralized-p2p"
}