Skip to main content

Advisory exclusive locks, shared locks, and freezes (locked to no-one).

The zope.locking package provides three main features:

  • advisory exclusive locks for individual objects;

  • advisory shared locks for individual objects; and

  • frozen objects (locked to no one).

Locks and freezes by themselves are advisory tokens and inherently meaningless. They must be given meaning by other software, such as a security policy.

This package approaches these features primarily from the perspective of a system API, largely free of policy; and then provides a set of adapters for more common interaction with users, with some access policy. We will first look at the system API, and then explain the policy and suggested use of the provided adapters.

Changes

4.1 (2026-11-16)

  • Move package metadata from setup.py to pyproject.toml.

  • Add support for Python 3.14, 3.15.

  • Drop support for Python 3.10, 3.9.

4.0 (2025-09-12)

  • Replace pkg_resources namespace with PEP 420 native namespace.

3.0 (2025-09-04)

  • Add support for Python 3.9, 3.10, 3.11, 3.12, 3.13.

  • Drop support for Python 2.7, 3.5, 3.6, 3.7, 3.8.

2.1.0 (2020-04-15)

  • Fix DeprecationWarnings for ObjectEvent.

  • Add support for Python 3.7 and 3.8.

  • Drop support for Python 3.3 and 3.4.

2.0.0 (2018-01-23)

  • Python 3 compatibility.

  • Note: The browser views and related code where removed. You need to provide those in application-level code now.

  • Package the zcml files.

  • Updated dependencies.

  • Revived from svn.zope.org

1.2.2 (2011-01-31)

  • Consolidate duplicate evolution code.

  • Split generations config into its own zcml file.

1.2.1 (2010-01-20)

  • Bug fix: the generation added in 1.2 did not properly clean up expired tokens, and could leave the token utility in an inconsistent state.

1.2 (2009-11-23)

  • Bug fix: tokens were stored in a manner that prevented them from being cleaned up properly in the utility’s _principal_ids mapping. Make zope.locking.tokens.Token orderable to fix this, as tokens are stored as keys in BTrees.

  • Add a zope.app.generations Schema Manager to clean up any lingering tokens due to this bug. Token utilities not accessible through the component registry can be cleaned up manually with zope.locking.generations.fix_token_utility.

  • TokenUtility’s register method will now add the token to the utility’s database connection if the token provides IPersistent.

  • Clean up the tests and docs and move some common code to testing.py.

  • Fix some missing imports.

1.1

(series for Zope 3.4; eggs)

1.1b

  • converted to use eggs

1.0

(series for Zope 3.3; no dependencies on Zope eggs)

1.0b

Initial non-dev release

Metadata

Release files for zope.locking 4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zope.locking 4.1
File Size Uploaded Provenance Actions
zope_locking-4.1.tar.gz 30.6 kB With provenance Details for zope_locking-4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zope.locking 4.1
File Interpreter ABI Platform Actions
zope_locking-4.1-py3-none-any.whl Python 3 none any Details for zope_locking-4.1-py3-none-any.whl

Total release size: 63.0 kB

Release files / zope_locking-4.1.tar.gz

Download URL zope_locking-4.1.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
47937cce0b056ae99273a56069b6a254d8265b42c2de5f6eb7303be2076ef1ef
BLAKE2b-256 checksum
How to use checksums
5f671fda340a648e87b6f89b5b893289877ec58ff671a81425547e1925246add
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / zope_locking-4.1-py3-none-any.whl

Download URL zope_locking-4.1-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9ff6b502890226ed09d2a89f988f3ea4c62a9f88cef6d2bc08c827a9dee483d
BLAKE2b-256 checksum
How to use checksums
0b0bdc8afcff52c2431f1dd6dccb43d979a660ffa0776bbbf72295882a7d126a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for zope.locking 4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zope_locking-4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page