Skip to main content

Fast, non-blocking JSON based RPC system.

Project description

A fast non-blocking JSON based RPC library for Python.

Usage

##### Server

class MyHandler(object):
def foo(self, handle, arg1, arg2):

handle.done(do_something(arg1, arg2))

import rpc.server s = rpc.server.RPCServer(‘localhost’, 9999, handler=MyHandler()) s.start()

##### Client

import rpc.client c = rpc.client.RPCClient(‘localhost’, 9999) future = c.foo(‘Some data’, ‘would go here’) assert future.wait() == ‘Expected result.’

Feedback

Questions, comments: <power@cs.nyu.edu>

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

speedy-0.12.tar.gz (6.6 kB view hashes)

Uploaded Source

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