Skip to main content

craft-ls

GitHub Actions Workflow Status

Get on
PyPI - Version FlakeHub Snap - Version VSCode Marketplace

craft-ls is a Language Server Protocol implementation for *craft1 tools.

craft-ls enables editors that support the LSP to get quality of life improvements while working on *craft configuration files.

Features

Feature Snapcraft Rockcraft Charmcraft1
Diagnostics ✅ ✅ ✅
Documentation on hover ✅ ✅ ✅
Symbols ✅ ✅ ✅
Autocompletion ✅ ✅ ✅

https://github.com/user-attachments/assets/e4b831b5-dcac-4efd-aabb-d3040899b52b

Usage

Installation

Using the snap

sudo snap install craft-ls --edge

Using a Nix flake

nix run github:Batalex/craft-ls

Using a Python environment

Using uv

uv tool install craft-ls

Using pipx

pipx install craft-ls

Setup

Helix

# languages.toml
[[language]]
name = "yaml"
language-servers = ["craft-ls"]

[language-server.craft-ls]
command = "craft-ls"

Visual Studio Code

The Visual Studio Code extension can be installed right from the editor. It requires a local craft-ls installation (see previous section). If not automatically picked, you may configure it using the following key:

{
  "craft-ls.serverPath": "/home/user/.local/bin/craft-ls"
}

Neovim

Add the following to your Neovim configuration (e.g., ~/.config/nvim/init.lua or a plugin file):

vim.lsp.config("craft_ls", {
  cmd = { "craft-ls" },
  filetypes = { "yaml" },
  root_markers = {
    "snapcraft.yaml",
    "rockcraft.yaml",
    "charmcraft.yaml",
    "snap",
    ".git",
  },
})
vim.lsp.enable("craft_ls")
  1. snapcraft, rockcraft and partial support for charmcraft (all-in-one charmcraft.yaml only) ↩ ↩2

Metadata

Release files for craft-ls 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for craft-ls 0.5.2
File Size Uploaded Provenance Actions
craft_ls-0.5.2.tar.gz 89.3 kB With provenance Details for craft_ls-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for craft-ls 0.5.2
File Interpreter ABI Platform Actions
craft_ls-0.5.2-py3-none-any.whl Python 3 none any Details for craft_ls-0.5.2-py3-none-any.whl

Total release size: 138.8 kB

Release files / craft_ls-0.5.2.tar.gz

Download URL craft_ls-0.5.2.tar.gz
Size 89.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8d30e83ffb54b3e71b902e12768384ad907af548987e54f8bb034df5e0841f0
BLAKE2b-256 checksum
How to use checksums
b225554abf92066f4a8e57946c7aa05016f1f0948b336b521570e8a99b24ed93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / craft_ls-0.5.2-py3-none-any.whl

Download URL craft_ls-0.5.2-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db5e30f98097d1ae0f112dd1e7bfc870b591cf89b2c492ffc9472e7fbbc4e347
BLAKE2b-256 checksum
How to use checksums
850c8ed704663f10c8eb630a93f0185cc23f75ad0c9eb89b1e5b8f144972c439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for craft-ls 0.5.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for craft_ls-0.5.2.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 Nov 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page