--- id: zope-processlifetime version: "4.0" license: ZPL-2.1 license_treatment: unclear maintenance: active --- # zope.processlifetime — Zope process lifetime events License: unclear · Maintenance: active · Downloads: 142.8K/mo ## 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 above — 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 pip install zope-processlifetime uv add zope-processlifetime poetry add zope-processlifetime ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 142.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags zope process lifecycle events, server startup events, process lifetime management, zope event interfaces, application initialization events, database opening events, server shutdown events, zope-ecosystem, event-driven [View on SkillFed](https://skillfed.io/packages/zope-processlifetime) · [View on PyPI](https://pypi.org/project/zope-processlifetime/)