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.

Filename, size & hash SHA256 hash help File type Python version Upload date
speedy-0.23.tar.gz (10.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page