Skip to main content

Shared and exclusive file locking using flock(2)

Project description

This library provides a safe wrapper around flock(2). It avoids problems when using locks in multi-threaded applications, while still exposing exclusive and shared locks.

It also contains a caching utility, fslock.cache.cache_get_or_set(), which can be use to safely cache files that are expensive to produce on disk.

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

fslock-2.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

fslock-2.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file fslock-2.1.1.tar.gz.

File metadata

  • Download URL: fslock-2.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for fslock-2.1.1.tar.gz
Algorithm Hash digest
SHA256 19b747947e6b8d99e92993418216c319f47d4a49f37b287e00d403c6b0326af8
MD5 205c6f50f47f411dc7cf61ee05e10213
BLAKE2b-256 10883b704208bca4e6c535308547761e441bcaacf7efcdcb7889ebab6b6bc187

See more details on using hashes here.

File details

Details for the file fslock-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: fslock-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for fslock-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 815256ab80eca7f4b77408795e82fd06fb98c489b325b12e814e6042001cc5be
MD5 76550ab81596482da8d8dfd44bf09987
BLAKE2b-256 21f12ec8469c86f347c826cc74e0a96bd41117b4caa3a73bca22b9a94397e2d7

See more details on using hashes here.

Supported by

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