Skip to main content

A intuitive and cross-languige RCP lib for Python.

Project description

InteractionFree for Python

Documentation Status Coverage badge

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, MessagePack is used for binary serialization.

Please refer to here for the full doc.

Quick Start

Install

$ pip install interactionfreepy

Start the broker

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 server

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interactionfreepy-1.8.4-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interactionfreepy-1.8.4.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for interactionfreepy-1.8.4.tar.gz
Algorithm Hash digest
SHA256 3430f0b8324cd0ab33ef552fc913c9bbfb6e83433ac2f99beceb3e3e7eedcb33
MD5 3b8591f43c771a71c4fd5b99e6af1cd2
BLAKE2b-256 151ec5135e5e9b1443f59ee9e4a6e1e6e6ae561aca95ab1c8db445affbf155bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for interactionfreepy-1.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82629450495e7c9a7cee3ed5bce8884e7afc12bdb56c3d3a710a90a9463cefa7
MD5 07f10f2a98b1348c61c853e3a7617ae5
BLAKE2b-256 3992cf0939ce393c1a896759405ebf504b0993346c2751f70e69c304de7a8159

See more details on using hashes here.

Supported by

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