angelos.psi.filelock

Multiplatform file lock mechanism to ensure file is only open by one process.

class angelos.psi.filelock.BaseFileLock

Bases: abc.ABC

Lock/unlock file on disk.

abstract classmethod acquire(fd)

Acquire file lock.

abstract classmethod release(fd)

Release file lock.

class angelos.psi.filelock.FileLock

Bases: angelos.psi.filelock.BaseFileLock

File lock implementation for posix.

classmethod acquire(fd)

Acquire file lock.

classmethod release(fd)

Release file lock.