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
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
kade_drive-0.5.1.tar.gz
(25.9 kB
view details)
Built Distribution
File details
Details for the file kade_drive-0.5.1.tar.gz
.
File metadata
- Download URL: kade_drive-0.5.1.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.3 Linux/6.2.15-300.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77a0265a3c70f143979ed383cdb2180925ce7ff6650049823e29d61e6b662f3 |
|
MD5 | 35200592fb5fc9a302f84c5d44f69a43 |
|
BLAKE2b-256 | 983804558ab2739972190dc3dd7a38d5ae4f7cf4555d27be3ac4d6737ad9fa7b |
File details
Details for the file kade_drive-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: kade_drive-0.5.1-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.3 Linux/6.2.15-300.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8367c4af1c438097ee430a1edefee2cfed882af29e02610b751fc63aa924af11 |
|
MD5 | 0044d363f7dbf5b1d21114ed150b8be0 |
|
BLAKE2b-256 | 60b7cbef842680ded91cb69045dfe2c75e1fb59798087e74d32a25d5eb3b07aa |