54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
Metadata-Version: 2.1
|
|
Name: jsonrpcclient
|
|
Version: 4.0.2
|
|
Summary: Send JSON-RPC requests
|
|
Home-page: https://github.com/explodinglabs/jsonrpcclient
|
|
Author: Beau Barker
|
|
Author-email: beau@explodinglabs.com
|
|
License: MIT
|
|
Platform: UNKNOWN
|
|
Classifier: Programming Language :: Python :: 3.6
|
|
Classifier: Programming Language :: Python :: 3.7
|
|
Classifier: Programming Language :: Python :: 3.8
|
|
Classifier: Programming Language :: Python :: 3.9
|
|
Classifier: Programming Language :: Python :: 3.10
|
|
Description-Content-Type: text/markdown
|
|
License-File: LICENSE
|
|
|
|
> September 1, 2021: Version 4 has been released. Read about the [changes in
|
|
> version 4](https://composed.blog/jsonrpcclient-4-changes), or read the [full
|
|
> documentation](https://www.jsonrpcclient.com/).
|
|
> For earlier versions jump to the [3.x
|
|
> branch](https://github.com/explodinglabs/jsonrpcclient/tree/3.x) or the
|
|
> [documentation for version 3](https://www.jsonrpcclient.com/en/3.3.6/).
|
|
|
|
<img
|
|
alt="jsonrpcclient"
|
|
style="margin: 0 auto;"
|
|
src="https://github.com/explodinglabs/jsonrpcclient/blob/main/docs/logo.png?raw=true"
|
|
/>
|
|
|
|
Generate JSON-RPC requests and parse responses in Python.
|
|
|
|

|
|

|
|

|
|

|
|
|
|
```sh
|
|
pip install jsonrpcclient
|
|
```
|
|
|
|
```python
|
|
>>> from jsonrpcclient import parse, request
|
|
>>> import requests
|
|
>>> response = requests.post("http://localhost:5000/", json=request("ping"))
|
|
>>> parse(response.json())
|
|
Ok(result='pong', id=1)
|
|
```
|
|
|
|
Full documentation is at [jsonrpcclient.com](https://www.jsonrpcclient.com/).
|
|
|
|
See also: [jsonrpcserver](https://github.com/explodinglabs/jsonrpcserver)
|
|
|
|
|