A intuitive and cross-languige RCP lib for Python.
Project description
InteractionFree for Python
InteractionFree is a remote procedure call (RPC) protocol based on ZeroMQ. It allows the developers to build their own distributed and cross-languige program easily. The protocol is config-less and extremly easy to use. Currently, Msgpack is used for binary serialization. InteractionFree implementation is already available in various languages (including Scala, Javascript, Arduino). More infomation will be available soon.
- InteractionFree specification: to be drafted.
Quick Start
Install
$ pip install interactionfreepy
Start the server
from interactionfreepy import IFBroker
broker = IFBroker('tcp://*:port')
IFLoop.join()
replace port to any port number that is available.
IFLoop.join() is a utility function to prevent the program from finishing.
Start a worker
from interactionfreepy import IFWorker
class Target():
def tick(self, message):
return "tack %s" % message
worker = IFWorker('tcp://address:port', 'TargetService', Target())
IFLoop.join()
replace address and port to the server's net address and port.
Start a client
from interactionfreepy import IFWorker
client = IFWorker('tcp://address:port')
print(client.TargetService.tick('now'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interactionfreepy-1.6.1.tar.gz.
File metadata
- Download URL: interactionfreepy-1.6.1.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
493575edc3ac61949476af7419232a74c6633c8948b46836353e978a22e2cd82
|
|
| MD5 |
6edcc154f6ceee7065c5a0d5c6f80f77
|
|
| BLAKE2b-256 |
66dc5372ad57b8481cf73b4898b80893d443403096150d349b745edb86ea2acd
|
File details
Details for the file interactionfreepy-1.6.1-py3-none-any.whl.
File metadata
- Download URL: interactionfreepy-1.6.1-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2de628db05a68eed94761f8bd8da223a78ff1d5435c2896842211c356628925
|
|
| MD5 |
c766e74dc089129fe659f7957bcdf7f9
|
|
| BLAKE2b-256 |
e89eb90aa9100e0aee637cb2b7664371f210c7b614697f8a4e63e1b7706ef9d1
|