Skip to main content

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


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.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

wsmprpc-1.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file wsmprpc-1.1.2.tar.gz.

File metadata

  • Download URL: wsmprpc-1.1.2.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for wsmprpc-1.1.2.tar.gz
Algorithm Hash digest
SHA256 2e28b4e0b2066dfddaaf557a8fcd54ed5d93c8f80ce9b5abfb9b4f2ad2d55d8e
MD5 5c74008c43769f8e49dd40b0a3f1e1a8
BLAKE2b-256 372f02ee2bd0d56c152d5b417a8ef01249fa970df21b340e0f5c332b792b7d2e

See more details on using hashes here.

File details

Details for the file wsmprpc-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: wsmprpc-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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

Hashes for wsmprpc-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 927a1adad69e61dd2b1a2b7d6bf1859788ccfe7242a3354ec26d9a1ab034d5e2
MD5 fd2eb79ce2f9a74dfa39855ef8544503
BLAKE2b-256 2151f5f0a9cd07843eff543e7b3d9ecef6e0ed5b6f3d822a02df21dbe744b1a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page