Skip to main content

A wrapper around liblockfile, using ctypes.

Project description

A Python wrapper around liblockfile, using ctypes. You must have the liblockfile shared library installed on your system. On Ubuntu, this can be done with:

sudo apt-get install liblockfile1

For more information see the Launchpad project page.

Getting started

lockfile = os.path.join(args.output, ".lock")
with Lock.WithPID(lockfile) as lock, LockHolder(lock):
    ...

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

python-liblockfile-0.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file python-liblockfile-0.2.tar.gz.

File metadata

File hashes

Hashes for python-liblockfile-0.2.tar.gz
Algorithm Hash digest
SHA256 19e001ad553a8938648b8d960afa58a1ba65ea0f85de41b7c7cf18f03e717a51
MD5 d4458225a4965e5b863ee0ffcaa64b60
BLAKE2b-256 e24a0b088dda1a1d3604a072caec70e1a5c453662229d14fbcf79a744167d101

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