Skip to main content

Types for creating language servers that can speak with klighd clients.

Project description

KLighD Python Types

This project holds automatically generated types that can be used to implement language servers that can speak the language server protocol variant understood by klighd. A very simple example of a python language server using this library is the plyghd-ls-demonstrator

Getting Started

Setup a virtual environment and install the required packages.

python -m venv ls-env
source ls-env/bin/activate
pip install -r requirements.txt

Generating the KGraph data structure from schema

The schema is defined in klighd-vscode.

The generated types are committed in this repository to be published as a python package. If the schemas are updated they can be rebuilt using the rebuild_types.sh build script. For this to work the initial setup under getting started has to have been done.

Releasing Python package

Automatic Build and Release with Github Workflow

To publish a new release, when klighd has made modifications to the schema for example, use the rebuild-and-publish workflow. Select the type of release (major/minor/patch) and run the workflow. It will automatically handle everything.

Manual Release Process

Update the version number using hatch.

hatch version major/minor/patch

Build the distribution files with Hatchling.

python3 -m build

Upload the package to PyPI with twine.

python -m twine upload --repository pypi dist/*

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

kieler_klighd_types-0.0.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kieler_klighd_types-0.0.6-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file kieler_klighd_types-0.0.6.tar.gz.

File metadata

  • Download URL: kieler_klighd_types-0.0.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for kieler_klighd_types-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1cc2e0aa997c14a3146e942ae5c765415d23a6db3b4706a34d95ec16a48704d0
MD5 132c734f80e10cf03838cce1f499dbf8
BLAKE2b-256 a54ec8049a7007835166b9fe18ced959588fbaa7f0b19caf2df4d87741f9cc82

See more details on using hashes here.

File details

Details for the file kieler_klighd_types-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for kieler_klighd_types-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 97a7f17b3c78434ee5f2df610be0b1f58dd04b8f532ee49616f35b6092569aec
MD5 0e67d61f9580975d392a6b0f273fa336
BLAKE2b-256 1437198d945aa935e59ef99d2a1fe2227d8747414cc6b045ba63e602b5f25594

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page