The Python implementation of the libp2p networking stack 🐍 [under development]
assets | ||
encryption | ||
host | ||
kademlia | ||
libp2p | ||
muxer | ||
network | ||
peer | ||
tests | ||
transport | ||
__init__.py | ||
.gitignore | ||
.pylintrc | ||
LICENSE | ||
README.md | ||
requirements.txt |
py-libp2p
Development
py-libp2p requires Python 3.6 and the best way to guarantee a clean Python 3.6 environment is with virtualenv
virtualenv -p python3.6 venv
. venv/bin/activate
pip install -r requirements.txt
Testing
After installing our requirements (see above), you can:
cd tests
pytest
Note that tests/libp2p/test_libp2p.py contains an end-to-end messaging test between two libp2p hosts, which is the bulk of our proof of compass.