$npx skillfedfor your agent

djlint

HTML template linter and formatter (Django, Jinja, Twig, Nunjucks, Handlebars, Liquid, Go templates)

Worth itPyPI Quality AssuranceReleased Aug 20263.6M downloads / moGPL-3.0-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — djlint-1.44.2-py3-none-any.whl
v1.44.2 · released 2026-08-08 · Python >=3.10 · 9 runtime deps: click, cssbeautifier, jsbeautifier, json5, pathspec, pyyaml, regex, tomli

Yes. djlint is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem—template formatting and linting that generic HTML tools cannot handle. The GPL-3.0-or-later license is copyleft, so verify compatibility with your project's license before bundling; development and CI/CD use are unaffected. Recommended for any project using Django, Jinja, or other templated HTML.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction: pure Python wheel with 9 runtime dependencies (click, cssbeautifier, jsbeautifier, json5, pathspec, pyyaml, regex, tomli, typing-extensions).
  • Active maintenance—last release 6 days ago, repository updated 2026-08-14, 944 stars.

License · maintenance · safety

GPL-3.0-or-later (copyleft) — GPL-3.0-or-later (copyleft): you may use djlint freely, but any derivative work or distribution must also be GPL-3.0-or-later. Acceptable for development and CI/CD; review your project's license compatibility before bundling.

last release 2026-08-08 (6 days) · last repo commit 2026-08-14 · 944 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,623,732 downloads/mo, #2,553 on PyPI

Verify before relying

pip install djlint

djlint . --reformat --single-attribute-per-line --profile=django
djlint . --lint
  • Performance characteristics on large template codebases or real-world project sizes.
  • Completeness of linting rules for each template engine profile (Django, Jinja, Twig, etc.).
  • Whether the tool integrates with popular CI/CD platforms beyond pre-commit.
Same gist for agents: .md · .json

What it is and what it does

djlint is a command-line formatter and linter designed to fill a gap: while every programming language has formatters and linters, HTML templates are typically left unformatted because generic HTML tools cannot parse template syntax like `{% %}` and `{{ }}`. djlint reads both HTML and template syntax together, with built-in profiles for Django, Jinja, Twig, Nunjucks, Handlebars, Liquid, Go templates, and others.

It reformats templates by fixing indentation, normalizing tag case, splitting long tags into one attribute per line, and collapsing stray blank lines. Its linter catches structural issues that formatting alone cannot fix: orphan tags, missing alt attributes, hard-coded URLs, and dozens of other template-specific checks. The tool is available as a CLI, integrates with pre-commit, and has editor plugins for VS Code and other environments.

Use it for

  • Enforce consistent indentation and formatting across Django or Jinja templates in a web project.
  • Catch missing alt attributes, unclosed tags, and other accessibility or structural issues in templates during code review.
  • Reformat a large legacy template codebase to a standard style in one pass.
  • Integrate template linting into CI/CD pipelines via pre-commit hooks to prevent formatting drift.
  • Validate template syntax for multiple template engines (Twig, Nunjucks, Handlebars) in a polyglot project.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

djlint is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem—template formatting and linting that generic HTML tools cannot handle. The GPL-3.0-or-later license is copyleft, so verify compatibility with your project's license before bundling; development and CI/CD use are unaffected. Recommended for any project using Django, Jinja, or other templated HTML.

Install

djlint on PyPI

Before you install

Low friction: pure Python wheel with 9 runtime dependencies (click, cssbeautifier, jsbeautifier, json5, pathspec, pyyaml, regex, tomli, typing-extensions). Active maintenance—last release 6 days ago, repository updated 2026-08-14, 944 stars.

Requires Python 3.10 or later.

License in practice

GPL-3.0-or-later (copyleft): you may use djlint freely, but any derivative work or distribution must also be GPL-3.0-or-later. Acceptable for development and CI/CD; review your project's license compatibility before bundling.

Quickstart

pip install djlint

djlint . --reformat --single-attribute-per-line --profile=django
djlint . --lint

Verify before relying

  • Performance characteristics on large template codebases or real-world project sizes.
  • Completeness of linting rules for each template engine profile (Django, Jinja, Twig, etc.).
  • Whether the tool integrates with popular CI/CD platforms beyond pre-commit.

Package facts

LicenseGPL-3.0-or-later copyleft
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
clickcssbeautifierjsbeautifierjson5pathspecpyyamlregextomlityping-extensions
MaintenanceActively maintained 6 days since the last release
Last repo commit
First released
Downloads3,623,732 / month, #2,553 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Environment :: ConsoleFramework :: DjangoIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Software Development :: Quality AssuranceTopic :: Text Processing :: Markup :: HTMLTyping :: Typed

Evidence: djlint-1.44.2-py3-none-any.whl

Tags

Capabilities
html template formatterdjango template linterjinja template formattertemplate syntax linterhtml indentation fixertemplate engine formattertwig template linter
Topics
template-lintinghtml-formatterdjango-tools
PyPI keywords
askamadjangoformattergo templateshandlebarshelmhtmlhugojinjajinja2linterliquidmustachenunjuckstemplatesteratwig

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 › “html template formatter”

  • djlintdjlint formats and lints HTML templates with embedded template syntax…
  • djhtmlDjHTML indents Django and Jinja template files containing mixed HTML,…
  • pytest-reporter-html1Generates self-contained or modular HTML test reports for pytest,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also curlylint · djade · djhtml · tclint · j2lint · mbake · Plim · python-liquid · liquidpy · Jinja2