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
Documentation
https://geekslabtech.github.io/kade-drive/
Basic Usage
- Clone the repo and run
poetry install
- Run
poetry run server
in one pc or several pc in a local network - Run
poetry run cli
in any pc of the network and start playing with the system
Usage with docker
- Build the image with
make docker
or pull it from docker.hubdocker pull joramas/kade-drive:latest
- Run
make shell
to start the Docker container with an interactive Bash shell - Now you can run
poetry run server
to start a server orpoetry run cli
Installation
pip install kade-drive
Server
from kade_drive.server import start_server
start_server()
Client
Note: Make sure that there exist at least a server in the local network
from kade_drive.cli import ClientSession
client = ClientSession()
client.connect()
response, _ = client.put(4, 5)
# If true, it means that the value was setted correctly, false otherwise
assert response is True
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.8.1.tar.gz
(26.5 kB
view hashes)
Built Distribution
kade_drive-0.8.1-py3-none-any.whl
(32.1 kB
view hashes)
Close
Hashes for kade_drive-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d4310437cdb33565da82023c0b4d02b95918e670fe1883f8a4f382d6f2db8c |
|
MD5 | 82b53c459efd3c0f82bcda12582d32b9 |
|
BLAKE2b-256 | 96475c93d3be7b3f73b4ae737b34474977bd6523927301a45ff317b85d7d35b0 |