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.11.tar.gz
(6.6 kB
view details)
File details
Details for the file speedy-0.11.tar.gz
.
File metadata
- Download URL: speedy-0.11.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96eb21c99d1916a1d211458fd30f7130f6927578c24d244a01315c4c3cc15c88 |
|
MD5 | 1e7e8b3b14c3dbb767d2447029e3b70e |
|
BLAKE2b-256 | 50d5691946b902cc9f9a3bfbd7ae9cdf8b8af43bfe901aa82707cbee7b5fc1aa |