download the halal staff for free with no registration
Project description
2019-net-b
What is our peer-to-peer file downloading system
The main idea of the system - secure and reliable file exchange between people in a network. Peer-to-peer means that files are transfering between guys that are connected to a system following several specific rules:
- to get into the system the guys first must download the specific .libr files
- afterwards those guys must connect to a tracker (using the ip from .libr file) to get the list of other peer guys
- the fun begins! Peer goes inside the network, starts taking the "books" (chunks) of needed files from other guys and giving the chunks he has to other guys.
- In the end everybody is happy having the fully downloaded files.
How to build, run, test
Build step: 0) run pip install haramnetworks
- Use chunky_boy.py to create .libr file (library file as described in protocol) and .bi file (connects names of the stuff with the theirs file-names). The best practise is to run chunky_boy on a tracker computer (because doing so the IP adress of tracker will be writen to .lib file)
- Users must download this .libr file as a first step (same as if downloading a torrent file)
Run steps: 2) Run tracker.py. It will activate the tracker of the whole system. Tracker will start to listen, waiting for peers to get connected to it. 3) Run main_func.py. It will activate peer-to-peer system.
Testing step: 4) Run pytest -v to run all existing test
Resourses: 5) Check the resourses used via link
Architectures
-
One player (let's call Player A) execute the 'tracker.py'. Player A will be our hub. Player A has the text file that consist of staffs (The lord of the rings, Gone with the wind etc.).
-
Another one player (Let's call Player B), he will download the libr file (like a bittorrent file) on github. This file contains the information of: Hub, name of the staff (e.g The Lord of the rings), size of the staff, size used for books, SHA1 of each books.
-
After Player B has the .libr file, Player B execute the 'main_func.py'. Player B will be one of the peers.
-
When Player B executed the 'main_func.py', Player A's text file will be updated according to Player B's IPP and Port. For example;
Before Player B's execute, text file looks like:
The Lord of the Rings II IPP
After Player B's execute, text file looks like:
The Lord of the Rings II IPP 192.168.43.29:1234 (Player B's IPP and Port)
- End of the execution of 'main_func.py',
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
Built Distribution
Hashes for halalnetwork-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebcae9f49a2437d9e1f1e6b04a3142018395b0e4d584131d1b94bb800605b543 |
|
MD5 | 34fbdd3d73b9320cadaaa82b918da291 |
|
BLAKE2b-256 | 91ed536591d4084e5169858b09fc747877cd3a4782c4fce2881194a14840e7d7 |