Install & Compatibility
Where this runs
tested against v0.0.15 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 38.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 39MB
37MB installed
● package 37MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LanguageServer
✓ from multilspy import LanguageServer
✗ from multilspy import Multilspy
SyncLanguageServer
✓ from multilspy import SyncLanguageServer
Types
✓ from multilspy import Types
Basic usage: start a language server, open a file, request completions, then stop.
import os
from multilspy import Multilspy
# Initialize multilspy with a language server (Python in this case)
lsp = Multilspy(os.environ.get('PYTHON_LSP', 'pylsp'))
# Start the language server
lsp.start()
# Open a Python file
with open('example.py', 'w') as f:
f.write('import os\n\nprint(os.getcwd())')
lsp.open_document('example.py')
# Get completions
completions = lsp.request_completions('example.py', line=1, character=0)
print(completions)
lsp.close_document('example.py')
lsp.stop()
Upgrade
Version history
0.0.15latest on PyPI · released Apr 3, 2025
Audit
Dependencies
psutilrequiredProcess termination handling on all platforms