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.4-py3-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3Windows x86-64

django_lsp-0.1.4-py3-none-manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

django_lsp-0.1.4-py3-none-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

django_lsp-0.1.4-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.4-py3-none-win_amd64.whl.

File metadata

  • Download URL: django_lsp-0.1.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.9 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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 89aef24e47588c9b0263455e134ec4fde8b36eb9e22f7e58ba9f6b2b330ca269
MD5 8a2f37f80c9cb1860062465866bc18bc
BLAKE2b-256 85d8d93e699224aeb59e869c795c09576518e0837469f96b2a819999df063973

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.4-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.4-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.4-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5c0ff57043af473ea91862af544443924b40e49d42e15c2a6605745a7a1eeb88
MD5 a0e97b5950ad440835a7777462f9e437
BLAKE2b-256 895a91746d99bbbde5bee96efd83456cbe861ec0dd4ae8bf9038c3e54ed63793

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.4-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.4-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.4-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 587096d1d399764ebf6b27ee7c7c4601d0781562e2700b32490d0348bb84e784
MD5 37213c6d1b5afdf5affa92410549aca2
BLAKE2b-256 7a347086cf7931eaa768bafde3df153e938b722bbe4ad3def63eb0bb2e763fa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.4-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.4-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3102cdeed83a3fb0d9aa0ab6446386819d7711c4434d0ba4dc9c280b9f5632f
MD5 d6414ab23d860d99e622faa4ebaf47bb
BLAKE2b-256 b76400dc8e02e0d6c5994f9a4ff54896068a694be81c85bc5054c770c2587860

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.4-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.4-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for django_lsp-0.1.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1b4ca6868e5a9d4acb1a1ad9fd2fc4b4524dce0d879b2dc014518baa527760fb
MD5 0793f8f0411d1946a1640a6446ded3af
BLAKE2b-256 1c182f3586464ac559e418b134ff89fc6068f6e8cba6710bf2b9a7bc97810fd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_lsp-0.1.4-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