Skip to main content

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

  1. 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)
  2. 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

  1. 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.).

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

  3. After Player B has the .libr file, Player B execute the 'main_func.py'. Player B will be one of the peers.

  4. 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)

  1. End of the execution of 'main_func.py',

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

halalnetwork-0.9.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

halalnetwork-0.9-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file halalnetwork-0.9.tar.gz.

File metadata

  • Download URL: halalnetwork-0.9.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for halalnetwork-0.9.tar.gz
Algorithm Hash digest
SHA256 d2467db4362a780aba6bfbaf4902ce6b47707a0aef2128140c9094c41018a9ff
MD5 ea2f783d41069cd88d4880fde0dd61bb
BLAKE2b-256 d57c5781b96657b15b099c91e841f04c6a1631325ef7f9631a3f21a26f142125

See more details on using hashes here.

File details

Details for the file halalnetwork-0.9-py3-none-any.whl.

File metadata

  • Download URL: halalnetwork-0.9-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for halalnetwork-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ebcae9f49a2437d9e1f1e6b04a3142018395b0e4d584131d1b94bb800605b543
MD5 34fbdd3d73b9320cadaaa82b918da291
BLAKE2b-256 91ed536591d4084e5169858b09fc747877cd3a4782c4fce2881194a14840e7d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page