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

Uploaded Source

Built Distribution

fslock-1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fslock-1.1.tar.gz
Algorithm Hash digest
SHA256 67cffa1ae02b2f057efb4d74ddb32ab6735881d3c7da95e010afeb2643d2cae9
MD5 4715f086b7c9f6e72c67c17cfc9ca37e
BLAKE2b-256 ef1b14a2dca6780db335d86bc2fb66079a136a2e61629c46d72d952ada780237

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fslock-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ce217e8cada785aec57e410060eec9f08c9ef72e534ffd32a97b7670d3ce2fe
MD5 ecb9ed7a342c30d39f5ffe24babeb1cd
BLAKE2b-256 e1a16049be625914874062e8000b5d8c4ac9c9d6c7dd0410b466b27603bcda3c

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