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.14.tar.gz
(6.2 kB
view details)
File details
Details for the file speedy-0.14.tar.gz
.
File metadata
- Download URL: speedy-0.14.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dda57874684cc2282d0866af416969286e78d049f6e474ca16f8abf07f6741c |
|
MD5 | 403eda7f8b45192447f50f36c59fc923 |
|
BLAKE2b-256 | 8277e604cf8d8a638b394574257ab1de4d2ad622b1b44fd24cd422a19ba809f9 |