Install & Compatibility
Where this runs
tested against v5.1 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 35.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 36MB
38MB installed
● package 38MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
PageTemplate
✓ from z3c.pt import PageTemplate
✗ from z3c.pt import PageTemplate
Compiles a ZPT template string and renders it with a context dictionary.
from z3c.pt import PageTemplate, getEngine
engine = getEngine()
template = engine.compile('<html><body><p tal:content="message"></p></body></html>')
# For a simple render, use the template directly (requires context)
# engine = engine # no context needed for compile, but rendering needs dict
result = template({'message': 'Hello, world!'})
print(result)
Upgrade
Version history
5.1latest on PyPI · released Jun 19, 2025
Audit
Dependencies
No dependency data recorded yet.