Skip to main content
https://circleci.com/gh/palantir/python-jsonrpc-server/tree/develop.svg?style=shield https://ci.appveyor.com/api/projects/status/r0jlmvkqwneieeh6/branch/develop?svg=true https://img.shields.io/github/license/palantir/python-jsonrpc-server.svg

A Python 2.7 and 3.4+ server implementation of the JSON RPC 2.0 protocol. This library has been pulled out of the Python Language Server project.

Asynchronous request handling is supported using Python 3’s concurrent.futures module and the Python 2 concurrent.futures backport.

Installation

pip install -U python-jsonrpc-server

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 Language Server.

Start by installing tornado and python-language-server

pip install python-language-server[all] tornado

Then running python examples/langserver.py or python examples/langserver_ext.py will host a websocket on ws://localhost:3000/python.

To setup a client, you can use the examples from Monaco Language Client.

Development

To run the test suite:

pip install .[test] && tox

License

This project is made available under the MIT License.

Metadata

Release files for python-jsonrpc-server 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-jsonrpc-server 0.4.0
File Size Uploaded
python-jsonrpc-server-0.4.0.tar.gz 26.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-jsonrpc-server 0.4.0
File Interpreter ABI Platform
python_jsonrpc_server-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / python-jsonrpc-server-0.4.0.tar.gz

Download URL python-jsonrpc-server-0.4.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595
BLAKE2b-256 checksum
How to use checksums
817dc4c4102b94ef2e090d94fc02625653d3d3a0306e53ef24bcb6e9496bfc1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.5

Release files / python_jsonrpc_server-0.4.0-py3-none-any.whl

Download URL python_jsonrpc_server-0.4.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5a908ff182e620aac07db5f57887eeb0afe33993008f57dc1b85b594cea250c
BLAKE2b-256 checksum
How to use checksums
f94cfa4be41bfc1aa933fe9f9990472dfbbe14527b8864c8a722df0799258966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.5

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page