Skip to main content

ROC - Remote Object Call

Build Status PyPi version

ROC is RPC enhancment allowing to manipulate remote objects like they are local

Why ROC?

ROC development was started to support acceptance testing of distributed systems with FitNesse, waferslim and vagrant System infrastucture may be described as follows:

  • Host machine running FitNesse server and SLIM server;

  • Set of guests, that are provisioned by vagrant with ROC servers;

When hosts’ fixture is invoked by SLIM server, it can access guests’ roc servers.

Usage

To start serving your modules on remote machine with ROC:

python -m "roc" -m <your-module-path> -p <port>

To connect to your instance from host:

from roc.client import server_proxy, remote_module
proxy = server_proxy(host='127.0.0.1', port=1234)
RModule = remote_module(proxy)

To instantiate object on remote machine:

remote_instance = RModule.RemoteClass(1, 2, 3)

From now every method called on remote_instance will be executed on remote.

When you finished, call proxy.shutdown() to, well, shut down remote ROC server.

Download files

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

Source Distribution

roc-0.3.1.zip (8.2 kB view details)

Uploaded Source

File details

Details for the file roc-0.3.1.zip.

File metadata

  • Download URL: roc-0.3.1.zip
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for roc-0.3.1.zip
Algorithm Hash digest
SHA256 7e70be8b284e143a571c13716966e3481b639dcfed353ecc0e5826dadbf822d6
MD5 0b137d06932f816b893fbbe83ad5c5eb
BLAKE2b-256 81ff84c7f2104baddb81517c39f4f09c32dcfcb052f845c3d8aea2ec255d6d68

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

1 file

This release

0.3.1 This release

1 file

0.3.0

1 file

0.2.3

1 file

0.2.1

1 file

0.2.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page