Skip to main content

Fast, non-blocking RPC system.

Project description

Speedy - A Fast RPC System for Python

A fast non-blocking RPC library for Python.


pip install [--user] speedy


easy_install speedy

##### Imports

import speedy
from speedy import zeromq

##### Server

class MyServer(speedy.Server):
def foo(self, handle, request):
server = MyServer(zeromq.server_socket(('', port)))
# or use -1 to have the server grab an open port
# server = MyServer(zeromq.server_socket(('', -1)))
server.serve() # blocks until server exits

##### Client

client = speedy.Client(zeromq.client_socket(('', server_port)))

# requests are arbitrary python objects
request = { 'foo' : 123, 'bar' : 456 }

future =

# Wait for the result. If the server encountered an error,
# an speedy.RemoteException will be thrown.
result = future.wait()


Questions, comments: <>

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.22.tar.gz (10.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page