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 speedy.server
s = speedy.server.RPCServer('localhost', 9999, handler=MyHandler())
s.start()

Client

import speedy.client
c = speedy.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.21.tar.gz (6.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for speedy-0.21.tar.gz
Algorithm Hash digest
SHA256 a12d35ffb99d43f70d38e70b212302d75c96dc28cb8b6b521ce6bf901aff816d
MD5 3e960e07cc1c1abea1094abc65c3fc61
BLAKE2b-256 6dc4a8d656498ccd89494190e8368f8336dd5fb35f14ff3db308555540b0e162

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