Registry / web-framework / zope-tales

zope-tales

JSON →
library7.0pypypiunverified

Implementation of the TAL Expression Syntax (TALES) used by Zope Page Templates (ZPT/TAL). Version 7.0 supports Python >=3.9. Released on an as-needed cadence by the Zope Foundation.

pip install zope.tales
INSTALL
IMPORT
SIG · ZOPE-TALES
Z
zope-tales
web-frameworkpythonv7.0
Install
2.2s avg
Import
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v7.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 · 19.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 21MB
22MB installed
● package 22MB
Code
Verified usage

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

getEngine
from zope.tales.engine import getEngine
from zope.tales.engine import getEngine

Basic example: creates a TALES engine, sets a context variable, evaluates a simple expression.

from zope.tales.engine import Engine e = Engine() context = {'name': 'World'} result = e.evaluate('Hello, ${name}!', context) print(result) # outputs: Hello, World!
Debug
Known issues
breakingPython 3.9 minimum in version 7.0; older Python versions are no longer supported.
fix
Upgrade to Python 3.9+ or pin zope.tales to version 6.x.
affects: >=7.0
deprecatedThe 'namespaces' argument in Engine.evaluate() has been deprecated since 6.0 and may be removed.
fix
Use the 'context' argument instead.
affects: >=6.0
gotchaTALES uses a custom expression parser; variable names with dots (e.g., 'request.form') require explicit bracket notation like 'request/ form' or using the 'path:' prefix.
fix
Use slash (/) for path traversal: 'request/form' instead of 'request.form'.
affects: all
Upgrade
Version history
7.0latest on PyPI · released Sep 12, 2025
Audit
Dependencies
zope.interfacerequiredCore dependency for interface definitions
zope.proxyrequiredUsed for proxy support in path expressions
ZopeoptionalFull Zope application server (not required for standalone use)
Agent activity
48 hits · last 30 days
node
38
Amazon
1
OpenAI (training)
1
Resources
zope-tales — pip install zope-tales · libregistry