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 uv or pipx

uv tool install craft-ls

pipx install craft-ls

Setup

Helix

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

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

VSCode

The VSCode extension can be installed from the marketplace. It requires a Python 3.12 interpreter. If not automatically picked, you may configure it using the following key:

"craft-ls.interpreter": [
  "/usr/bin/python3.12"
]

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")

Roadmap

Project availability:

  • Python package
  • Snap
  • Nix flake
  • VSCode extension

Features:

  • Diagnostics
  • Autocompletion on typing
  • Symbol documentation

Ecosystem:

  • Encourage *craft tools to refine their JSONSchemas even further
  1. snapcraft, rockcraft and partial support for charmcraft (all-in-one charmcraft.yaml only) ↩ ↩2

Metadata

Release files for craft-ls 0.5.1

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.1
File Size Uploaded Provenance Actions
craft_ls-0.5.1.tar.gz 87.6 kB With provenance Details for craft_ls-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 135.6 kB

Release files / craft_ls-0.5.1.tar.gz

Download URL craft_ls-0.5.1.tar.gz
Size 87.6 kB
Tags Source
SHA-256 checksum
How to use checksums
603777e69e4aeb7aff87e847a511e34ceadc8ab59d37d7dabdec84a07e98dce5
BLAKE2b-256 checksum
How to use checksums
56d740cd0433c320812173f2ae9a82367dfcdb02c1cda0f260127916e9554d34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

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

Download URL craft_ls-0.5.1-py3-none-any.whl
Size 48.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
215327bbdc43b7f42af888a199dddc2d33b97e644acc36c4f05f23a66b3e7f2c
BLAKE2b-256 checksum
How to use checksums
3f1d947a8581aab517f96da82cb25c31c325ebf1efaebbe31ca2c8f196d1538b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Security for craft-ls 0.5.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

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

Select from 2 files

Attestation for craft_ls-0.5.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 Oct 9, 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