zope.tal
Zope Template Application Language (TAL)
What it is and what it does
zope.tal is a template language implementation that defines how dynamic content is injected into page templates via custom XML/HTML attributes and namespaces. It is part of the Zope ecosystem and works alongside zope.tales (which handles expression evaluation) to render templates with dynamic values. The package includes both TAL directives for conditional rendering, repetition, and variable substitution, and METAL macros for template reuse and composition.
The package is used primarily within Zope-based applications and frameworks that rely on Page Templates as their rendering engine. It depends on zope.interface for component architecture and zope.i18nmessageid for internationalization support. The implementation is stable and supports modern Python versions (3.9–3.13) on both CPython and PyPy, though development activity is infrequent.
Use it for:
- Rendering Zope Page Templates with dynamic content injection via TAL directives.
- Building reusable template macros and page composition using METAL.
- Integrating template-based rendering into Zope applications and frameworks.
- Processing XML/HTML templates with conditional logic and variable substitution.
- Localizing template content through i18n integration in Zope-based projects.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
zope.tal implements the Template Attribute Language (TAL) and Macro Expansion for TAL (METAL), enabling dynamic markup injection into Zope Page Templates through custom namespace and attribute directives.
Yes, if you are working within the Zope ecosystem or using Zope Page Templates. The package is stable, supports current Python versions, has no known vulnerabilities, and carries low install friction. No, if you are starting a new project—TAL is a legacy template language and most modern Python web frameworks use Jinja2, Mako, or similar. The unclear license treatment warrants verification before use in proprietary or GPL-licensed projects.
Install
zope-tal on PyPI
pip
pip install zope-taluv
uv add zope-talpoetry
poetry add zope-talInstalling zope.tal
Before you install
Low install friction with three runtime dependencies (setuptools, zope.i18nmessageid, zope.interface). Maintenance status is aging—last release was 336 days ago—but the package remains in production/stable state with recent Python version support (3.9–3.13) and an active repository.
License in practice
Licensed under ZPL-2.1 (Zope Public License), marked as unclear treatment. Users should verify compatibility with their project's license requirements before adopting.
Quickstart
pip install zope.tal
from zope.tal.talesengine import Engine
engine = Engine()
Requires Python 3.9 or later; zope.interface and zope.i18nmessageid must be available at runtime.
Verify before relying
- Whether TAL/METAL directives work with modern template frameworks outside the Zope ecosystem.
- Performance characteristics when processing large or deeply nested templates.
- Specific use cases beyond Zope Page Templates that the package supports.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — setuptools, zope.i18nmessageid, zope.interface |
| Maintenance | aging — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 137,962/month — #11,347 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_tal-6.0-py3-none-any.whl
Keywords: zope, template, xml, tal
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
zope.taleszope.tales provides an expression language for…
unclear · top 15,000 on PyPI
DocumentTemplateDocumentTemplate implements the Document…
unclear · top 15,000 on PyPI
zope.pagetemplatezope.pagetemplate provides a templating system…
unclear · top 15,000 on PyPI
z3c.ptz3c.pt is a fast ZPT (Zope Page Template)…
unclear · top 15,000 on PyPI
xacroXacro is an XML macro language that lets you…
unclear · top 15,000 on PyPI
zope.browserpageProvides ZCML directives (browser:page,…
unclear · top 15,000 on PyPI
zope.viewletzope.viewlet provides a pluggable framework for…
unclear · top 15,000 on PyPI
zope.structuredtextParses and renders Zope structured text (STX),…
unclear · top 15,000 on PyPI
xmacroxmacro is a command-line and Python tool for…
permissive · top 15,000 on PyPI
ChameleonChameleon is an HTML/XML template engine that…
permissive · top 15,000 on PyPI