--- id: zope-ptresource version: "6.0" license: ZPL-2.1 license_treatment: unclear maintenance: aging --- # zope.ptresource — Page template resource plugin for zope.browserresource License: unclear · Maintenance: aging · Downloads: 128.4K/mo ## 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 above — 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 pip install zope-ptresource uv add zope-ptresource 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_current - Install friction: low - Maintenance: aging - Downloads: 128.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags zope page template resources, zpt resource rendering, zope browserresource plugin, page template file serving, zope template resource factory, zope-toolkit, template-resources [View on SkillFed](https://skillfed.io/packages/zope-ptresource) · [View on PyPI](https://pypi.org/project/zope-ptresource/)