skillfed

zExceptions

zExceptions contains common exceptions used in Zope.

zexceptions v6.0 145.7K downloads/30d#11,121 on PyPI0
License unclear ZPL-2.1 Active released

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 zexceptions

uv

uv add zexceptions

poetry

poetry add zexceptions

Installing 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

Development Status :: 6 - MatureEnvironment :: Web EnvironmentFramework :: Zope :: 5License :: 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.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

zope exception classeshttp status exceptionszope error handlingzope framework exceptionscommon exception utilities
zope-ecosystemhttp-exceptionsweb-framework

More Application Frameworks packages