skillfed

jsonrpcclient

Send JSON-RPC requests

jsonrpcclient v4.0.3 139.1K downloads/30d#11,310 on PyPI127
License unclear The MIT License (MIT) Copyright (c) 2015 Beau Barker (beau at explodinglabs.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) AGING released

What it is and what it does

jsonrpcclient is a lightweight Python library for constructing JSON-RPC request objects and parsing JSON-RPC responses according to the protocol specification. It has no runtime dependencies and works by taking method names and parameters, building properly formatted JSON-RPC 2.0 message structures, and then parsing responses back into typed result objects. The library is straightforward: call `request()` to generate a request dict, or `request_json()` for a JSON string; call `parse()` on a response dict or `parse_json()` on a JSON string to get back a result object.

The package is stable and minimal in scope—it does not handle network transport, authentication, or batching logic, leaving those concerns to the caller. It supports Python 3.6 through 3.11 and carries no external dependencies, making it easy to integrate into any project that needs to speak JSON-RPC. However, the project shows aging maintenance signals: the last release was in February 2023 and there have been no recent commits, so it is best suited for projects with stable, long-term JSON-RPC needs rather than those expecting active feature development.

Use it for:

  • Building a client to call methods on a JSON-RPC server (e.g., blockchain nodes, Ethereum providers) by generating properly formatted requests
  • Parsing responses from JSON-RPC endpoints in a type-safe way without manually validating the protocol structure
  • Integrating JSON-RPC protocol support into a larger application without pulling in heavy dependencies or transport layers
  • Testing JSON-RPC server implementations by generating valid request objects and validating response parsing

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates JSON-RPC request objects and parses JSON-RPC responses in Python, handling the protocol structure without external dependencies.

Yes, if you need lightweight JSON-RPC protocol support without external dependencies and can accept aging maintenance. The library is stable and does one thing well, but the lack of recent updates means it is best for projects with stable requirements rather than those expecting active development or rapid protocol evolution.

Install

jsonrpcclient on PyPI

pip

pip install jsonrpcclient

uv

uv add jsonrpcclient

poetry

poetry add jsonrpcclient

Installing jsonrpcclient

Before you install

Low friction install with no runtime dependencies. Maintenance is aging—last release was 2023-02-23 and the repository shows no recent activity, though it remains unarchived and the package supports current Python versions (3.6 through 3.11).

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions; no commercial or proprietary concerns.

Quickstart

pip install jsonrpcclient

from jsonrpcclient import request, parse
req = request("ping")
parsed = parse({"jsonrpc": "2.0", "result": "pong", "id": 1})

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode despite the aging status
  • Performance characteristics or limits when handling large batches of requests or responses
  • Compatibility with JSON-RPC 2.0 specification edge cases or extensions

Package facts

License The MIT License (MIT) Copyright (c) 2015 Beau Barker (beau at explodinglabs.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) (unclear)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance aging — 1,268 days since the last release
Last repo commit
First released
Downloads 139,062/month — #11,310 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: jsonrpcclient-4.0.3-py3-none-any.whl

Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

json-rpc client libraryjson-rpc request generationparse json-rpc responsesjson-rpc protocol pythonrpc client implementationjson-rpc message handling
json-rpcprotocol-handlinglightweight

More Internet packages