An extension for Xed-Editor that provides full Python language support using the Language Server Protocol (LSP). It is powered by ty, Astral's extremely fast, Rust-based Python type checker and language server.
- Blazing Fast Performance: Powered by the Rust-written type checker (
ty) ensuring instant feedback and low latency on Android. - Diagnostics: Real-time syntax and type checking diagnostics.
- Code Completion: Context-aware autocompletes as you type.
- Navigation:
- Go to Definition
- Go to Declaration
- Go to Type Definition
- Find References
- Hover Info & Inlay Hints: Rich tooltips showing variable types, function signatures, and documentation.
- Pre-compiled Binaries: Includes architecture-specific binaries for Android (
arm64-v8a,armeabi-v7a,x86_64), removing the need for manual configuration or terminal setup.
Important
- Xed-Editor Version: Supported on Xed-Editor versions between code
87and95. - Supported Architectures: Android devices with
arm64-v8a,armeabi-v7a, orx86_64CPU architectures. - Android Version: Requires Android 8.0 (API 26) or higher.
To build the extension package from source:
- JDK 21 or newer.
- Android SDK configured (via environment variable
ANDROID_HOMEor Android Studio).
To build the extension in debug mode (recommended for testing):
./compileDebugTo build in release mode (for optimization and packaging):
./compileReleaseOnce the build script finishes successfully, the final extension archive will be output to:
output/Python LSP.zip
- Copy the generated
Python LSP.zipfile to your Android device. - Open Xed-Editor (Karbon).
- Navigate to Settings > Extensions.
- Import/install the
Python LSP.zipfile. - Restart the editor if prompted. Open any
.pyfile to start writing with autocompletion, type diagnostics, and hover information!
app/- The main Kotlin application wrapper for Android.src/main/java/com/rk/xededitor/python/- Contains the extension entrypoint (Main.kt) and server adapter (PythonServer.kt).
bin/- Pre-compiled architecture-specific binaries of thetyLSP server (arm64-v8a,armeabi-v7a,x86_64).schema/- JSON schema used for validating extension metadata (schema.json).manifest.json- Metadata config file containing versioning, ID, author, and description (manifest.json).
- Repository: github.com/Xed-Editor/Python-LSP
- Author: Xed-Editor