Skip to main content

A intuitive and cross-languige RCP lib for Python.

Project description

InteractionFree for Python

Gitpod ready-to-code

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.5.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

interactionfreepy-1.5.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interactionfreepy-1.5.0.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

Hashes for interactionfreepy-1.5.0.tar.gz
Algorithm Hash digest
SHA256 f5748e5d3bc838cebee4cc9d01fe54127a8dfbe44d4b29e94a3cc2dacb223e9a
MD5 b0b6687dc7b482ff16f2a2d6490c454b
BLAKE2b-256 37ce6e0bc7984ac853260d570bfe56f431a912a059627a76b024310625170614

See more details on using hashes here.

File details

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

File metadata

  • Download URL: interactionfreepy-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 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

Hashes for interactionfreepy-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d31f551ee232498c8d27cc25900f829578e7ec76b251c9a4de646ff6f97cf9c
MD5 24a5224f684156a66e34615c4cd0969b
BLAKE2b-256 ea0eeba634119298d469758d7d794ae2549382e3de13139fd55e061a12c857fc

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