Skip to main content

django-lsp

django-lsp is a Rust language server focused on Django ORM query completions. It uses Ruff's Python parser to build a static workspace index and follows Django model relations without importing or executing the project.

from .models import Blog

Blog.objects.filter(author__team__name__icontains="Django")

Installation

Install the language server from PyPI with uv:

uv tool install django-lsp

pipx install django-lsp and python -m pip install django-lsp are also supported. Confirm the installed executable is available with:

django-lsp --version

Point an editor's LSP client at the django-lsp command, with no arguments. The server uses standard input and output for LSP communication.

Visual Studio Code

The repository includes a Visual Studio Code extension that runs django-lsp alongside Pylance, Pyright, Ruff, or another general Python language server. It uses a configured executable, one already installed on PATH, or the executable bundled into a platform-specific VSIX. See the extension README for development installation and packaging.

Zed

The repository includes a Zed extension that registers django-lsp alongside a general Python language server. It uses a server already installed on PATH, or downloads the matching executable from the latest GitHub release. See the extension README for development installation while its extension-gallery submission is in progress.

Documentation

Current scope

  • workspace model indexing
  • completion inside filter(...), exclude(...), and get(...)
  • forward, reverse, and recursive relation traversal
  • AUTH_USER_MODEL support
  • models re-exported from package __init__.py modules
  • function-local and dotted import resolution
  • unsaved editor buffer updates

Development

Building from source requires Rust 1.95 or newer.

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo run --bin render-docs -- --check
cargo test --all-targets

The project intentionally does not provide Django runtime introspection, general Python language features, or exhaustive support for dynamic model-loading patterns.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

django_lsp-0.1.3-py3-none-win_amd64.whl (2.8 MB view details)

Uploaded Python 3Windows x86-64

django_lsp-0.1.3-py3-none-manylinux_2_28_x86_64.whl (2.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

django_lsp-0.1.3-py3-none-manylinux_2_28_aarch64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

django_lsp-0.1.3-py3-none-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

django_lsp-0.1.3-py3-none-macosx_10_12_x86_64.whl (2.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file django_lsp-0.1.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: django_lsp-0.1.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_lsp-0.1.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9f6576cf7faeb633f39c28104c4e361b0ad4c94dbdba863cc92b1767e91ab691
MD5 02a61e79c55830e985aabd407e29cf48
BLAKE2b-256 fbcdf095686b44783342755ebf4532060a93b031553e6fb74bbdebb37ec7334d

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.3-py3-none-win_amd64.whl:

Publisher: release.yml on patrick91/django-lsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lsp-0.1.3-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.3-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 053e8b45360fb1890cf51886a37d57de11b7a534d728c6d3ea79599e72d49e18
MD5 bed151a0e4a6ff67b280eb0febda3731
BLAKE2b-256 a76815aeaaaaa4011ed3db50254dc368c26ae9148c0c37d039c798e8473fde84

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.3-py3-none-manylinux_2_28_x86_64.whl:

Publisher: release.yml on patrick91/django-lsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lsp-0.1.3-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.3-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a135f5a9d838848d9934b99b9db6386343dc8a04bad2ea845fa8d918081a4932
MD5 7200ae2fd59786417502a7902db947ac
BLAKE2b-256 5607b6660fe35e11b5e507e32ab7a7e687220e86410cc38928b4a7a687947b1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.3-py3-none-manylinux_2_28_aarch64.whl:

Publisher: release.yml on patrick91/django-lsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lsp-0.1.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03991b029a1fcdbb9ea06ccb77ba6c5a8501d7f506bf3a432bc56aac2072679e
MD5 90abb595b42d2db3adbdcaf5ba350952
BLAKE2b-256 b4fcf64072f3681b5dc2d245d3e2d934ff7689f317bb677fd66c9a1c55a06ce4

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.3-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on patrick91/django-lsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_lsp-0.1.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 73afc8a7a6060cc30b00bf70fe78795356f7e7527114f3845c628dd6d01c1ca4
MD5 8a8c7c2b26f17eac02fd107dad34b570
BLAKE2b-256 cc6f2cc05f0eeff01b1478c9d4dbf2ebe8c7b019eb5fdb0a4d7b3ed8a43ee467

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.3-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on patrick91/django-lsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page