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

Uploaded Source

Built Distribution

interactionfreepy-1.6.6-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interactionfreepy-1.6.6.tar.gz
Algorithm Hash digest
SHA256 2e91437b4ec8521b108d6a65ab529e19b102a475d896ff8b9ac271ed25b266f3
MD5 640e873a9c648a6ce2600757eef17d4e
BLAKE2b-256 994b9e73fa489ab39feeae3f5430bb282422c6545219f9244ead97fe8ad97e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for interactionfreepy-1.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f44a5412674b1915922ed210f33c0ded844fc0cc49dc9d2b7e3fa07b463a5cbc
MD5 edb2557b2f90132a666b589f2ac00c46
BLAKE2b-256 2e46d6b4cbc4c7e8d78df06c8d21e10c2e70eb98070922789b6d709441ff2e4a

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