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.1.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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openlock-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0823f5f7c3f18fe83722efcd4550ad9bcd8171a2112b2677fa079cf56136e028
MD5 2f6d8b576732dfb89dbc1455961a284e
BLAKE2b-256 5a36b3034d55025133b04ec4e5b4c0d828cee6ad18c55c26b0aada4dec119567

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openlock-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef71cf236531069214845731be2c92199bdd9044ded0383157676f57e2255a3
MD5 14fdd6bb12d628505f27fe9a59d6d5d2
BLAKE2b-256 6b234399ec694e43c500f881dc357e69cd3adc0e0db217f7eba628a5afbb97c9

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