zope.processlifetime
Zope process lifetime events
What it is and what it does
zope.processlifetime defines event interfaces and implementations for key moments in a server process's lifecycle—startup, database opening, and shutdown. It is part of the Zope ecosystem and is typically used alongside zope.event to notify subscribers when these lifecycle transitions occur. The package is minimal and focused: it provides the event contracts (interfaces) and basic implementations, leaving the actual event dispatch to zope.event. It depends on setuptools and zope.interface, making it lightweight to integrate into Zope-based applications.
The package is actively maintained and supports modern Python versions (3.9 through 3.13). It recently migrated from pkg_resources to PEP 420 native namespaces in version 4.0, indicating ongoing modernization. With no known security vulnerabilities and a stable API, it is suitable for applications that need to hook into Zope's process lifecycle events.
Use it for:
- Trigger initialization logic when a Zope server starts up by subscribing to IProcessStarting events.
- Perform cleanup or resource allocation when a database connection is opened during process startup.
- Coordinate multi-component startup sequences in a Zope application using process lifecycle events.
- Integrate custom event handlers into Zope's application initialization pipeline.
- Build monitoring or logging that tracks when Zope processes transition through lifecycle stages.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides event interfaces and implementations for server process lifecycle events (startup, database opening, etc.) designed to work with zope.event.
Yes, if you are building or maintaining a Zope application that needs to hook into process lifecycle events. The package is lightweight, actively maintained, has no security vulnerabilities, and integrates cleanly with zope.event. Install only if you are already using Zope; it has no value outside that ecosystem.
Install
zope-processlifetime on PyPI
pip
pip install zope-processlifetimeuv
uv add zope-processlifetimepoetry
poetry add zope-processlifetimeInstalling zope.processlifetime
Before you install
Low friction installation with only two runtime dependencies (setuptools and zope.interface). Actively maintained with recent releases; last commit 2026-04-20 and version 4.0 released 2025-09-12.
License in practice
Licensed under ZPL-2.1 (Zope Public License); license treatment is marked unclear in the fact sheet, so review the actual license terms before use in proprietary or redistributed software.
Quickstart
pip install zope.processlifetime
from zope.processlifetime import IProcessStarting
from zope.event import notify
notify(IProcessStarting())
Requires Python 3.9 or later; designed for use with zope.event for event dispatching.
Verify before relying
- Whether the package is actively used in production Zope applications or primarily maintained for legacy compatibility.
- Specific use patterns and whether zope.event integration is automatic or requires manual setup.
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 | actively maintained — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 142,802/month — #11,201 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_processlifetime-4.0-py3-none-any.whl
Keywords: zope, process, lifetime, events
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.lifecycleeventDefines event objects and API functions for…
unclear · top 15,000 on PyPI
zope.eventProvides a simple synchronous event publishing…
unclear · top 1,000 on PyPI
zope.browserProvides a set of standard interfaces for…
unclear · top 15,000 on PyPI
zope.filerepresentationDefines interfaces for representing objects as…
unclear · top 15,000 on PyPI
zope.datetimeParses and formats date/time strings in common…
unclear · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.containerProvides container interfaces and…
unclear · top 15,000 on PyPI
zope.browsermenuProvides browser menu implementation and ZCML…
unclear · top 15,000 on PyPI
zope.ptresourceProvides a resource class that processes Zope…
unclear · top 15,000 on PyPI
zope.contentproviderProvides a framework for building componentized…
unclear · top 15,000 on PyPI