Damn simple JSON-RPC client
Project description
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
Project details
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 jsonrpcproxy-0.5.tar.gz.
File metadata
- Download URL: jsonrpcproxy-0.5.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fe5b8a2ae04554d73b9ce56c80e3fce96816f3f8a683a0f47d0e374091a30b0
|
|
| MD5 |
7471896cc3b1af74a72c535ee87f188f
|
|
| BLAKE2b-256 |
701dd8c42e03ec066b321cf32d9775b6e27f159836edf50b7d6cee0067f1ad6a
|
File details
Details for the file jsonrpcproxy-0.5-py3-none-any.whl.
File metadata
- Download URL: jsonrpcproxy-0.5-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee4ccecceb1cc02a7de349069d385772259fc1a931fb5dbb24375527db26d5a0
|
|
| MD5 |
8bbf752485485efd88522a73b495a5b0
|
|
| BLAKE2b-256 |
41db49f53c641abfb83dec5f79286068a18eab60ee456723f9df405463afba7c
|