Registry / web-framework / djade
library1.9.0pypypiunverified

A Django template formatter that ensures consistent formatting of Django templates. It supports Jinja2-style templates with Django tags and filters, and is designed to be fast and configurable. Current version is 1.9.0, released with regular updates.

pip install djade
INSTALL
IMPORT
SIG · DJADE
D
djade
web-frameworkpythonv1.9.0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.9.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Djade
from djade import Djade
from djade import Djade

Basic usage of djade to format a Django template string.

from djade import Djade import os # Simple usage: format a template string formatter = Djade() template = """{% load static %} <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <h1>Hello</h1> </body> </html>""" formatted = formatter.format(template) print(formatted)
djade --version
Debug
Known issues
gotchadjade only supports Django templates, not Jinja2 templates. Attempting to use it with Jinja2 may produce incorrect results or raise errors.
fix
Use a Jinja2-specific formatter like `djlint` for Jinja2 templates.
affects: all
gotchadjade relies on the `DJANGO_SETTINGS_MODULE` environment variable to be set when processing templates that use template tags from third-party apps. If not set, it may fail to resolve custom template tags.
fix
Set the environment variable or configure settings via `--settings` option if using CLI; in code, set `os.environ['DJANGO_SETTINGS_MODULE']` before using djade.
affects: all
breakingIn version 1.0, the API changed from `djade.format_code()` to `Djade().format()`. Old code will break.
fix
Use `from djade import Djade; formatter = Djade(); formatted = formatter.format(source)` instead of `djade.format_code(source)`.
affects: >=1.0.0
Upgrade
Version history
1.9.0latest on PyPI · released Feb 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
6
Resources
djade — pip install djade · libregistry