python msgpack RPC over websocket
Project description
# wsmpRPC
Python msgpack RPC over websocket
## Features
Asynchronous
Compared to json, [msgpack](https://msgpack.org/) 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](https://grpc.io/docs/tutorials/basic/python/).
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](https://msgpack.org/) and [javascript](https://github.com/ygoe/msgpack.js) versions of msgpack
## Examples * [server_test.py](https://github.com/hyansuper/wsmprpc/blob/master/examples/server_test.py) * [client_test.py](https://github.com/hyansuper/wsmprpc/blob/master/examples/client_test.py) * [client_test.html (javascript client)](https://github.com/hyansuper/wsmprpc/blob/master/js/client_test.html)
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
Built Distribution
File details
Details for the file wsmprpc-1.0.2.tar.gz
.
File metadata
- Download URL: wsmprpc-1.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27081a916b1bf66b1e6768ac7dca8c3e28f9e44ca9ef7c6915d13cc4928992ac |
|
MD5 | b258a845f9cfac8cf7709034c346cc5e |
|
BLAKE2b-256 | a73d7291845445c7e9ca47a16820551ab0fe9a3e9a79e6f99a5c259fbad46b10 |
File details
Details for the file wsmprpc-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: wsmprpc-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c07526d3c7c4100ed71f31ff11c38eb135535974ca0aaa32a0ac402b439bd66 |
|
MD5 | 3459f577cd65e12e3677b160738603f2 |
|
BLAKE2b-256 | 3960bc063689ec4279856ae4cca9042d240c7035cd49c84be3fc4579e528e7c7 |