Send JSON-RPC requests
Project description
# jsonrpcclient
Send [JSON-RPC](http://www.jsonrpc.org/) requests in Python 2.7 and 3.3+.
```sh
pip install jsonrpcclient[requests]
```
```python
import jsonrpcclient
jsonrpcclient.request('http://cats.com', 'speak')
```
```sh
--> {"jsonrpc": "2.0", "method": "speak", "id": 1}
<-- {"jsonrpc": "2.0", "result": "meow", "id": 1} (200 OK)
'meow'
```
Full documentation is at [jsonrpcclient.readthedocs.io](https://jsonrpcclient.readthedocs.io/).
See also: [jsonrpcserver](https://github.com/bcb/jsonrpcserver)
## 2.4.3 (Aug 8, 2017)
- Add convenience functions 'request' and 'notify' (#54)
## 2.4.3 (Aug 8, 2017)
- Fix custom headers in Tornado Client (#52)
## 2.4.2 (Oct 12, 2016)
- Allow passing a list of strings to send()
## 2.4.1 (Oct 6, 2016)
- Fix response log prefix
## 2.4.0 (Oct 5, 2016)
- Add asychronous Zeromq client, see [blog post](https://bcb.github.io/jsonrpc/zeromq-async)
## 2.3.0 (Sep 28, 2016)
- Support websockets and aiohttp
## 2.2.4 (Sep 19, 2016)
- Internal refactoring, to make it easier to add clients.
## 2.2.3 (Sep 13, 2016)
- Rename "server" modules and classes to "client". The old names are
deprecated.
## 2.2.2 (Sep 12, 2016)
- Don't disable log propagate
## 2.2.1 (Sep 12, 2016)
- Bugfix logging configuration
## 2.2.0 (Sep 12, 2016)
- Support Tornado adapter
- Improve logging configuration
Send [JSON-RPC](http://www.jsonrpc.org/) requests in Python 2.7 and 3.3+.
```sh
pip install jsonrpcclient[requests]
```
```python
import jsonrpcclient
jsonrpcclient.request('http://cats.com', 'speak')
```
```sh
--> {"jsonrpc": "2.0", "method": "speak", "id": 1}
<-- {"jsonrpc": "2.0", "result": "meow", "id": 1} (200 OK)
'meow'
```
Full documentation is at [jsonrpcclient.readthedocs.io](https://jsonrpcclient.readthedocs.io/).
See also: [jsonrpcserver](https://github.com/bcb/jsonrpcserver)
## 2.4.3 (Aug 8, 2017)
- Add convenience functions 'request' and 'notify' (#54)
## 2.4.3 (Aug 8, 2017)
- Fix custom headers in Tornado Client (#52)
## 2.4.2 (Oct 12, 2016)
- Allow passing a list of strings to send()
## 2.4.1 (Oct 6, 2016)
- Fix response log prefix
## 2.4.0 (Oct 5, 2016)
- Add asychronous Zeromq client, see [blog post](https://bcb.github.io/jsonrpc/zeromq-async)
## 2.3.0 (Sep 28, 2016)
- Support websockets and aiohttp
## 2.2.4 (Sep 19, 2016)
- Internal refactoring, to make it easier to add clients.
## 2.2.3 (Sep 13, 2016)
- Rename "server" modules and classes to "client". The old names are
deprecated.
## 2.2.2 (Sep 12, 2016)
- Don't disable log propagate
## 2.2.1 (Sep 12, 2016)
- Bugfix logging configuration
## 2.2.0 (Sep 12, 2016)
- Support Tornado adapter
- Improve logging configuration
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.5.0.tar.gz
(15.0 kB
view hashes)