skillfed

zope.tal

Zope Template Application Language (TAL)

zope-tal v6.0 138.0K downloads/30d#11,347 on PyPI5
License unclear ZPL-2.1 AGING released

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-tal

uv

uv add zope-tal

poetry

poetry add zope-tal

Installing 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: Zope :: 3Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP

Tags

template attribute languagezope page templatestal macro expansiondynamic template markupzope template enginetal metal macrosxml template processing
zope-ecosystemtemplate-languagelegacy-maintained

More WWW/HTTP packages