Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openlock-1.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openlock-1.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file openlock-1.2.0.tar.gz.

File metadata

  • Download URL: openlock-1.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for openlock-1.2.0.tar.gz
Algorithm Hash digest
SHA256 7887d723a18e9d5d4428865e0d19ffb102241b872391ed2bd212ccf62222a06a
MD5 931456157e4529358f2ea5bc2d15330d
BLAKE2b-256 1154cf698a5c1c5c1eb2c7798b13a38f4ef20367385836d7f8370ea02c8d9c3c

See more details on using hashes here.

File details

Details for the file openlock-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: openlock-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for openlock-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b840c2a1de7a716cbcda41249af3fb5e03f76c30c670d0881a6d6134a609b0ca
MD5 bd0a820657f9c43f6210376c853b084e
BLAKE2b-256 e42a9a53da18ca5ccf0025871481c86ff052d64837cd26e134912ae1d0a5e3c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page