skillfed

zope.processlifetime

Zope process lifetime events

zope-processlifetime v4.0 142.8K downloads/30d#11,201 on PyPI1
License unclear ZPL-2.1 Active released

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-processlifetime

uv

uv add zope-processlifetime

poetry

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 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: Zope :: 3Framework :: Zope :: 5Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseNatural Language :: EnglishOperating 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.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTP

Tags

zope process lifecycle eventsserver startup eventsprocess lifetime managementzope event interfacesapplication initialization eventsdatabase opening eventsserver shutdown events
zope-ecosystemevent-driven

More WWW/HTTP packages