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
Release history Release notifications | RSS feed
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.20.tar.gz
(6.3 kB
view details)
File details
Details for the file speedy-0.20.tar.gz
.
File metadata
- Download URL: speedy-0.20.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1fb9d4c94296caba69d38df2a2225a8b8852ddfeb2ba3d1a15a4adca9057eb |
|
MD5 | 871f1bff90cce57fbcbaf8c648923e3c |
|
BLAKE2b-256 | 5df318f8ed469c5980593e02180b488834e39829d300d24db0c7ae1a0150a8bf |