--- id: python-lsp-jsonrpc version: "1.1.2" license: MIT license_treatment: permissive maintenance: aging --- # python-lsp-jsonrpc — JSON RPC 2.0 server library License: permissive · Maintenance: aging · Downloads: 1.8M/mo ## What it is and what it does python-lsp-jsonrpc is a server-side implementation of the JSON RPC 2.0 specification extracted from the Python LSP Server project. It handles the protocol mechanics—parsing requests, dispatching to handlers, and sending responses—but does not provide the transport layer itself; you supply that via stdin/stdout, sockets, websockets, or any other I/O mechanism. The package is typically used as a foundation for building language servers, editor integrations, or other RPC-based services in Python. It depends only on ujson for fast JSON parsing and is designed to be lightweight and composable with existing transport frameworks like tornado or asyncio. Use it for: - Building language server implementations that communicate with editors over JSON RPC 2.0 - Creating RPC-based microservices or inter-process communication layers in Python - Wrapping existing Python tools to expose them via the JSON RPC 2.0 protocol over websockets or stdio - Handling bidirectional request-response and notification patterns in editor plugins or IDE extensions ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implements a JSON RPC 2.0 server for Python 3.8+, enabling request-response and notification handling over any transport layer. Yes, if you need a JSON RPC 2.0 server implementation. The package is stable, permissively licensed, and has low install friction. However, note that maintenance is aging (last release 2023-09-23 with no recent commits), so expect no active development or rapid bug fixes. Suitable for production use in stable, low-change scenarios; less suitable if you need ongoing support or active feature development. ## Install pip install python-lsp-jsonrpc uv add python-lsp-jsonrpc poetry add python-lsp-jsonrpc ## Installing python-lsp-jsonrpc Before you install: Low install friction with a single lightweight dependency (ujson). Maintenance status is aging—last release was 2023-09-23 and the repository shows no recent commits, though it remains unarchived and stable. License in practice: MIT license permits unrestricted use, modification, and distribution in both open and proprietary projects with minimal obligations. Quickstart: pip install python-lsp-jsonrpc from python_lsp_jsonrpc import JSONRPC2Connection, ReadWriter import sys reader_writer = ReadWriter(sys.stdin.buffer, sys.stdout.buffer) conn = JSONRPC2Connection(reader_writer) conn.start() Requires Python 3.8 or later; transport layer (stdin/stdout, sockets, websockets) must be provided by the caller. Verify before relying: - Whether the package is actively maintained or in maintenance-only mode despite the aging status - Performance characteristics when handling high-volume RPC calls or large payloads ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 1.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags json rpc server python, json rpc 2.0 implementation, rpc protocol handler, language server protocol base, jsonrpc request dispatcher, rpc-protocol, language-server, json-rpc-2.0 [View on SkillFed](https://skillfed.io/packages/python-lsp-jsonrpc) · [View on PyPI](https://pypi.org/project/python-lsp-jsonrpc/)