Minimalistic language server protocol client.
Project description
kieli is a minimalistic language server protocol client.
Dependencies
Python 3.4 or newer and attrs. Many other projects use attrs, so you may already have it installed.
Installation
To install, simply run the following:
$ python3 -m pip install .
Usage
Here`s a simple usage example which just sends an initialize request and then exits.
import sys
import kieli
client = kieli.LSPClient()
@client.response_handler("initialize")
def initialize(request, response):
print("We have initialized!")
print()
print("Request:", request)
print()
print("Response:", response)
sys.exit(0)
client.connect_to_process(sys.executable, "-m", "pyls")
client.request(
"initialize", {"processId": None, "rootUri": None, "capabilities": {}}
)
License
MIT
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
kieli-1.2.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
kieli-1.2.2-py3-none-any.whl
(8.0 kB
view hashes)