Skip to main content

Send JSON-RPC requests

Project description

Send JSON-RPC requests in Python 2.7 and 3.3+.

>>> from jsonrpcclient.http_server import HTTPServer
>>> HTTPServer('http://cats.com/').request('speak')
--> {"jsonrpc": "2.0", "method": "speak", "id": 1}
<-- {"jsonrpc": "2.0", "result": "meow", "id": 1}
'meow'

Full documentation is at jsonrpcclient.readthedocs.io.

2.2.0 (Sep 12, 2016)

  • Support Tornado adapter

  • Improve logging configuration

2.1.3 (Aug 10, 2016)

  • Simpler configuration of the id part of requests

2.1.2 (Aug 8, 2016)

  • Fixed a bug when logging http requests.

  • Create default log handlers if user hasn’t configured any.

2.1.1 (Jul 22, 2016)

  • More flexible configuration of requests in HTTPServer.

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-2.2.0.tar.gz (9.5 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