Py-FileLock
This package contains a single module, which implements a platform independent file locking mechanism for Python.
The lock includes a lock counter and is thread safe. This means, when locking the same lock object twice, it will not block.
import filelock
lock = filelock.FileLock("my_lock_file")
with lock:
pass
try:
with lock.acquire(timeout = 10):
pass
except filelock.Timeout:
pass
Documentation
The full documentation is available on readthedocs.org.
Contributions
Contributions are always welcome. Never hesitate to open a new issue.
License
This package is public domain.
Metadata
Release files for filelock 2.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| filelock-2.0.5.tar.gz | 5.0 kB | Details |
Release files / filelock-2.0.5.tar.gz
| Download URL | filelock-2.0.5.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ed00528221cc7e83da1bcc79ca98d59bfcda4492b6e2f5134cade5fb21e315e
|
|
BLAKE2b-256 checksum How to use checksums |
1add9539ba04395a1bb97914455486da8dbf758cd626b83f6ea3f5882b00e3dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |