$npx skillfedfor your agent

filelock

A platform independent file lock.

Worth itPyPI LibrariesReleased Aug 2026717.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — filelock-3.32.3-py3-none-any.whl
v3.32.3 · released 2026-08-13 · Python >=3.10

Yes. filelock is a stable, actively maintained library with zero dependencies, a permissive MIT license, and no known vulnerabilities. It solves a real synchronization problem in a portable way and is appropriate for any Python project that needs cross-process file coordination.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Actively maintained with a recent release; no runtime dependencies and a pure-Python wheel distribution make installation straightforward.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 975 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 717,124,668 downloads/mo, #43 on PyPI

Verify before relying

from filelock import FileLock

with FileLock('myfile.lock'):
    # Critical section protected by lock
    pass
  • Specific locking strategies (e.g., advisory vs. mandatory, soft vs. hard locks) and their platform-specific behavior.
  • Performance characteristics under high contention or with many concurrent lock holders.
  • Timeout and deadlock-handling semantics when locks cannot be acquired.
Same gist for agents: .md · .json

What it is and what it does

filelock is a lightweight library that provides a cross-platform file locking primitive for Python. It allows multiple processes or threads to safely coordinate access to shared files by acquiring and releasing locks, preventing race conditions and data corruption when concurrent code needs to read or write the same file.

The library abstracts away platform differences—using OS-native locking on Windows and Unix-like systems—so you can write portable synchronization code without worrying about the underlying implementation. It is commonly used in applications that manage caches, logs, temporary directories, or other shared resources where multiple processes might contend for access.

Use it for

  • Protecting shared cache files from concurrent writes by multiple processes.
  • Coordinating log file access when multiple application instances write simultaneously.
  • Ensuring atomic updates to configuration or state files in multi-process applications.
  • Preventing race conditions in temporary directory cleanup or resource allocation.
  • Synchronizing access to user-level data directories across independent scripts or services.

Worth the install?

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

Worth it

Yes.

filelock is a stable, actively maintained library with zero dependencies, a permissive MIT license, and no known vulnerabilities. It solves a real synchronization problem in a portable way and is appropriate for any Python project that needs cross-process file coordination.

Install

filelock on PyPI

Before you install

Actively maintained with a recent release; no runtime dependencies and a pure-Python wheel distribution make installation straightforward.

Requires Python 3.10 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.

Quickstart

from filelock import FileLock

with FileLock('myfile.lock'):
    # Critical section protected by lock
    pass

Verify before relying

  • Specific locking strategies (e.g., advisory vs. mandatory, soft vs. hard locks) and their platform-specific behavior.
  • Performance characteristics under high contention or with many concurrent lock holders.
  • Timeout and deadlock-handling semantics when locks cannot be acquired.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 1 days since the last release
Last repo commit
First released
Downloads717,124,668 / month, #43 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 :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: InternetTopic :: Software Development :: LibrariesTopic :: System

Evidence: filelock-3.32.3-py3-none-any.whl

Tags

Capabilities
file lockingcross-platform file lockprocess synchronizationconcurrent file accessfile mutexlock fileprevent concurrent writes
Topics
concurrencyfile-iocross-platform
PyPI keywords
applicationcachedirectoryloguser

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 › “concurrent file access”

  • filelockProvides a platform-independent file locking mechanism to coordinate…
  • zc.lockfileProvides portable inter-process locks implemented using lock files…
  • aiopathAsync-compatible reimplementation of Python's pathlib with awaitable…

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

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also lockfile · pyodide-lock · wakepy · locket · fasteners · fastrlock · portalocker · django-concurrency · flufl.lock · zc.lockfile