filelock
https://py-filelock.readthedocs.io/en/latest/index.htmlpython -m pip install filelock Tutorial ¶ A FileLock is used to indicate another process of your application that a resource or working directory is currently used. To do so, create a FileLock first: from filelock import Timeout, FileLock file_path = "high_ground.txt" lock_path = "high_ground.txt.lock" lock = FileLock(lock_path, timeout=1)
filelock · PyPI
https://pypi.org/project/filelock26.12.2021 · Jul 6, 2014. Download files. Download the file for your platform. If you're not sure which to choose, learn more about installing packages. Files for filelock, version 3.4.2. Filename, size. File type. Python version.