56 lines
1.7 KiB
Text
56 lines
1.7 KiB
Text
Metadata-Version: 2.1
|
|
Name: jsonrpcserver
|
|
Version: 5.0.7
|
|
Summary: Process JSON-RPC requests
|
|
Home-page: https://github.com/explodinglabs/jsonrpcserver
|
|
Author: Beau Barker
|
|
Author-email: beau@explodinglabs.com
|
|
License: MIT
|
|
Platform: UNKNOWN
|
|
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
|
|
Requires-Dist: jsonschema (<5)
|
|
Requires-Dist: oslash (<1)
|
|
Provides-Extra: examples
|
|
Requires-Dist: aiohttp ; extra == 'examples'
|
|
Requires-Dist: aiozmq ; extra == 'examples'
|
|
Requires-Dist: flask ; extra == 'examples'
|
|
Requires-Dist: flask-socketio ; extra == 'examples'
|
|
Requires-Dist: gmqtt ; extra == 'examples'
|
|
Requires-Dist: pyzmq ; extra == 'examples'
|
|
Requires-Dist: tornado ; extra == 'examples'
|
|
Requires-Dist: websockets ; extra == 'examples'
|
|
Requires-Dist: werkzeug ; extra == 'examples'
|
|
|
|
<img
|
|
alt="jsonrpcserver"
|
|
style="margin: 0 auto;"
|
|
src="https://github.com/explodinglabs/jsonrpcserver/blob/main/docs/logo.png?raw=true"
|
|
/>
|
|
|
|

|
|

|
|

|
|

|
|
|
|
Process incoming JSON-RPC requests in Python.
|
|
|
|
```python
|
|
from jsonrpcserver import Success, method, serve
|
|
|
|
@method
|
|
def ping():
|
|
return Success("pong")
|
|
|
|
if __name__ == "__main__":
|
|
serve()
|
|
```
|
|
|
|
Full documentation is at [jsonrpcserver.com](https://www.jsonrpcserver.com/).
|
|
|
|
See also: [jsonrpcclient](https://github.com/explodinglabs/jsonrpcclient)
|
|
|
|
|