Skip to content

A Hybrid(P2P+Centralized) File Sharing Model, accessible through PyPI

License

Notifications You must be signed in to change notification settings

manoj-dhakal/data_karkhana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Data Karkhana

Description

Data Karkhana is a project focused on building a Hybrid System for file sharing based on both the Client-Server model and the P2P model. We have five components in the system: a tracker, 2 peers, a sender (Alice), and a receiver (Bob). Alice also acts as a peer after sending files to the system. Bob can receive the file but doesn't act as a peer in the system.

Installation

To install and run this project, you would need to follow one of the following steps:

1) PyPI

The package is hosted in Pipy here, you can directly download it using the command below:

pip install datakarkhana

Then you can directly run datakarkhana from your terminal.

2) Clone this repository

To install and run this project you would need to follow one of the following steps:

  1. Clone the repo:
git clone https://github.com/timsinashok/data_karkhana.git
  1. Navigate into the project directory: cd data_karkhana, and run the main.py script.

Usage

If using Pipy use the following:

datakarkhana {tracker ip} {tracker port}

If you are cloning this repository, use the following

python3 main.py {tracker ip} {tracker port}

, and continue with the instructions in the terminal.

Video Explanation

The video explanation was recorded during the early development of the package so the way programs are run is a little bit different. Now that we have a pipy package made for this project, you can directly follow the instructions given in the USAGE Section .

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A Hybrid(P2P+Centralized) File Sharing Model, accessible through PyPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages