JSON-RPC 2.0 client library.
Project description
Make remote procedure calls with JSON-RPC.
Simply set the server details, then make a request:
>>> from jsonrpcclient import Server
>>> server = Server('http://example.com/api')
>>> server.request('add', 2, 3)
5
Installation
$ pip install jsonrpcclient
Documentation
Documentation is available at https://jsonrpcclient.readthedocs.org/.
If you need a server, try my jsonrpcserver library.
Release History
1.1.1 (2015-01-16)
More features available when communicating with the server, such as setting a timeout on requests, ssl verification, cookies etc.
Now compatible with older Python versions (tested with 2.7.9).
1.1.0 (2014-12-30)
Out of beta. Some minor internal adjustments.
1.0.12 (2014-12-16)
Default HTTP headers changed to meet this document.
Ability to customize the headers.
Logging has changed. See Logging.
1.0.11 (2014-12-12)
Rewrote an internal function, rpc.request.
1.0.10 (2014-12-11)
Exceptions have been cleaned up. The base exception is now named JsonRpcClientError.
Tests added for 100% code coverage.
1.0.9 (2014-12-02)
Added authentication.
Messages are now output on the INFO log level.
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
File details
Details for the file jsonrpcclient-1.1.1.tar.gz
.
File metadata
- Download URL: jsonrpcclient-1.1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4871f9d739fb4c989f25bad27135fc3e56fe0e448abf06b39b3c503da38d2ee |
|
MD5 | 07d358b97889df8cee8d41d305632f04 |
|
BLAKE2b-256 | afabe55880cc8b29103131343f80ef0fc39eae85e75e753b17f3b92dc86f8003 |