Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interactionfreepy-1.6.4.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

interactionfreepy-1.6.4-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file interactionfreepy-1.6.4.tar.gz.

File metadata

  • Download URL: interactionfreepy-1.6.4.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for interactionfreepy-1.6.4.tar.gz
Algorithm Hash digest
SHA256 0b78f2277508aae9dd35510960cc21e13937c05c89c4db533673c5dc10ccfc82
MD5 9243c26dc2e46f5ff5939b32436a3b91
BLAKE2b-256 9bd639fdb44cf415571968ff51f4303d10b575e9eaa00fa821ce5ed5d62a2ba0

See more details on using hashes here.

File details

Details for the file interactionfreepy-1.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for interactionfreepy-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 962f212c406845d468a054152192e1941d32bade96c4257757799e32c3f14a5d
MD5 3beab43f0a3092edf8cd00f0cdf0b12c
BLAKE2b-256 d6273045f90007d47a9a4e69b1f62a451f908c9f8501aaa77712f6e0af156e8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page