Skip to main content

JSON RPC 2.0 server library

Project description

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.

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-jsonrpc-server-0.3.3.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

python_jsonrpc_server-0.3.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file python-jsonrpc-server-0.3.3.tar.gz.

File metadata

  • Download URL: python-jsonrpc-server-0.3.3.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.5

File hashes

Hashes for python-jsonrpc-server-0.3.3.tar.gz
Algorithm Hash digest
SHA256 61510d617e4678b656f6bb7f9f1866d3804a6a7cd6968fa11c6db164fca80c4b
MD5 27f154d9cdc9941cd5c3c015ab85260b
BLAKE2b-256 266327cdd3f099653a1ba7a5c159441c14604c0dd486dbb287db1d85b7e60e6f

See more details on using hashes here.

File details

Details for the file python_jsonrpc_server-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_jsonrpc_server-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa39c5f141fd502d8f4c9a72c9308df135fd3156e16bc607114cfaaf2abf09b7
MD5 8164996bd8daab55ac995839fee9869b
BLAKE2b-256 c5d64805d177a487de6fe4a8b4afa73df9121b3a8df5f2c6ed59fb57e7892d25

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