filelock

A platform independent file lock.

About filelock

A platform independent file lock.

Key Features

  • Cross-platform file-based locking primitives
  • Context-manager API for safe lock acquisition and release
  • Timeout and non-blocking lock acquisition options
  • Prevents race conditions in multi-process workflows

Installation

uv add filelock

Related Tools

Quick Info

Latest Version
3.25.0
First Release
2014
License
MIT License

About pytools.dev

pytools.dev is your go-to directory for the best Python tools, libraries, and frameworks—designed for the modern Python developer.

© 2026 pytools.dev. All rights reserved.
Created with ❤️ by James Fricker