filelock
filelock copied to clipboard
A platform-independent file lock for Python.
This avoids leaving orphan locks files around after we are done when them. See https://github.com/emscripten-core/emscripten/pull/24035 Fixes: #31
I'm not a lawyer but it seems Unlicense has some issues and no real advantage say over 0BSD or MIT-0. Please consider on moving to one of these as this...
Draft for #307. @gaborbernat @Yard1 please let me know how I should change the code from the API perspective. There are quite a bit very elaborate stuff that is hard...
```python # coding=utf-8 import time import asyncio from threading import Thread from filelock import FileLock class TestObject(object): def __init__(self): self.file_lock = FileLock('/tmp/test_file.lock') print("file_lock acquire") self.file_lock.acquire() print("file_lock acquired") def run(self): time.sleep(5)...
Hi there, thanks for the package. A perhaps naive question, but the following behaviour seemed unintuitive to me. In short, if you chain method calls and don't assign the result...
Hi, In the public `acquire` interface, you can pass `poll_interval` (defaults to `0.05`). Because the `__enter__` method calls `acquire` without any arguments, there is no way to specify the interval...
Is it true that both processes will proceed?
In modern unix-like system, a directory can have default access control list (acl) applied to newly created files under it (`setfacl -d`). To make acl effective, the corresponding group permission...