Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ types & classes
Types & classes
42 in github.com/tox-dev/filelock
⨍
Functions
572
◇
Types & classes
42
↳
Endpoints
7
↓ 68 callers
Class
ReadWriteLock
Cross-process read-write lock backed by SQLite. Allows concurrent shared readers or a single exclusive writer. The lock is reentrant within
src/filelock/_read_write.py:99
↓ 28 callers
Class
SoftReadWriteLock
Cross-process and cross-host reader/writer lock built on :class:`SoftFileLock` primitives. Use this class instead of :class:`~filelock.ReadW
src/filelock/_soft_rw/_sync.py:135
↓ 27 callers
Class
AsyncReadWriteLock
Async wrapper around :class:`ReadWriteLock` for use in ``asyncio`` applications. Because Python's :mod:`sqlite3` module has no async API, al
src/filelock/_async_read_write.py:38
↓ 19 callers
Class
SoftFileLock
Portable file lock based on file existence. Unlike :class:`UnixFileLock <filelock.UnixFileLock>` and :class:`WindowsFileLock <filelock.Windo
src/filelock/_soft.py:21
↓ 12 callers
Class
Timeout
Raised when the lock could not be acquired in *timeout* seconds.
src/filelock/_error.py:4
↓ 7 callers
Class
UnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/_unix.py:18
↓ 5 callers
Class
AcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/_api.py:56
↓ 3 callers
Class
ExThread
tests/test_filelock.py:228
↓ 3 callers
Class
MyFileLock
tests/test_filelock.py:785
↓ 2 callers
Class
AsyncAcquireReadWriteReturnProxy
Context-aware object that releases the async read/write lock on exit.
src/filelock/_async_read_write.py:20
↓ 2 callers
Class
AsyncAcquireSoftReadWriteReturnProxy
Async context-aware object that releases an :class:`AsyncSoftReadWriteLock` on exit.
src/filelock/_soft_rw/_async.py:19
↓ 2 callers
Class
AsyncSoftFileLock
Simply watches the existence of the lock file.
src/filelock/asyncio.py:389
↓ 2 callers
Class
_Locks
src/filelock/_soft_rw/_sync.py:59
↓ 1 callers
Class
AioFileLock
tests/test_async_filelock.py:167
↓ 1 callers
Class
AsyncAcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/asyncio.py:54
↓ 1 callers
Class
AsyncSoftReadWriteLock
Async wrapper around :class:`SoftReadWriteLock` for ``asyncio`` applications. The sync class's blocking filesystem operations run on a threa
src/filelock/_soft_rw/_async.py:37
↓ 1 callers
Class
FilePathLock
tests/test_filelock.py:918
↓ 1 callers
Class
MySoftFileLock
tests/test_filelock.py:802
↓ 1 callers
Class
Options
tasks/changelog.py:33
↓ 1 callers
Class
_HeartbeatThread
src/filelock/_soft_rw/_sync.py:733
↓ 1 callers
Class
_Hold
Everything that exists only while a lock is held; ``None`` when the instance has no lock.
src/filelock/_soft_rw/_sync.py:73
↓ 1 callers
Class
_MarkerInfo
src/filelock/_soft_rw/_sync.py:66
↓ 1 callers
Class
_Paths
src/filelock/_soft_rw/_sync.py:52
↓ 1 callers
Class
_RaceCon
tests/test_read_write_unit.py:637
↓ 1 callers
Class
_SlowRollbackCon
tests/test_read_write_unit.py:592
↓ 1 callers
Class
_ThreadLocalRegistry
src/filelock/_api.py:44
Class
AsyncFileLockContext
A dataclass which holds the context for a ``BaseAsyncFileLock`` object.
src/filelock/asyncio.py:37
Class
AsyncFileLockMeta
src/filelock/asyncio.py:75
Class
AsyncThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/asyncio.py:50
Class
AsyncUnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/asyncio.py:393
Class
AsyncWindowsFileLock
Uses the :func:`msvcrt.locking` to hard lock the lock file on windows systems.
src/filelock/asyncio.py:397
Class
BaseAsyncFileLock
Base class for asynchronous file locks. .. versionadded:: 3.15.0
src/filelock/asyncio.py:109
Class
BaseFileLock
Abstract base class for a file lock object. Provides a reentrant, cross-process exclusive lock backed by OS-level primitives. Subclasses imp
src/filelock/_api.py:182
Class
FileLockContext
A dataclass which holds the context for a ``BaseFileLock`` object.
src/filelock/_api.py:75
Class
FileLockMeta
src/filelock/_api.py:113
Class
Lock1
tests/test_filelock.py:889
Class
Lock2
tests/test_filelock.py:892
Class
PatchedPythonDomain
docs/conf.py:82
Class
ThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/_api.py:106
Class
WindowsFileLock
Uses the :func:`msvcrt.locking` function to hard lock the lock file on Windows systems. Lock file cleanup: Windows attempts to delet
src/filelock/_windows.py:50
Class
_ReadWriteLockMeta
Metaclass that handles singleton resolution when is_singleton=True. Singleton logic lives here rather than in ReadWriteLock.get_lock so that
src/filelock/_read_write.py:59
Class
_SoftRWMeta
src/filelock/_soft_rw/_sync.py:86