Metadata-Version: 2.4
Name: pyxle-langkit
Version: 0.3.3
Summary: Language tools for Pyxle: LSP server, linter, and editor integrations.
Project-URL: Homepage, https://pyxle.dev
Project-URL: Repository, https://github.com/pyxle-dev/pyxle-langkit
Author-email: Shivam Saini <dev@pyxle.dev>
License: MIT
License-File: LICENSE
Keywords: language-server,linter,lsp,pyxle,vscode
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: jedi<0.20,>=0.19
Requires-Dist: lsprotocol>=2023.0.0
Requires-Dist: pyflakes<3.3,>=3.2
Requires-Dist: pygls<2.0,>=1.3
Requires-Dist: pyxle-framework>=0.1.0
Provides-Extra: dev
Requires-Dist: coverage<8.0,>=7.4; extra == 'dev'
Requires-Dist: pytest-cov<5.0,>=4.1; extra == 'dev'
Requires-Dist: pytest<9.0,>=8.0; extra == 'dev'
Requires-Dist: ruff<0.7,>=0.6; extra == 'dev'
Description-Content-Type: text/markdown

# Pyxle Language Toolkit

Language tools for [Pyxle](https://pyxle.dev) `.pyxl` files — LSP server, linter, and VS Code extension.

## Features

- **Syntax highlighting** via TextMate grammar (Python + JSX sections)
- **Diagnostics** from pyflakes, Babel, and Pyxle-specific rules
- **Completions** via Jedi (Python) + Pyxle component completions (JSX)
- **Hover documentation** for Python symbols and Pyxle decorators/components
- **Go-to-definition** via Jedi with cross-section navigation
- **Document symbols** and **workspace symbols**
- **Formatting** with ruff (Python) and prettier (JSX)
- **Semantic tokens** via AST analysis

## Installation

```bash
pip install pyxle-langkit
```

The VS Code extension is available on the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=pyxle.pyxle-language-tools).

## Architecture

All intelligence lives in the Python LSP server. The VS Code extension is a thin LSP client (~100 LOC).

- **Python analysis**: [Jedi](https://jedi.readthedocs.io/) for completions, definitions, hover
- **JSX analysis**: Pyxle-specific completions + [Babel](https://babeljs.io/) for validation
- **Static analysis**: [pyflakes](https://pypi.org/project/pyflakes/) + Pyxle rules
- **LSP framework**: [pygls](https://pygls.readthedocs.io/)

## License

MIT
