Async JSON-RPC 2.0 protocol + server powered by asyncio
Project description
Lightweight JSON-RPC 2.0 protocol implementation and asynchronous server powered by asyncio. This library is a successor of json-rpc and written by the same team. It is largely compatible but there are few differences: …
Features:
Full JSON-RPC 2.0 Implementation, request and response classes make sure standard is followed
Asynchronouse response manager and asynio support via low-level Protocol
API server setup in 1 min
Vanilla Python, no dependencies.
Same development team as json-rpc, largely compatible code.
Installing
pip install ajsonrpc
Example server script
pipenv run async-json-rpc-server examples.methods
curl -d '{"jsonrpc": "2.0", "method": "echo", "id": 0}' http://127.0.0.1:8888
curl -d '{"jsonrpc": "2.0", "method": "mul2", "params": [2, 3], "id": 1}' http://127.0.0.1:8888
curl -d '{"jsonrpc": "2.0", "method": "say_after", "params": {"delay": 1, "what": "ajsonrpc!"}, "id": 2}' http://127.0.0.1:8888
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ajsonrpc-0.0.2.tar.gz.
File metadata
- Download URL: ajsonrpc-0.0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8695948b4dabbe077b3317de7a55c7e09eb20d8348a7ee8b7fc0ff4235a2e2cc
|
|
| MD5 |
ecedef978a9ab67309ed177490a3d0b7
|
|
| BLAKE2b-256 |
eb9b092c47e37131b5c07ac2f34f363529fa408b0a4b0737a098235c94bd8496
|
File details
Details for the file ajsonrpc-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ajsonrpc-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bbf61ce67cc8f21eaf680e3328e9438dbf9a34fddaff3b26e01b213262d81ca
|
|
| MD5 |
698aa1705a9f1e80e7296618b826b5d9
|
|
| BLAKE2b-256 |
b1182dad64ac54400aa818292aa5c2d93e917ae42ab99bfb49bcbc4a48572da3
|