Skip to main content

jsonrpc-base: a compact JSON-RPC client library interface supporting multiple backends

https://github.com/emlove/jsonrpc-base/actions/workflows/main.yml/badge.svg https://coveralls.io/repos/emlove/jsonrpc-base/badge.svg

This is a compact and simple JSON-RPC client implementation interface python code. This code is forked from https://github.com/gciotta/jsonrpc-requests

Main Features

  • Supports nested namespaces (eg. app.users.getUsers())

  • 100% test coverage

Usage

See jsonrpc-async and jsonrpc-websocket for example implementations.

Tests

Install the Python tox package and run tox, it’ll test this package with various versions of Python.

Changelog

2.3.0 (2026-11-30)

  • Show the text of the reason in a transport error (#10) @olympia

  • Raise ProtocolError for an error member that is not an object (#11) @olympia

2.2.0 (2023-12-11)

2.1.1 (2022-05-03)

  • Unpin test dependencies

2.1.0 (2021-05-03)

  • Use uuid4 for request IDs

2.0.0 (2021-03-16)

  • BREAKING CHANGE: Allow single mapping as a positional parameter. Previously, when calling with a single dict as a parameter (example: server.foo({'bar': 0})), the mapping was used as the JSON-RPC keyword parameters. This made it impossible to send a mapping as the first and only positional parameter. If you depended on the old behavior, you can recreate it by spreading the mapping as your method’s kwargs. (example: server.foo(**{'bar': 0}))

1.1.0 (2020-08-24)

  • Support for async server request handlers

1.0.3 (2019-11-12)

1.0.2 (2018-08-23)

  • Improved support for JSON-RPC v1 servers. (#2) @tdivis

1.0.1 (2018-07-06)

  • Falsey values are no longer treated as None for message IDs, or request parameters.

Credits

@gciotta for creating the base project jsonrpc-requests.

@mbroadst for providing full support for nested method calls, JSON-RPC RFC compliance and other improvements.

@vaab for providing api and tests improvements, better RFC compliance.

Metadata

Release files for jsonrpc-base 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonrpc-base 2.3.0
File Size Uploaded Provenance Actions
jsonrpc_base-2.3.0.tar.gz 6.2 kB Without provenance Details for jsonrpc_base-2.3.0.tar.gz

Release files / jsonrpc_base-2.3.0.tar.gz

Download URL jsonrpc_base-2.3.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fab7504c36e45d7fbee6026ad86f13bdb0e34929d1aa255370973e23d511c5e6
BLAKE2b-256 checksum
How to use checksums
b75d1b1b71f823542db19ac7d664a4fd7fe1e75aa4c959054158554986b2d7dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for jsonrpc-base 2.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page