p2p0mq is an open source, MIT licensed, 0mq-based library for creating peer-to-peer networks.
pip install p2p0mq
You can also download/clone the source, in which case you have to:
git clone https://github.com/pyl1b/p2p0mq.git
python setup.py install
To contribute a patch clone the repo, create a new branch, install in develop mode:
python setup.py develop