An easy library for Python file locking. It works on Windows, Linux, BSD and Unix systems and can even perform distributed locking. Naturally it also supports the with statement.
v2.0.0 Removed support for old Python versions. Versions 3.5 and above are supported. Added BoundedSemaphore class
v1.7.1 removed tests from wheel file
v1.7.0 Fix ResourceWarning unclosed file if LockException is raised. Thanks to @ahauan4
v1.6.0 Fixed unlocking bug on Windows. Fixes #49
v1.5.2 Aded workaround for broken pywin32 226 release. Fixes #48
v1.5.1 Exclude portalocker_tests from installed packages
v1.5.0 Renamed tests to prevent collisions with other packages
v1.4.0 Fixed #42. Added support for file open **kwargs
v1.3.0 Added fh
attribute to LockExceptions which contain the file handle
v1.2.1 Modernized requirements