Distributed file system based on https://github.com/bmuller/kademlia for the final project of distributed systems
https://geekslabtech.github.io/kade-drive/
- Clone the repo and run
poetry install - Run
poetry run serverin one pc or several pc in a local network - Run
poetry run cliin any pc of the network and start playing with the system
- Build the image with
make dockeror pull it from docker.hubdocker pull joramas/kade-drive:latest - Run
make shellto start the Docker container with an interactive Bash shell - Now you can run
poetry run serverto start a server orpoetry run cli
pip install kade-drivefrom kade_drive.server import start_server
start_server()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 == 5To run tests make shure that there is at least one server in the network.