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

Uploaded Source

File details

Details for the file speedy-0.15.tar.gz.

File metadata

  • Download URL: speedy-0.15.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speedy-0.15.tar.gz
Algorithm Hash digest
SHA256 a285ebcf913cbb2f72b3d65db5fdc5221d17f321ce5f9647387d1fdbe208fd30
MD5 c5a4d1b9fb4a3a2bf75a5c3ec7341234
BLAKE2b-256 a22be21a160d2a3b8bf71f1890d321182af1c5c5a492f04c8c028fba850ccf52

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