🐉 hydra-yaml-lsp
hydra-yaml-lsp is a Language Server Protocol implementation for Hydra YAML configuration files, providing rich language features like code completion, syntax validation, and semantic highlighting to enhance the development experience with Hydra configuration files.
✨ Features
- 💡 Intelligent code completion for Hydra special keys (
_target_,_args_, etc.) - 🔍 Path completion for Python import paths in
_target_values - 🛠️ Argument completion for callable targets
- 🎨 Semantic token highlighting for special keys, target values, and interpolations
- ⚠️ YAML syntax validation and diagnostics
- 🔄 Support for Hydra interpolations (
${...}syntax) - 🔌 Easy integration with editor extensions (primary integration with VS Code)
📦 Installation
# Install with pip
pip install hydra-yaml-lsp
# For development setup
git clone https://github.com/your-repo/python-hydra-yaml.git
cd python-hydra-yaml/hydra-yaml-lsp
make venv # Sets up virtual environment with all dependencies
🧰 Requirements
- Python 3.12+
📝 Usage
Standalone Server
python -m hydra_yaml_lsp
Using with VS Code Extension
The primary use case is through the VS Code extension:
- Install the
python-hydra-yamlextension in VS Code - Configure the extension to point to your Hydra configuration directory
- Open any YAML file in that directory to activate the language features
🔧 Development
# Clone and setup development environment
git clone https://github.com/your-repo/python-hydra-yaml.git
cd python-hydra-yaml/hydra-yaml-lsp
# Install dependencies and set up virtual environment
make venv
# Run all tests
make test
# Run type checking
make type
# Run all checks (tests and type checking)
make run
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for hydra-yaml-lsp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hydra_yaml_lsp-0.1.1.tar.gz | 46.1 kB | With provenance | Details for hydra_yaml_lsp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hydra_yaml_lsp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for hydra_yaml_lsp-0.1.1-py3-none-any.whl |
Total release size: 77.6 kB
Release files / hydra_yaml_lsp-0.1.1.tar.gz
| Download URL | hydra_yaml_lsp-0.1.1.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fe35893b1753e798eff1d46463a0dce14301ec41be87f328f48e37f63d3540d
|
|
BLAKE2b-256 checksum How to use checksums |
66d8b012a6d2827f677e71cfd27a74f89d66d11c4b7ed7a9becc80c8573efa7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2025.
Transparency logRelease files / hydra_yaml_lsp-0.1.1-py3-none-any.whl
| Download URL | hydra_yaml_lsp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74e221b79a4ada8819f30ca7ffb3ec2a8f65d930443f634b5bfcfb3743dcb261
|
|
BLAKE2b-256 checksum How to use checksums |
ba511e23ba33b8d562221ff8b87ffab3dd4fb590c583db247326bd7e80a70deb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2025.
Transparency logSecurity for hydra-yaml-lsp 0.1.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hydra_yaml_lsp-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2025.
Transparency logA 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.