skillfed

zope.ptresource

Page template resource plugin for zope.browserresource

zope-ptresource v6.0 128.4K downloads/30d#11,708 on PyPI0
License unclear ZPL-2.1 AGING released

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

uv

uv add zope-ptresource

poetry

poetry add zope-ptresource

Installing 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

Environment :: Web EnvironmentFramework :: Zope :: 3Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseOperating 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

zope page template resourceszpt resource renderingzope browserresource pluginpage template file servingzope template resource factory
zope-toolkittemplate-resources

More WWW/HTTP packages