and Python-zeroconf
You can share your Python classes in Bonjour style! (ln 164 lines of code only)
Server:
from integra import ipc
import MySharedClass # Use anything
shared_class = MySharedClass()
ipc["shared_class"] = shared_class # We share it
while True:
...
Client (any machine on LAN or localhost):
from integra import ipc
remote_shared = ipc["shared_class"]
result = remote_shared.awesome_method()
That's all, you find your class or service by name and make calls like it's local. Please note that security is on your own.
pip3 install integra
- OR
pip3 install git+https://github.com/pmus/integra.git#egg=integra