Skip to main content

A transport-agnostic json-rpc client library

Project description

jsonrpc_pyclient is a transport-agnostic json-rpc 2.0 and 1.0 client library primarily intended for use with libjson-rpc-cpp but can be used with other json-rpc server implementations.

This library is intended to be used with libjson-rpc-cpp’s stubgenerator, which takes a json-formatted specification file, and can then return server and client stubs in various languages; the python client stub generator was created to use this library. For more information on using the stubgenerator, refer to libjson-rpc-cpp’s documentation.

Currently Supported Transports

  • http
  • tcp sockets

Basic Usage

>>> from jsonrpc_pyclient.connectors import socketclient
>>> import ClientStub #client stub created by libjson-rpc-cpp stubgenerator
>>> connector = socketclient.TcpSocketClient("", 8032)
>>> client = ClientStub(connector)
>>> result = client.addNumbers(4, 5)
>>> print(result)


$ pip install jsonrpc_pyclient

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsonrpc-pyclient, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size jsonrpc_pyclient-1.1.3-py2.py3-none-any.whl (12.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size jsonrpc_pyclient-1.1.3.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page