JSON RPC 2.0 server library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-jsonrpc-server-0.4.0.tar.gz
.
File metadata
- Download URL: python-jsonrpc-server-0.4.0.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c543e541f101ec5b57dc654efc212d2c2e3ea47ff6f54b2e7dcb36ecf20595 |
|
MD5 | 6bf030ac243685dab2df5fa0ab9c7baa |
|
BLAKE2b-256 | 817dc4c4102b94ef2e090d94fc02625653d3d3a0306e53ef24bcb6e9496bfc1e |
File details
Details for the file python_jsonrpc_server-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: python_jsonrpc_server-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a908ff182e620aac07db5f57887eeb0afe33993008f57dc1b85b594cea250c |
|
MD5 | 6a14be60e09878bb4cf5b29d19542a6b |
|
BLAKE2b-256 | f94cfa4be41bfc1aa933fe9f9990472dfbbe14527b8864c8a722df0799258966 |