An open API service indexing awesome lists of open source software.

https://github.com/explodinglabs/jsonrpcserver

Process incoming JSON-RPC requests in Python
https://github.com/explodinglabs/jsonrpcserver

api json-rpc python

Last synced: about 1 month ago
JSON representation

Process incoming JSON-RPC requests in Python

Awesome Lists containing this project

README

          


PyPI
Code Quality
Coverage Status
Downloads
License


Jsonrpcserver Logo


Process incoming JSON-RPC requests in Python


Documentation |
Developer Wiki

https://github.com/user-attachments/assets/94fb4f04-a5f1-41ca-84dd-7e18b87990e0

## 🚀 Installation

```sh
pip install jsonrpcserver
```

## ⚒️ Usage

```python
from jsonrpcserver import dispatch, method, Success

@method
def ping():
return Success("pong")

response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
# => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
```

## 📚 Documentation

👉 Full documentation is at [explodinglabs.com/jsonrpcserver/](https://explodinglabs.com/jsonrpcserver/).

👉 See the [Wiki](https://github.com/explodinglabs/jsonrpcserver/wiki) for community-editable usage examples in various frameworks, libraries, and transport protocols.

## ➡️ See Also

- [jsonrpcclient](https://github.com/explodinglabs/jsonrpcclient) – Create JSON-RPC requests and parse responses in Python