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

Uploaded Source

Built Distribution

interactionfreepy-1.6.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interactionfreepy-1.6.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for interactionfreepy-1.6.3.tar.gz
Algorithm Hash digest
SHA256 6409d6d1cafe0baad919bb84ea69f012295c6524a8ac0376a347a6483a6000c1
MD5 3c702ef7019bc537e6ffb0a2a14a6a4e
BLAKE2b-256 d7fa7b88245795f9f84249f9ab173e6ca292f9ffa3654373d6e5964dcf523b26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: interactionfreepy-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

File hashes

Hashes for interactionfreepy-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3973ad4773dc5919596186aa91ad689819cabe247e96ad20da5704c20aea82e8
MD5 4653857f7d6fb475b153d5b520989d42
BLAKE2b-256 8c366b00bbed3ded5cbfc7132a076e1676e434000ca305926faeabf8a5ce9f82

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