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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page