Several options are possible: * [x] https://py-filelock.readthedocs.io/en/latest/how-to.html * [ ] https://portalocker.readthedocs.io/en/latest/ * [ ] https://github.com/misli/python-flock The former looks the best maintained one.
Several options are possible:
The former looks the best maintained one.