Skip to main content

Language Server Protocol Types implementation for Python

lsprotocol is a Python implementation of object types used in the Language Server Protocol (LSP). This repository contains the code generator and the generated types for LSP.

Overview

LSP is used by editors to communicate with various tools to enables services like code completion, documentation on hover, formatting, code analysis, etc. The intent of this library is to allow you to build on top of the types used by LSP. This repository will be kept up to date with the latest version of LSP as it is updated.

Installation

python -m pip install lsprotocol

Usage

Using LSP types

from lsprotocol import types

position = types.Position(line=10, character=3)

Using built-in type converters

# test.py
import json
from lsprotocol import converters, types

position = types.Position(line=10, character=3)
converter = converters.get_converter()
print(json.dumps(converter.unstructure(position, unstructure_as=types.Position)))

Output:

> python test.py
{"line": 10, "character": 3}

Metadata

Release files for omniblack.lsprotocol 2026.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omniblack.lsprotocol 2026.0.0
File Size Uploaded Provenance Actions
omniblack_lsprotocol-2026.0.0.tar.gz 70.1 kB Without provenance Details for omniblack_lsprotocol-2026.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omniblack.lsprotocol 2026.0.0
File Interpreter ABI Platform Actions
omniblack_lsprotocol-2026.0.0-py3-none-any.whl Python 3 none any Details for omniblack_lsprotocol-2026.0.0-py3-none-any.whl

Total release size: 141.5 kB

Release files / omniblack_lsprotocol-2026.0.0.tar.gz

Download URL omniblack_lsprotocol-2026.0.0.tar.gz
Size 70.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a781c3d50baf8cf490d26953162356d3a8606e3572e747404279bed9b98abaca
BLAKE2b-256 checksum
How to use checksums
f2b4a9d993ed2d28c5bb87e1d72ca0717a54d50b4f57b9f7393871597d2247ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / omniblack_lsprotocol-2026.0.0-py3-none-any.whl

Download URL omniblack_lsprotocol-2026.0.0-py3-none-any.whl
Size 71.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcda0fc701e5bc2d1af2fb6e14ea18753687349eaa5a6701104a02b690864cf2
BLAKE2b-256 checksum
How to use checksums
f0473476e87af4e2b45d5b3a3b426848d52835c8f2eb7430a936ca664f81e87e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for omniblack.lsprotocol 2026.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page