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("127.0.0.1", 8032)
>>> client = ClientStub(connector)
>>> result = client.addNumbers(4, 5)
>>> print(result)
Installation
$ 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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonrpc_pyclient-1.1.3.tar.gz.
File metadata
- Download URL: jsonrpc_pyclient-1.1.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
049fcd79fddfd50bc4b7e722bd1e0b3e4e968ff47d50a329eca841299c721cd7
|
|
| MD5 |
7f1d1e29540b30e7e0cb7a479c30b2da
|
|
| BLAKE2b-256 |
25e962f79b8d73202a26da70adb14d3ec6323715d19005ca0bb2722686aa5eea
|
File details
Details for the file jsonrpc_pyclient-1.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: jsonrpc_pyclient-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea54f4f5ae080eb7ce2cd270270a20e8cfff12d8aede05a20695b8ed0c7778f
|
|
| MD5 |
655b093dee552414a34f7691c5055cc1
|
|
| BLAKE2b-256 |
f28ba7ba06938d54bc941d4aec659d0a90eabc557f7680427888ed178789f206
|