Skip to content

explodinglabs/jsonrpcserver

Repository files navigation

PyPICode QualityCoverage StatusDownloadsLicense

Jsonrpcserver Logo

Process incoming JSON-RPC requests in Python

Documentation | Developer Wiki

jsonrpcserver.mp4

🚀 Installation

pip install jsonrpcserver

⚒️ Usage

fromjsonrpcserverimportdispatch, method, Success@methoddefping(): returnSuccess("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/.

👉 See the Wiki for community-editable usage examples in various frameworks, libraries, and transport protocols.

➡️ See Also

  • jsonrpcclient – Create JSON-RPC requests and parse responses in Python

About

Process incoming JSON-RPC requests in Python

Topics

Resources

License

Stars

Watchers

Forks

Contributors 19

Languages