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 | Provenance | Actions |
|---|---|---|---|---|
| jsonrpcproxy-0.5.tar.gz | 2.4 kB | Without provenance | Details for jsonrpcproxy-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jsonrpcproxy-0.5-py3-none-any.whl | Python 3 | none | any | Details for jsonrpcproxy-0.5-py3-none-any.whl |
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
|
Security for jsonrpcproxy 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.