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-1.2.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

fslock-1.2.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fslock-1.2.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3

File hashes

Hashes for fslock-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f2436cff94546625f2e3f0c32c7e04aca6eee7403e7ef175a31bd5c63a74bb77
MD5 22fc8333779ea37538779bfec8b9e76b
BLAKE2b-256 e7fda33130f10a9de3b0c69c0dedb150655b0f8ea60049ff7f805fd3fb9264e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fslock-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.3

File hashes

Hashes for fslock-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 049335855d29a2d5009f09b3710b111def1baa91a9c6594c5c873ba8f96a3fb4
MD5 54cd0f348d635687fe0cd6ecf07ef95e
BLAKE2b-256 1ac173aced08e3a7beeec39333c03a765d40f6ae5fe19f2340c253eba7f496fc

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