Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for kieli, version 1.2.2
Filename, size File type Python version Upload date Hashes
Filename, size kieli-1.2.2-py3-none-any.whl (8.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size kieli-1.2.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

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