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.8.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.8-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kieler_klighd_types-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 ef43f56ba3c9f2a451a21ff66c8952e094cf0c085c922073736cab2a0ebd2df0
MD5 e071118f79f510b86777fcec35cfa4f3
BLAKE2b-256 8b7a517dadcc07d588b32d2392735494ec95f49dc38d18f168f47c2b7e71feea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kieler_klighd_types-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 41af6c8878c5ac91b3aaf675d8c14eed53b75adf6d5120ea6ef8ace59cc237d2
MD5 bfce04c4612a38f48a6eb9b299a04465
BLAKE2b-256 036c087eda30766238c8600848f9a5e9e125b8fc0f6f9cc1332283990ac35275

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