openlock

Functions

get_defaults()

Get defaults.

set_defaults(**kw)

Set defaults.

Classes

Defaults

Default options.

FileLock([lock_file, timeout])

The lock constructor.

Exceptions

InvalidLockFile

Raised when openlock is unable to create a valid lock file in openlock.FileLock.acquire().

InvalidOption

Raised when openlock.set_defaults() is used to set a non-existing option.

InvalidRelease

Raised when openlock.FileLock.release() is called on a lock we do not own.

OpenLockException

Base exception raised by the openlock library.

Timeout

Raised when the waiting time for acquiring a openlock.FileLock has expired.