Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FileLock
========

A file locking mechanism that has context-manager support so
you can use it in a with statement. This should be relatively cross
compatible as it doesn't rely on msvcrt or fcntl for the locking.

Usage
=====

```python
from filelock import FileLock

with FileLock("myfile.txt"):
# work with the file as it is now locked
print("Lock acquired.")
```


Originally posted at http://www.evanfosmark.com/2009/01/cross-platform-file-locking-support-in-python/
11 changes: 0 additions & 11 deletions README.txt

This file was deleted.