Registry / web-framework / pypugjs

pypugjs

JSON →
library6.0.3pypypiunverified

PyPugJS is a Python port of the PugJS (formerly Jade) template engine. It provides a syntax adapter for Django, Jinja2, Mako, and Tornado templates. The current version is 6.0.3, with an active development cadence. Note that v6.0.0 dropped support for Python versions below 3.10.

pip install pypugjs
INSTALL
IMPORT
SIG · PYPUGJS
P
pypugjs
web-frameworkpythonv6.0.3
Install
1.9s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.0.3 · 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 · 19.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

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

PyPugJSTemplate
from pypugjs.ext.django import PyPugJSTemplate
from pypugjs.ext.django import PyPugJSTemplate

Basic Django integration with PyPugJS

from pypugjs.ext.django import PyPugJSTemplate # Use as Django template backend: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': { 'loaders': [ ('django.template.loaders.cached.Loader', [ 'django.template.loaders.filesystem.Loader', ]), ], 'builtins': ['pypugjs.ext.django.templatetags'], }, }, ]
pypugjs --version
Debug
Known issues
breakingv6.0.0 dropped support for Python versions below 3.10. If you are on an older Python version, stay on v5.x.
fix
Upgrade Python to 3.10+ or pin pypugjs to <6.0.0
affects: >=6.0.0
deprecatedThe 'pyjade' package is deprecated in favor of 'pypugjs'. Many older tutorials reference pyjade.
fix
Use pypugjs instead of pyjade
affects: all
gotchaTemplate syntax uses significant indentation; mixing tabs and spaces can cause parse errors.
fix
Use consistent spacing (spaces preferred) in .pug files
affects: all
Upgrade
Version history
6.0.3latest on PyPI · released Apr 30, 2026
Audit
Dependencies
DjangooptionalOptional: for Django template adapter
Jinja2optionalOptional: for Jinja2 adapter
MakooptionalOptional: for Mako adapter
TornadooptionalOptional: for Tornado adapter
Agent activity
9 hits · last 30 days
node
8
Resources
pypugjs — pip install pypugjs · libregistry