Registry / web-framework / zope.browserpage

zope.browserpage

JSON →
library6.0pypypiunverified

Provides ZCML directives for configuring browser views and pages in Zope applications. Current version 6.0, requires Python >=3.9. Released under the Zope Foundation, maintained as part of the Zope Toolkit.

pip install zope.browserpage
INSTALL
IMPORT
SIG · ZOPE.BROWSERPAGE
Z
zope.browserpage
web-frameworkpythonv6.0
Install
4.5s avg
Import
Disk
39MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.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 · 36.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.5s · import 0.000s · 37MB
39MB installed
● package 39MB
Code
Verified usage

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

BrowserPage
from zope.browserpage import BrowserPage
from zope.browserpage.metaconfigure import BrowserPage

Simple example of using BrowserPage directly.

import zope.browserpage from zope.browserpage import BrowserPage class MyPage(BrowserPage): def render(self): return b"<html><body>Hello</body></html>" # Assuming you have a request object # page = MyPage(context, request) # print(page.render())
Debug
Known issues
breakingzope.browserpage 6.0 dropped Python 2 support and requires Python >=3.9. Ensure your environment meets these requirements.
fix
Upgrade Python to 3.9 or later.
affects: 6.0+
gotchaBrowserPage.render() must return bytes, not str. Returning a string will cause a TypeError.
fix
Ensure the render method returns bytes (e.g., b"content" or "content".encode()).
affects: all
deprecatedZCML-based configuration is the traditional approach, but many Zope projects are moving to Grok or direct configuration. New projects should consider alternatives.
fix
Use zope.browserpage directives in ZCML or consider using zope.browserresource for resources.
affects: 6.0
Upgrade
Version history
6.0latest on PyPI · released Sep 12, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
zope.browserpage — pip install zope.browserpage · libregistry