Skip to main content

distributed file system based on kademlia dht

Project description

Distributed file system based on https://github.com/bmuller/kademlia for the final project of distributed systems

Basic Usage

  • Clone the repo and run poetry install
  • Run server.py in one pc or several pc in a local network
  • Run cli.py in any pc of the network and start playing with the system

Installation

- pip install kade-drive

Server

from kade_drive.server import start_server

start_server()

Client

Note: Make shure that there exist at least a server in the local network

from kade_drive.cli import ClientSession

client = ClientSession()
client.connect()
client.put(4, 5)
value = client.get(4)
assert value == 5

Tests

To run tests make shure that there is at least one server in the network.

Project details


Download files

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

Source Distribution

kade_drive-0.5.1.tar.gz (25.9 kB view hashes)

Uploaded Source

Built Distribution

kade_drive-0.5.1-py3-none-any.whl (32.8 kB view hashes)

Uploaded Python 3

Supported by

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