/dht

Kademlia Distributed Hash Table in Python with asyncio

Primary LanguagePythonMIT LicenseMIT

Distributed Hash Table

This is a Kademlia distributed hash table build in Python >= 3.5 with asyncio.

Usage

Starting the network

PYTHONPATH=$(pwd) python3 dht/main.py --listen-port 9999

Connecting to the network

PYTHONPATH=$(pwd) python3 dht/main.py --listen-port 9998 --initial-node 127.0.0.1:9999

Running tests

python3 -m unittest

Original paper

Link to the original paper or see the pdf in the project.