Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ types & classes
Types & classes
114 in github.com/tox-dev/filelock
⨍
Functions
1,605
◇
Types & classes
114
↳
Endpoints
9
↓ 101 callers
Class
StrictSoftFileLock
Portable fail-closed lock based on immutable owner claims.
src/filelock/_strict.py:95
↓ 65 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:247
↓ 65 callers
Class
SoftFileLock
Cooperative file lock based on a shared existence marker. Unlike :class:`UnixFileLock <filelock.UnixFileLock>` and :class:`WindowsFileLock <
src/filelock/_soft.py:23
↓ 31 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:115
↓ 30 callers
Class
AsyncReadWriteLock
Async wrapper around :class:`ReadWriteLock` for use in ``asyncio`` applications. This wrapper dispatches every blocking SQLite operation to
src/filelock/_async_read_write.py:40
↓ 20 callers
Class
SoftFileLease
Existence lock whose claim expires, so a peer may take it while the previous holder still runs. A lease trades mutual exclusion for progress
src/filelock/_lease.py:74
↓ 14 callers
Class
AsyncSoftFileLock
Simply watches the existence of the lock file.
src/filelock/asyncio.py:729
↓ 12 callers
Class
Timeout
Raised when the lock could not be acquired in *timeout* seconds.
src/filelock/_error.py:4
↓ 8 callers
Class
UnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/_unix.py:17
↓ 7 callers
Class
Lock
tests/test_async_filelock_rollback_agnostic.py:28
↓ 7 callers
Class
SoftFileLockProtocolError
Raised when strict soft-lock state cannot be interpreted without risking overlap.
src/filelock/_error.py:35
↓ 7 callers
Class
_CoroutineDescriptorLock
tests/test_fork_backends.py:46
↓ 5 callers
Class
AcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/_api.py:1434
↓ 5 callers
Class
AsyncStrictSoftFileLock
Run strict owner-claim locking without blocking the event loop.
src/filelock/asyncio.py:735
↓ 5 callers
Class
Sample
One measured metric, in the unit named by ``unit``.
tasks/benchmark.py:36
↓ 5 callers
Class
_DescriptorLock
tests/test_fork_backends.py:28
↓ 5 callers
Class
_Gate
Pause one call inside the executor thread so a cancellation lands after the backend work started.
tests/soft_rw/test_soft_rw_async.py:57
↓ 3 callers
Class
CancellingFileLock
tests/test_async_filelock_acquire_cancellation.py:37
↓ 3 callers
Class
OwnerRecord
The owner published in a protocol 2 marker.
src/filelock/_marker.py:24
↓ 3 callers
Class
StrictSoftFileClaim
One parsed strict soft-lock claim.
src/filelock/_strict.py:264
↓ 3 callers
Class
_AsyncTransitionGate
src/filelock/_async.py:31
↓ 3 callers
Class
_ForkedDatabaseRegistry
src/filelock/_read_write.py:90
↓ 3 callers
Class
_ForwardingFileLock
tests/test_subclass_options.py:358
↓ 2 callers
Class
AsyncAcquireReadWriteReturnProxy
Context-aware object that releases the async read/write lock on exit.
src/filelock/_async_read_write.py:317
↓ 2 callers
Class
AsyncAcquireSoftReadWriteReturnProxy
Async context-aware object that releases an :class:`AsyncSoftReadWriteLock` on exit.
src/filelock/_soft_rw/_async.py:251
↓ 2 callers
Class
AsyncSoftFileLease
Existence lock whose claim expires, so a peer may take it while the previous holder still runs.
src/filelock/asyncio.py:739
↓ 2 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:33
↓ 2 callers
Class
ExThread
tests/test_filelock.py:270
↓ 2 callers
Class
MyFileLock
tests/test_filelock.py:791
↓ 2 callers
Class
Probe
tasks/capabilities.py:73
↓ 2 callers
Class
_BackendOutcome
src/filelock/_async.py:26
↓ 2 callers
Class
_CancellationObservedTask
tests/test_async_filelock_runner_shutdown.py:30
↓ 2 callers
Class
_ForkTransitionContext
src/filelock/_api.py:1511
↓ 2 callers
Class
_Locks
src/filelock/_soft_rw/_sync.py:946
↓ 2 callers
Class
_OVERLAPPED
src/filelock/_windows.py:84
↓ 2 callers
Class
_OwnedDescriptor
src/filelock/_api.py:1504
↓ 2 callers
Class
_Sub
tests/test_read_write_unit.py:586
↓ 1 callers
Class
AioFileLock
tests/test_async_filelock.py:182
↓ 1 callers
Class
AsyncAcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/asyncio.py:711
↓ 1 callers
Class
AuditedLock
tests/test_fork_coordination.py:207
↓ 1 callers
Class
BlockingLock
tests/test_fork_coordination.py:1136
↓ 1 callers
Class
BlockingTransitionLock
tests/test_fork_coordination.py:1105
↓ 1 callers
Class
CapabilityPragmas
Exclude ``needs``/``lacks`` capability pragmas on the runtimes where that code cannot run.
tasks/coverage_pragmas.py:34
↓ 1 callers
Class
CapturingLock
tests/test_fork_backends.py:296
↓ 1 callers
Class
DerivedReadWriteLock
tests/test_read_write_fork.py:82
↓ 1 callers
Class
EqualLock
tests/test_fork_registries.py:22
↓ 1 callers
Class
FilePathLock
tests/test_filelock.py:949
↓ 1 callers
Class
GroupReleaseLock
tests/test_async_filelock_release_cancellation.py:214
↓ 1 callers
Class
GroupReleaseLock
tests/test_async_filelock.py:1004
↓ 1 callers
Class
LeaseCompromise
Why a held lease stopped being this process's to hold.
src/filelock/_lease.py:34
↓ 1 callers
Class
LeaseSettingsMismatch
A lease contender disagrees with the published claim about how long the lease lasts.
src/filelock/_error.py:31
↓ 1 callers
Class
MySoftFileLock
tests/test_filelock.py:808
↓ 1 callers
Class
NeverHoldsLock
tests/test_async_filelock.py:206
↓ 1 callers
Class
_BY_HANDLE_FILE_INFORMATION
src/filelock/_windows.py:93
↓ 1 callers
Class
_ConnectionEscrow
src/filelock/_read_write.py:57
↓ 1 callers
Class
_ForkState
src/filelock/_api.py:1515
↓ 1 callers
Class
_ForwardingAsyncFileLock
tests/test_subclass_options.py:371
↓ 1 callers
Class
_Heartbeat
A running heartbeat and the event that stops it, which only ever exist together.
src/filelock/_lease.py:44
↓ 1 callers
Class
_HeartbeatThread
src/filelock/_soft_rw/_sync.py:752
↓ 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:960
↓ 1 callers
Class
_IO_STATUS_BLOCK
src/filelock/_windows.py:78
↓ 1 callers
Class
_InitParameterModel
src/filelock/_api.py:497
↓ 1 callers
Class
_LeaseClaim
The state of one claim: its token, its heartbeat, and how that claim was lost.
src/filelock/_lease.py:52
↓ 1 callers
Class
_Luid
tasks/deny_symlink.py:33
↓ 1 callers
Class
_LuidAndAttributes
tasks/deny_symlink.py:37
↓ 1 callers
Class
_MarkerInfo
src/filelock/_soft_rw/_sync.py:953
↓ 1 callers
Class
_NamedFileLock
tests/test_subclass_options.py:333
↓ 1 callers
Class
_OBJECT_ATTRIBUTES
src/filelock/_windows.py:68
↓ 1 callers
Class
_Paths
src/filelock/_soft_rw/_sync.py:939
↓ 1 callers
Class
_PrivateRecordReclaimedError
src/filelock/_strict.py:277
↓ 1 callers
Class
_SQLiteTransitionContext
src/filelock/_read_write.py:50
↓ 1 callers
Class
_SlowLock
tests/test_filelock.py:849
↓ 1 callers
Class
_Suspend
An awaitable that parks its coroutine once, so a probe can throw into a suspended frame without a loop.
tasks/capabilities.py:123
↓ 1 callers
Class
_ThreadLocalRegistry
src/filelock/_api.py:328
↓ 1 callers
Class
_TokenPrivileges
tasks/deny_symlink.py:41
↓ 1 callers
Class
_UNICODE_STRING
src/filelock/_windows.py:61
Class
AsyncFileLockContext
A dataclass which holds the context for a ``BaseAsyncFileLock`` object.
src/filelock/asyncio.py:694
Class
AsyncFileLockMeta
src/filelock/asyncio.py:71
Class
AsyncThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/asyncio.py:707
Class
AsyncUnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/asyncio.py:743
Class
AsyncWindowsFileLock
Uses the :func:`msvcrt.locking` to hard lock the lock file on windows systems.
src/filelock/asyncio.py:747
Class
BaseAsyncFileLock
Base class for asynchronous file locks. .. versionadded:: 3.15.0
src/filelock/asyncio.py:117
Class
BaseFileLock
Abstract base class for a file lock object. Provides the common reentrant API and state management. Subclasses implement the locking mechani
src/filelock/_api.py:587
Class
DynamicFileLock
tests/test_subclass_options.py:310
Class
EphemeralLock
tests/test_fork_registries.py:78
Class
FcntlModule
tests/async_filelock_cancellation_helpers.py:16
Class
FileLockContext
Holds the context for a ``BaseFileLock`` object.
src/filelock/_api.py:1456
Class
FileLockMeta
src/filelock/_api.py:340
Class
Lock1
tests/test_filelock.py:920
Class
Lock2
tests/test_filelock.py:923
Class
LockOptions
Every option the metaclass forwards, so a subclass adding its own can still type what it passes through.
src/filelock/_api.py:84
Class
MarkerSoftFileLock
An existence lock whose marker carries a protocol 2 owner record.
src/filelock/_marker.py:35
Class
PatchedPythonDomain
docs/conf.py:100
Class
SoftFileLockLifetimeWarning
The configured soft-lock lifetime permits overlapping live holders after expiry.
src/filelock/_error.py:27
Class
StopAcquire
tests/test_fork_backends.py:293
Class
ThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/_api.py:1499
Class
WindowsFileLock
Uses ``LockFileEx`` to hard lock a byte range of the lock file on Windows systems. Lock file cleanup: Windows attempts to delete the
src/filelock/_windows.py:175
Class
_AsyncFileLockOptions
tests/test_subclass_options.py:399
Class
_AsyncTransitionUnavailableError
src/filelock/_async.py:21
Class
_ExceptionGroupProtocol
src/filelock/_api.py:238
next →
1–100 of 114, ranked by callers