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
Metadata
Release files for kieli 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kieli-1.2.2.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kieli-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / kieli-1.2.2.tar.gz
| Download URL | kieli-1.2.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ac420b7281d63706d54d46469dec921f7780ee7c164c25b9e5b6db0a0a7c61b
|
|
BLAKE2b-256 checksum How to use checksums |
c263e4cc0395f144975832648f5f5879e3d64c48c0797052bd8e090d7bacf308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.19.1
|
Release files / kieli-1.2.2-py3-none-any.whl
| Download URL | kieli-1.2.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb106acf63421fc3096c3258c99af1ed300bc7c20e616375684cb556b8437258
|
|
BLAKE2b-256 checksum How to use checksums |
b42edef401914393c09cb23e19739424aba37e0a570425cb89fa2949188f75b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.19.1
|