pygls (pronounced like “pie glass”) is a generic implementation of the Language Server Protocol written in the Python programming language. It allows you to write your own language server in just a few lines of code.
TCP/IP and STDIO communication
runs in asyncio event loop
register LSP features and custom commands as:
asynchronous functions (coroutines)
functions that will be executed in separate thread
in-memory workspace with full and incremental document updates
good test coverage
pygls works with Python 3.7.16+.
- Getting Started
- User Guide
- Migrating to v1.0
- API Reference