filelock icon indicating copy to clipboard operation
filelock copied to clipboard

A platform-independent file lock for Python.

Results 38 filelock issues
Sort by recently updated
recently updated
newest added

I'm using a lustre file system. Looks like it doesn't support flock syscall. Here is a small script I'm trying to run: ```python import filelock t = filelock.FileLock('test.lock') with t:...

bug
help-wanted

Hi, OS: Win10/7 Python: 3.6.8 py-filelock: 3.0.12 I try to acquire a filelock without blocking (i.e. timeout=0). when the file is locked this operation takes 1sec (although should return immediately)....

help-wanted
feature

Hi, It seems that the latest docs (https://filelock.readthedocs.io/en/latest/) is not aligned with the code. I wanted to try acquire a lock but without blocking if alreadly locked. for this to...

help-wanted
feature

"This package contains a single Python module that implements platform independent file locking as a means of inter-process communication"

help-wanted

Is there a way to add an argument to the LockFile class, such as "writer" or "reader", in order to: 1) allow multiple readings between processes and threads (like `with...

help-wanted
feature

For an application that has no hopes of waiting for a lock to become usable (in my case, avoiding the simultaneous execution of two server processes on the same state...

help-wanted
feature

I use this function in several different scripts in a project: ```python @contextmanager def locked_file(filename: str, mode: str = 'r') -> Generator: if mode == 'r' or mode == 'rb'...

bug
help-wanted

Fix the following warning: ``` /usr/lib/python3.10/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) ``` Ref: https://github.com/pypa/setuptools/pull/2620

Hello! I'm looking to the code of this project now, it's very interesting. I suggest you to add support for using of cancellation tokens as well as you can to...

enhancement
help-wanted

Similar to `RwLock` in Rust standard library . Single writer, or Multiple reader.

enhancement
help-wanted