Damn simple JSON-RPC client for Python
What is JSON-RPC
JSON-RPC is a protocor similar to XML-RPC, but simpler and very lightweight. There is no necessary to generate nor parse XML documents by using heavy librariers, and there are no dependencies.
For more information please read JSON-RPC v2.0 specification: http://www.jsonrpc.org/specification
JSON-RPC implementations for Python
There are many implementations of JSON-RPC protocol in Python, mostly servers and clients in one package: http://en.wikipedia.org/wiki/JSON-RPC#Implementations
Why another JSON-package?
Some time ago I was searching small, reliable and simple client (just client!) for calling JSON-RPC services, without many (any) dependencies and without strange layers of wrappers, but with responses simplest as possible.
Finally I've found nothing like that, so I wrote my own.
Example
import jsonrpcproxy as rpc
calculator = rpc.Client('http://example.math.server/')
try:
result = calculator.addNumbers(2,2)
except rpc.HttpError as e:
print(e)
else:
print("2 + 2 = %s" % result)
Goals for the stable release
- automatic tests
- handling connection errors
- documentation
- 100% implementation of the JSON-RPC v2.0 specification (batches)
Future
- Python 3 support
- further simplifications ;)
Issues
Please use Github to report issues: https://github.com/marcinn/jsonrpcproxy/issues
Metadata
Release files for jsonrpcproxy 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jsonrpcproxy-0.5.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsonrpcproxy-0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 kB
Release files / jsonrpcproxy-0.5.tar.gz
| Download URL | jsonrpcproxy-0.5.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fe5b8a2ae04554d73b9ce56c80e3fce96816f3f8a683a0f47d0e374091a30b0
|
|
BLAKE2b-256 checksum How to use checksums |
701dd8c42e03ec066b321cf32d9775b6e27f159836edf50b7d6cee0067f1ad6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / jsonrpcproxy-0.5-py3-none-any.whl
| Download URL | jsonrpcproxy-0.5-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee4ccecceb1cc02a7de349069d385772259fc1a931fb5dbb24375527db26d5a0
|
|
BLAKE2b-256 checksum How to use checksums |
41db49f53c641abfb83dec5f79286068a18eab60ee456723f9df405463afba7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|