JSON RPC 2.0 server library
Project description
Python JSON RPC Server
A Python 3.8+ server implementation of the JSON RPC 2.0 protocol. This library has been pulled out of the Python LSP Server project.
Installation
pip install -U python-lsp-jsonrpc
Examples
The examples directory contains two examples of running language servers over websockets. examples/langserver.py
shows how to run a language server in-memory. examples/langserver_ext.py
shows how to run a subprocess language server, in this case the Python LSP Server.
Start by installing tornado
and python-lsp-server
pip install python-lsp-server[all] tornado
Then running python examples/langserver.py
or python examples/langserver_ext.py
will host a websocket on ws://localhost:3000/python
.
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
python-lsp-jsonrpc-1.1.1.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for python_lsp_jsonrpc-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd7771bd5e23ba2edb17101432c5fd680bbacedb8dddeb472a8250ca8d936d6 |
|
MD5 | 8fca5796ea7be3d5f16a182045dc1564 |
|
BLAKE2b-256 | d3714803437cc06fa10dbe8a90a303e37d1836caf8fe538f9a8fc3bef9e1dc7b |