zExceptions
zExceptions contains common exceptions used in Zope.
What it is and what it does
zExceptions is a library of exception classes and utilities designed for the Zope web framework ecosystem. It provides a standardized set of HTTP status exceptions, authorization and redirect exceptions, and helper functions for exception handling in Zope applications. The package is built on top of zope.interface, zope.publisher, and zope.security, making it a foundational component for Zope-based projects that need consistent exception semantics across the framework.
The library has been actively maintained since its first release and currently supports modern Python versions (3.10–3.14). It is primarily useful for developers building Zope applications or integrating with the Zope ecosystem, where standardized exception handling and HTTP status code representation are expected. The package has no known security vulnerabilities and is classified as mature.
Use it for:
- Raising HTTP status exceptions in Zope web applications with consistent response handling.
- Handling authorization failures with the Unauthorized exception class in Zope-based access control.
- Converting non-HTTP exceptions to HTTP exceptions for consistent error responses in Zope.
- Setting custom response headers and bodies on exceptions within Zope request/response cycles.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
zExceptions provides a collection of exception classes and utilities for Zope applications, including HTTP status exceptions and helper functions for exception handling.
Yes, if you are building or maintaining a Zope application or integrating with the Zope ecosystem. The package is actively maintained, has low install friction, and provides essential exception infrastructure for Zope projects. Not relevant for non-Zope applications. Verify ZPL-2.1 license compatibility before use.
Install
zexceptions on PyPI
pip
pip install zexceptionsuv
uv add zexceptionspoetry
poetry add zexceptionsInstalling zExceptions
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 2026-02-19 with recent Python version support (3.10–3.14). Four runtime dependencies are all established Zope ecosystem packages.
License in practice
Licensed under ZPL-2.1 (Zope Public License), classified as OSI-approved. License treatment is marked unclear in the fact sheet; review the ZPL-2.1 terms directly if license compliance is a concern for your project.
Quickstart
pip install zexceptions
from zexceptions import HTTPException, Unauthorized
exc = Unauthorized('Access denied')
print(exc)
Requires Python 3.10 or later; not compatible with earlier Python versions.
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license requirements (treatment marked unclear).
- Specific HTTP status codes supported and the full API surface beyond exception class names.
- Whether upgradeException and other helper functions are available and how they work.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — setuptools, zope.interface, zope.publisher, zope.security |
| Maintenance | actively maintained — 176 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 145,695/month — #11,121 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zexceptions-6.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
http-exceptionsProvides a set of raisable exception classes…
permissive · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
MultiMappingMultiMapping provides special mapping objects…
unclear · top 15,000 on PyPI
zope.deprecationProvides a decorator and utilities to mark…
unclear · top 5,000 on PyPI
zope.datetimeParses and formats date/time strings in common…
unclear · top 15,000 on PyPI
AccessControlAccessControl provides a security framework for…
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.configurationZope.configuration provides an extensible…
unclear · top 5,000 on PyPI
zope.testingProvides testing utilities and frameworks for…
unclear · top 15,000 on PyPI