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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kieler_klighd_types-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a2c6677c1248a56bae23741f3fbe02c4dd8a6ac6d8ae09f461e859cd8e09ab65
MD5 5a10fe68fe4c956df4671a9b41a6c529
BLAKE2b-256 92bb1f381fdc1cd4eb90fd40805a72cc36d4315b0c1b323d07db12f8cda0211b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kieler_klighd_types-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad544bb1e183d324ddfa7d6bd561d8246da8bdcdf48c652e2f43104a2d0abaf5
MD5 73a53f481a3047e0ded7d6edc3c41873
BLAKE2b-256 2086aa7d69d123d75843e9903aebb7987e47c0d39af46ea507731190d0fc155a

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