Skip to main content

JSON-RPC 2.0 client library for Python 3.

Project description

https://pypip.in/v/jsonrpcclient/badge.png https://pypip.in/d/jsonrpcclient/badge.png

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.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.

1.0.8 (2014-12-02)

  • Show the response status code in the log.

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

jsonrpcclient-1.0.12.tar.gz (6.7 kB view hashes)

Uploaded Source

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