Skip to main content

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


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)

Uploaded source

Built Distribution

kieli-1.2.2-py3-none-any.whl (8.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page