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.19.tar.gz
(6.4 kB
view details)
File details
Details for the file speedy-0.19.tar.gz
.
File metadata
- Download URL: speedy-0.19.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dfcb771a7b68803eba24fe9ecb4a88c14b3d050908492139c0191b024e39bea |
|
MD5 | 3d88f996322f5049acec5ff7d365ecbd |
|
BLAKE2b-256 | d858b95f94ae5877f4abe0d2a22b84d89f385ad18ed9140c755e7657e46b6b76 |