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.

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 hashes
Filename, size kieli-1.2.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page