EasyConnects is a simple and lightweight Python module that provides a socket server utility, making communication between different components of your application easy. It uses the ZeroMQ library for efficient and reliable messaging.
git clone https://github.com/zjuwyz/easyconnects.git
cd easyconnects
pip install -e .
see server.py
and client.py
Server
is usingasyncio
for easier concurrency, whileClient
is using normal, blocking api to easier integrate with existing code.- Only one
Server
can exists at the same time, since binding url is fixed totcp://*:12000
. this can be changed ineasyconnects.__init__.py
. If you pip installed with-e
flag, it will take effect immediately, otherwise you'll have to reinstall. There may be furthur updates on this.