Skip to main content

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.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_lsp_jsonrpc-1.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file python-lsp-jsonrpc-1.1.0.tar.gz.

File metadata

  • Download URL: python-lsp-jsonrpc-1.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for python-lsp-jsonrpc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 93a29ef906e4f370f4811f6c7ebd1e8b3e7687ab0dfe81716c696db20bff8043
MD5 220d5e1373ab9008b0515c609043c93b
BLAKE2b-256 cd71b5e98d6b2b76e3cf0cba9e5f5298eed44008f7651ff93bdf97b5a3584eea

See more details on using hashes here.

File details

Details for the file python_lsp_jsonrpc-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_lsp_jsonrpc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28d831fac282ba25ffdeb7737549a75c03a827d049589c5e3e16f42b664bc7ab
MD5 4194cabf4489d3cb937f3170ce9406d1
BLAKE2b-256 fa31d4a39670369fc67d3c3f153c0799bf26575740f8b38b81403f6d849bef92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page