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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kieli-1.2.2.tar.gz.
File metadata
- Download URL: kieli-1.2.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ac420b7281d63706d54d46469dec921f7780ee7c164c25b9e5b6db0a0a7c61b
|
|
| MD5 |
248e9dec9a8474184e714e2702d579b8
|
|
| BLAKE2b-256 |
c263e4cc0395f144975832648f5f5879e3d64c48c0797052bd8e090d7bacf308
|
File details
Details for the file kieli-1.2.2-py3-none-any.whl.
File metadata
- Download URL: kieli-1.2.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb106acf63421fc3096c3258c99af1ed300bc7c20e616375684cb556b8437258
|
|
| MD5 |
522bd393ff58a83df05186abffbac9a5
|
|
| BLAKE2b-256 |
b42edef401914393c09cb23e19739424aba37e0a570425cb89fa2949188f75b0
|