ajsonrpc
Async JSON-RPC 2.0 protocol + server powered by asyncio
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight, dependency-free JSON-RPC 2.0 implementation for asyncio-based applications. The permissive MIT license and zero external dependencies make it low-risk to adopt. However, be aware that the project is abandoned—last release was July 2021 with no recent commits. Install only if you do not require active maintenance or compatibility updates beyond Python 3.9.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5 or later; asyncio event loop must be running for async methods.
- Low install friction with no runtime dependencies.
- Maintenance is stalled—last release was 2021-07-21 and the repository shows no recent activity, though it remains archived=false.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint.
last release 2021-07-21 (1850 days) · last repo commit 2023-07-21 · 22 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,074,646 downloads/mo, #3,317 on PyPI
Alternatives
Verify before relying
pip install ajsonrpc
from ajsonrpc import Dispatcher, Manager
dispatcher = Dispatcher({"sum": lambda a, b: a + b})
manager = Manager(dispatcher)
# For async usage:
await manager.get_response_for_payload('{"jsonrpc": "2.0", "method": "sum", "params": [2, 3], "id": 1}')- Whether the package remains compatible with Python versions beyond 3.9 (classifiers list only up to 3.9).
- Current state of the Tornado, Sanic, and Quart backend integrations mentioned in the description.
- Whether the included async-json-rpc-server CLI tool is actively maintained or functional.
What it is and what it does
ajsonrpc is a lightweight, dependency-free implementation of the JSON-RPC 2.0 protocol built on asyncio. It provides core primitives (request, response, error objects), a dispatcher for mapping method names to callables, and an asynchronous manager that handles request parsing, error generation, and batch execution. The package also includes a minimal asyncio-based server that can expose Python methods directly via runtime introspection, requiring zero framework integration.
The library is designed as a successor to the json-rpc package by the same team, with similar APIs but async-first architecture. It handles both single and batch JSON-RPC requests, supports custom error classes, and offers backend adapters for Tornado, Sanic, and Quart. Because JSON-RPC 2.0 is intentionally simple (single endpoint, no routing), the package can operate as a self-contained server without Django, Flask, or other web frameworks.
Use it for
- Build a standalone JSON-RPC 2.0 API server using only asyncio, with methods exposed via a Python file and the included CLI tool.
- Integrate JSON-RPC 2.0 protocol handling into an existing asyncio application without adding external dependencies.
- Create a dispatcher to route incoming RPC method calls to class methods, functions, or lambda expressions in a type-safe way.
- Handle batch JSON-RPC requests with parallel execution and proper error reporting for each request in the batch.
- Wrap application methods for use with Tornado, Sanic, or Quart backends using the provided adapter layer.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight, dependency-free JSON-RPC 2.0 implementation for asyncio-based applications.
The permissive MIT license and zero external dependencies make it low-risk to adopt. However, be aware that the project is abandoned—last release was July 2021 with no recent commits. Install only if you do not require active maintenance or compatibility updates beyond Python 3.9.
Install
ajsonrpc on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is stalled—last release was 2021-07-21 and the repository shows no recent activity, though it remains archived=false. Suitable for stable, self-contained use cases where no active updates are expected.
Requires Python 3.5 or later; asyncio event loop must be running for async methods.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions, making it safe to adopt from a licensing standpoint.
Quickstart
pip install ajsonrpc
from ajsonrpc import Dispatcher, Manager
dispatcher = Dispatcher({"sum": lambda a, b: a + b})
manager = Manager(dispatcher)
# For async usage:
await manager.get_response_for_payload('{"jsonrpc": "2.0", "method": "sum", "params": [2, 3], "id": 1}')
Verify before relying
- Whether the package remains compatible with Python versions beyond 3.9 (classifiers list only up to 3.9).
- Current state of the Tornado, Sanic, and Quart backend integrations mentioned in the description.
- Whether the included async-json-rpc-server CLI tool is actively maintained or functional.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,850 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,074,646 / month, #3,317 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: ajsonrpc-1.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “json-rpc 2.0 async server”
- ajsonrpcImplements the JSON-RPC 2.0 protocol with an asynchronous request…
- json-rpcImplements JSON-RPC 2.0 and 1.0 protocol specification for parsing…
- jsonrpcclientGenerates JSON-RPC request objects and parses JSON-RPC responses in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also json-rpc · jsonrpcclient · python-bitcoinrpc · python-lsp-jsonrpc · thriftpy2 · nexus-rpc · transmission-rpc · github-copilot-sdk · python-osc · OdooRPC