filelock
filelock copied to clipboard
A platform-independent file lock for Python.
I'm using a cluster and the home directory is a network volume that has `fcntl` disabled. https://github.com/tox-dev/filelock/blob/481daa4239d626adaecd17e07bc4ea8adcea6038/src/filelock/_unix.py#L25-L31 `filelock` currently selects `fcntl` whenever the library is available, ignoring its availability on...
Minimal reproducible example: ```python import os from filelock import Timeout, FileLock file_path = "high_ground.txt" lock_path = "high_ground.txt.lock" lock1 = FileLock(lock_path) with lock1: lock2 = FileLock(lock_path) with lock2: print("I have the...
The biggest problem of `SoftFileLock` is that the lock file cannot be deleted when the program crash. We can add suggestions in the documentation that soft lock files can be...
*Disclaimer: I have searched the project's open issues here on GitHub and did not find any related issues* Documentation provided for filelock library [readthedocs page](https://py-filelock.readthedocs.io/en/latest/) is outdated. Currently, the documentation...
Hi and thank you so much for creating this awesome library 😃 For my application it's crucial that the lock is eventually released even if the process crashes, so I...
Just discovered this repo (as a dependency of triton, which is a dependency of torch). I'm noticing that the similar libraries section in the documentation doesn't mention [fasteners](https://pypi.org/project/fasteners/), and if...
Similar issue as listed on [yt-dlp](https://github.com/yt-dlp/yt-dlp/issues/2670). Android/Termux doesn't have flock. Fallback to lockf or SoftFileLock? Possibly fallback to no lock? scdl shown in example uses filelock as a dependency, yt-dlp...
updates: - [github.com/python-jsonschema/check-jsonschema: 0.33.0 → 0.33.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.0...0.33.1) - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.13...v0.12.0) - [github.com/rbubley/mirrors-prettier: v3.5.3 → v3.6.0](https://github.com/rbubley/mirrors-prettier/compare/v3.5.3...v3.6.0)
Hi, I have read the documentation (possibly not enough), and I have not seen example of how filelock could be used with a shared and exclusive lock logic (allowing several...
I'm not sure if this is deliberate, but I assume the CHANGELOG used to be generated automatically but it seems to have not been since v3.12.0, I'm guessing as a...