python msgpack RPC over websocket
Project description
wsmpRPC
Python msgpack RPC over websocket
Features
- Asynchronous
- Compared to json, msgpack supports binary data.
- Client is able to cancel long running calculation on server.
- Supports bidirectional streaming RPC, where the client sends/receives a sequence of messages to/from server within one RPC, similar to gRPC.
- No need to define .proto files, thanks to python's dynamic features, RPC methods defined on server side can be readily used by client as if it's client's own method.
- Easy integration into any async web frameworks that support websocket.
- lib for javascript client on web browsers.
Install
pip install wsmprpc
Dependency:
python and javascript versions of msgpack
Examples
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
wsmprpc-1.0.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file wsmprpc-1.0.1.tar.gz
.
File metadata
- Download URL: wsmprpc-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915791a08bd862aa01516fc4248d2386ba5f4675dfcd0ddde873734469f304a4 |
|
MD5 | 5cfc07942cef247ebf17ffa8baf424a8 |
|
BLAKE2b-256 | c17990b9de9c2b38837035dba81681cc913d4e93c7723cddb7bc97f74199d202 |
File details
Details for the file wsmprpc-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: wsmprpc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7afd465b194ccc3ac25f52a259e1bbe64678bb8a29fba969525672a7bc852ad3 |
|
MD5 | 8358d984a935648332887df4f0022e20 |
|
BLAKE2b-256 | 7216d3d37da7275fd91a17b1cf2ce7b534a9ec901bda3fea73eb4ccf246bdd1d |