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.7.tar.gz (8.1 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.7-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kieler_klighd_types-0.0.7.tar.gz
  • Upload date:
  • Size: 8.1 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.7.tar.gz
Algorithm Hash digest
SHA256 25c23abb0f3190b4019ce930e69e7d5289832dc3dfcdfb785cc1a0ab88f484b4
MD5 4eecf9ab79e6cf4d2568ee5ca485c081
BLAKE2b-256 3c7cfa6fa14c979f6798b8eb527ba150516a3cabe615541b9ae6b5a4619dfceb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kieler_klighd_types-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 96fb20286bb56b47e90858b00b5fc9e4512eee44b95e4c48d353cbf3e0071c28
MD5 fb7ae8a4487ca7027c6f991bb57984d8
BLAKE2b-256 8fefc3e1e2c47ff78cc5241376c91f0fd7ba53581f8ef880ee5ec696e902f1d6

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