djade
A Django template formatter.
Decision gist · record as of 2026-08-14
Yes, if you maintain Django templates and want fast, opinionated formatting aligned with Django's style guide. The tool is actively maintained, has no external dependencies, and integrates cleanly with pre-commit. Install friction is medium due to compiled wheels, but pre-built binaries are available for all major platforms. MIT license and zero known vulnerabilities make it a low-risk addition.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Pre-built wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64, armv7l), and Windows (amd64, arm64); other platforms may require compilation.
- Medium install friction due to platform-specific wheels (compiled Rust binary), but pre-built wheels are available for common architectures.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
last release 2026-02-27 (168 days) · last repo commit 2026-08-04 · 388 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,657 downloads/mo, #11,581 on PyPI
Alternatives
Verify before relying
pip install djade
djade templates/engine.html
# Or with target Django version:
djade --target-version 6.0 templates/engine.html- Whether Djade's syntax upgrade fixers cover all deprecated Django template features or only a subset
- Performance characteristics on very large template files or directories with thousands of templates
- Compatibility with template syntax from Django template engines other than the default
What it is and what it does
Djade is a standalone command-line tool that formats Django template files according to Django's official style guide. It's written in Rust and benchmarked to format 377 templates in 20ms, making it fast enough for pre-commit hooks and bulk formatting workflows. It focuses exclusively on Django template syntax (tags, variables, comments, filters) and does not attempt to format HTML or other host languages, since whitespace can be semantically significant in those contexts.
Beyond formatting, Djade can upgrade template syntax to a target Django version, automatically detecting the version from pyproject.toml if available. It integrates with pre-commit, operates as a command-line tool that rewrites files in place, and supports reading from stdin and writing to stdout. It has no runtime dependencies and requires Python 3.10 or later.
Use it for
- Enforce consistent Django template style across a team by installing as a pre-commit hook that runs on every commit
- Bulk-format an existing Django project's templates to comply with the Django style guide in a single pass
- Upgrade template syntax when migrating to a newer Django version, using the --target-version flag
- Integrate template formatting into CI/CD pipelines using the --check flag to verify compliance without modifying files
- Format individual template files on demand from the command line or as part of custom build scripts
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you maintain Django templates and want fast, opinionated formatting aligned with Django's style guide.
The tool is actively maintained, has no external dependencies, and integrates cleanly with pre-commit. Install friction is medium due to compiled wheels, but pre-built binaries are available for all major platforms. MIT license and zero known vulnerabilities make it a low-risk addition.
Install
djade on PyPI
Before you install
Medium install friction due to platform-specific wheels (compiled Rust binary), but pre-built wheels are available for common architectures. Active maintenance with recent releases; last commit 2026-08-04.
Requires Python 3.10 or later. Pre-built wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64, armv7l), and Windows (amd64, arm64); other platforms may require compilation.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install djade
djade templates/engine.html
# Or with target Django version:
djade --target-version 6.0 templates/engine.html
Verify before relying
- Whether Djade's syntax upgrade fixers cover all deprecated Django template features or only a subset
- Performance characteristics on very large template files or directories with thousands of templates
- Compatibility with template syntax from Django template engines other than the default
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 168 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,657 / month, #11,581 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: djade-1.9.0-py3-none-macosx_10_12_x86_64.whl; djade-1.9.0-py3-none-macosx_11_0_arm64.whl; djade-1.9.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; djade-1.9.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; djade-1.9.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; djade-1.9.0-py3-none-musllinux_1_1_aarch64.whl; djade-1.9.0-py3-none-musllinux_1_1_x86_64.whl; djade-1.9.0-py3-none-win_amd64.whl; djade-1.9.0-py3-none-win_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django template formatter”
- djadeDjade is a command-line formatter for Django template syntax, built…
- djhtmlDjHTML indents Django and Jinja template files containing mixed HTML,…
- djlintdjlint formats and lints HTML templates with embedded template syntax…
Give your agent the search over MCP, or paste the wish link into any chat.
More Markup packages
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.
Install it if you need reliable markdown-to-HTML conversion.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.
Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.
Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.
Install it if you're building tools that touch TOML files and user readability of the source matters.
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
See also django-template-partials · djlint · django-upgrade · djhtml · Django · curlylint · Jinja2 · django-jinja · django-render-block · django-prettyjson