Skip to main content

JSON-RPC 2.0 client library.

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.1.2 (2015-02-06)

  • Added the ability to show the incoming and outgoing HTTP headers in the log output.

  • Bugfix - HTTP headers were often incorrect due to quirks in the requests module. Now using a different method to set the headers.

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

This version

1.1.2

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.1.2.tar.gz (5.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