zope.browser
Shared Zope Toolkit browser components
What it is and what it does
zope.browser is a collection of standard interfaces for browser-related components in Zope Toolkit applications. It defines contracts for common web concepts like views, browser views, adding operations, term providers, and system error handlers. The package exists to break circular dependencies in the Zope ecosystem by centralizing these interface definitions in a lightweight, dependency-minimal module.
Developers use it by importing and implementing its interfaces when building Zope-based web applications or components. It is not a runtime framework or middleware—it is purely a contract layer. If you are working within the Zope Toolkit, you will likely import from this package to annotate or check component types; if you are not, it has no direct use.
Use it for:
- Define custom browser views in Zope applications by implementing IView or IBrowserView.
- Build form-like components that handle adding objects to containers using the IAdding interface.
- Implement term providers for choice fields and dropdowns via the ITerms interface.
- Create custom error views for system exceptions by implementing ISystemErrorView.
- Type-check or validate browser components against standard Zope interface contracts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a set of standard interfaces for browser-related components in Zope Toolkit applications, including view, adding, terms, and error-handling abstractions.
Yes, if you are building or maintaining a Zope Toolkit application—it is a stable, lightweight dependency with no security issues. No, if you are not working within Zope; the interfaces are specific to that ecosystem and have no standalone value. The aging maintenance status (336 days since last release) is not a blocker for a stable interface library, but signals this is not an actively evolving project.
Install
zope-browser on PyPI
pip
pip install zope-browseruv
uv add zope-browserpoetry
poetry add zope-browserInstalling zope.browser
Before you install
Low install friction with only two runtime dependencies (setuptools and zope.interface). Maintenance status is aging—last release was 336 days ago—but the package is marked Production/Stable and supports current Python versions (3.9–3.13).
License in practice
Licensed under ZPL-2.1 (Zope Public License), which is OSI-approved. License treatment is marked unclear in the metadata, so you may want to review the actual license terms before use in proprietary or redistributed software.
Quickstart
from zope.browser.interfaces import IView, IBrowserView
# Use these interfaces to define or check browser component contracts
class MyView:
pass
if hasattr(MyView, '__implemented__'):
print('Component implements Zope interfaces')
Requires Python 3.9 or later; zope.interface must be installed as a runtime dependency.
Verify before relying
- Whether the package is actively maintained or in long-term stable mode (no repo data available).
- Specific use cases beyond Zope Toolkit integration—whether this is useful outside the Zope ecosystem.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — setuptools, zope.interface |
| Maintenance | aging — 336 days since the last release |
| First released | |
| Downloads | 171,344/month — #10,371 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_browser-4.0-py3-none-any.whl
Keywords: zope, browser, component
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.browserpageProvides ZCML directives (browser:page,…
unclear · top 15,000 on PyPI
zope.filerepresentationDefines interfaces for representing objects as…
unclear · top 15,000 on PyPI
zope.browsermenuProvides browser menu implementation and ZCML…
unclear · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.ptresourceProvides a resource class that processes Zope…
unclear · top 15,000 on PyPI
zope.testbrowserzope.testbrowser provides a programmable web…
unclear · top 15,000 on PyPI
zope.viewletzope.viewlet provides a pluggable framework for…
unclear · top 15,000 on PyPI
zope.componentImplements the core Zope Component Architecture…
unclear · top 5,000 on PyPI
zope.processlifetimeProvides event interfaces and implementations…
unclear · top 15,000 on PyPI
zope.testingProvides testing utilities and frameworks for…
unclear · top 15,000 on PyPI