$npx skillfedfor your agent

zc.lockfile

Basic inter-process locks

With conditionsPyPI Software DevelopmentReleased Sep 20253.2M downloads / moZPL-2.1Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — zc_lockfile-4.0-py3-none-any.whl
v4.0 · released 2025-09-18 · Python >=3.9 · 1 runtime deps: setuptools

Yes, if you need portable file-based inter-process locking without external dependencies. The package is stable, actively maintained, and has no known vulnerabilities. The aging maintenance status (330 days since last release) is not a concern given the mature, narrow scope of the library. The unclear license treatment warrants a quick review if you have strict licensing requirements, but the ZPL-2.1 is OSI-approved and widely used in the Zope ecosystem.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; does not support Python 3.7 or 3.8.
  • Low friction: pure Python wheel with only setuptools as a runtime dependency.
  • Maintenance status is aging—last release was 330 days ago—but the repository remains active with recent commits and no archived status.

License · maintenance · safety

ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License), which is OSI-approved but less common than MIT or Apache 2.0. License treatment is marked unclear; review the license terms if proprietary use or redistribution is planned.

last release 2025-09-18 (330 days) · last repo commit 2025-09-22 · 20 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,226,469 downloads/mo, #2,694 on PyPI

Verify before relying

import zc.lockfile

lock = zc.lockfile.LockFile('mylock')
try:
    # critical section
    pass
finally:
    lock.close()
  • Whether the ZPL-2.1 license is compatible with your project's licensing constraints
  • Performance characteristics under high contention or with many concurrent lock attempts
  • Behavior on network filesystems or non-POSIX systems beyond Windows and POSIX
Same gist for agents: .md · .json

What it is and what it does

zc.lockfile is a lightweight library for creating and managing inter-process locks using the filesystem. Rather than locking files themselves, it uses lock files as a coordination mechanism—the actual resource being protected can be any shared state. The library provides a LockFile class that acquires an OS-level lock on a named file; attempting to lock the same file from another process raises LockError. Lock files persist after release and can optionally include process ID and hostname information for debugging in containerized environments.

The package is designed for scenarios where multiple processes need to serialize access to a shared resource without a dedicated lock server. It is commonly used by database implementations (like ZODB file storage) to mediate access to data files. The implementation is portable across Windows and POSIX systems and supports both CPython and PyPy.

Use it for

  • Serialize access to a shared database file from multiple worker processes in a multiprocessing application.
  • Prevent concurrent writes to a configuration or state file in a distributed system.
  • Coordinate startup or initialization across multiple container instances by using a lock file on a shared volume.
  • Implement a simple job-locking mechanism to ensure only one instance of a scheduled task runs at a time.
  • Mediate access to a shared resource in a legacy system that predates modern concurrency primitives.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need portable file-based inter-process locking without external dependencies.

The package is stable, actively maintained, and has no known vulnerabilities. The aging maintenance status (330 days since last release) is not a concern given the mature, narrow scope of the library. The unclear license treatment warrants a quick review if you have strict licensing requirements, but the ZPL-2.1 is OSI-approved and widely used in the Zope ecosystem.

Install

zc-lockfile on PyPI

Before you install

Low friction: pure Python wheel with only setuptools as a runtime dependency. Maintenance status is aging—last release was 330 days ago—but the repository remains active with recent commits and no archived status.

Requires Python 3.9 or later; does not support Python 3.7 or 3.8.

License in practice

Licensed under ZPL-2.1 (Zope Public License), which is OSI-approved but less common than MIT or Apache 2.0. License treatment is marked unclear; review the license terms if proprietary use or redistribution is planned.

Quickstart

import zc.lockfile

lock = zc.lockfile.LockFile('mylock')
try:
    # critical section
    pass
finally:
    lock.close()

Verify before relying

  • Whether the ZPL-2.1 license is compatible with your project's licensing constraints
  • Performance characteristics under high contention or with many concurrent lock attempts
  • Behavior on network filesystems or non-POSIX systems beyond Windows and POSIX

Package facts

LicenseZPL-2.1 unclear
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
setuptools
MaintenanceAging 330 days since the last release
Last repo commit
First released
Downloads3,226,469 / month, #2,694 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseNatural Language :: EnglishOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming 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 :: Software Development

Evidence: zc_lockfile-4.0-py3-none-any.whl

Tags

Capabilities
inter-process lockingfile-based locksprocess synchronizationlock file implementationconcurrent access controlmultiprocess coordinationportable file locks
Topics
concurrencyfile-lockingipc
PyPI keywords
lock

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “lock file implementation”

  • zc.lockfileProvides portable inter-process locks implemented using lock files…
  • pipfileProvides a design specification and parser for Pipfile and…
  • readerwriterlockProvides reader-writer lock implementations for Python that solve the…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also flufl.lock · locket · pid · portalocker · lockfile · fasteners · filelock · pyodide-lock · PyMySQLLock · kazoo