zope.ptresource
Page template resource plugin for zope.browserresource
What it is and what it does
zope.ptresource is a plugin that wraps static resources (files with .pt, .zpt, or .html extensions) and processes them through the Zope Page Templates engine before serving them to clients. It integrates into the Zope Toolkit's resource and security infrastructure, allowing template-based resources to be registered and served as part of a web application.
The package is tightly coupled to the broader Zope Toolkit ecosystem—it depends on setuptools, zope.browserresource, zope.interface, zope.pagetemplate, zope.publisher, and zope.security—and is maintained primarily for use within that framework. It is not designed to be a standalone templating solution; it is a specialized resource handler for Zope-based web applications.
Use it for:
- Serve .pt or .zpt template files as HTTP resources in a Zope-based web application
- Register dynamic HTML resources that are processed through Zope Page Templates before delivery
- Build resource factories for template-driven content within a Zope Toolkit project
- Integrate template rendering into Zope's security and publisher infrastructure
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a resource class that processes Zope Page Templates and returns the rendered output, registered for .pt, .zpt, and .html file extensions.
Yes, if you are building or maintaining a Zope Toolkit application and need template-based resource serving. No, if you are looking for a standalone template engine or resource handler outside the Zope ecosystem. The package is actively maintained but tightly coupled to Zope; it is not reusable in isolation.
Install
zope-ptresource on PyPI
pip
pip install zope-ptresourceuv
uv add zope-ptresourcepoetry
poetry add zope-ptresourceInstalling zope.ptresource
Before you install
Low friction install with a wheel distribution. Maintenance status is aging—last release was 336 days ago—but the package remains active and supports current Python versions (3.9–3.13).
License in practice
Licensed under ZPL-2.1, which is OSI-approved. License treatment is marked unclear in the fact sheet, so verify compatibility with your project's licensing requirements before use.
Quickstart
pip install zope.ptresource
from zope.ptresource import PageTemplateResource
Requires Python 3.9 or later and integration within a Zope Toolkit application; not usable as a standalone library.
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license or distribution model
- Real-world reusability outside the full Zope Toolkit ecosystem, given the package's own note about tight coupling
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — setuptools, zope.browserresource, zope.interface, zope.pagetemplate, zope.publisher, zope.security |
| Maintenance | aging — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 128,418/month — #11,708 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_ptresource-6.0-py3-none-any.whl
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.browserresourceRegisters and serves static browser resources…
unclear · top 15,000 on PyPI
zope.globalrequestProvides a function to retrieve the currently…
unclear · top 15,000 on PyPI
z3c.ptz3c.pt is a fast ZPT (Zope Page Template)…
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.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.browserProvides a set of standard interfaces for…
unclear · top 15,000 on PyPI
zope.browsermenuProvides browser menu implementation and ZCML…
unclear · top 15,000 on PyPI
zope.pagetemplatezope.pagetemplate provides a templating system…
unclear · top 15,000 on PyPI
zope.traversingResolves object paths by traversing an object…
unclear · top 15,000 on PyPI