Skip to main content

openlock

A locking library not depending on inter-process locking primitives in the OS.

Consider a simple situation where multiple processes with the same working directory are trying to access a shared resource.

Create the lock.

l = FileLock()

Acquire the lock.

l.acquire()

Release the lock.

l.release()

Alternatively we may use the context manager protocol.

  with FileLock():
    ...

That's it!

For comprehensive documentation about openlock see https://www.cantate.be/openlock (canonical reference) or https://openlock.readthedocs.io.

Release files for openlock 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openlock 1.2.1
File Size Uploaded
openlock-1.2.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openlock 1.2.1
File Interpreter ABI Platform
openlock-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / openlock-1.2.1.tar.gz

Download URL openlock-1.2.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0823f5f7c3f18fe83722efcd4550ad9bcd8171a2112b2677fa079cf56136e028
BLAKE2b-256 checksum
How to use checksums
5a36b3034d55025133b04ec4e5b4c0d828cee6ad18c55c26b0aada4dec119567
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / openlock-1.2.1-py3-none-any.whl

Download URL openlock-1.2.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ef71cf236531069214845731be2c92199bdd9044ded0383157676f57e2255a3
BLAKE2b-256 checksum
How to use checksums
6b234399ec694e43c500f881dc357e69cd3adc0e0db217f7eba628a5afbb97c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page