This project has been archived by its maintainers, and is no longer receiving any updates.
=====================================
A fast non-blocking RPC library for Python.
Installation
------------
pip install [--user] speedy
or
easy_install speedy
Usage
-----
##### Imports
import speedy
from speedy import zeromq
##### Server
class MyServer(speedy.Server):
def foo(self, handle, request):
handle.done(do_something(request.foo, request.bar))
server = MyServer(zeromq.server_socket(('127.0.0.1', port)))
# or use -1 to have the server grab an open port
# server = MyServer(zeromq.server_socket(('127.0.0.1', -1)))
server.serve() # blocks until server exits
##### Client
client = speedy.Client(zeromq.client_socket(('127.0.0.1', server_port)))
# requests are arbitrary python objects
request = { 'foo' : 123, 'bar' : 456 }
future = client.foo(request)
# Wait for the result. If the server encountered an error,
# an speedy.RemoteException will be thrown.
result = future.wait()
Feedback
--------
Questions, comments: <power@cs.nyu.edu>
Metadata
Release files for speedy 0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| speedy-0.23.tar.gz | 10.3 kB | Without provenance | Details |
Release files / speedy-0.23.tar.gz
| Download URL | speedy-0.23.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af0405c552f104ad21b183350a50d8bdf6bdd69a3fef328098dc503afc0afddb
|
|
BLAKE2b-256 checksum How to use checksums |
339aa3018fca2f4ca8709b6e1cfed227307fd8c902bc09f593a3c4ae954a7967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for speedy 0.23
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.