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.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-jsonrpc-server-0.3.2.tar.gz | 25.9 kB | Without provenance | Details for python-jsonrpc-server-0.3.2.tar.gz |
Release files / python-jsonrpc-server-0.3.2.tar.gz
| Download URL | python-jsonrpc-server-0.3.2.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05bcf26eac4c98c96afec266acdf563d8f454e12612da9a3f9aabb66c46daf35
|
|
BLAKE2b-256 checksum How to use checksums |
44188a34b201ea1c556fc17a297c216ae859d5eef664e914cc60d37c8f6f6d1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|
Security for python-jsonrpc-server 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.