MCPcopy Create free account

hub / github.com/tox-dev/filelock / types & classes

Types & classes114 in github.com/tox-dev/filelock

↓ 101 callersClassStrictSoftFileLock
Portable fail-closed lock based on immutable owner claims.
src/filelock/_strict.py:95
↓ 65 callersClassReadWriteLock
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 callersClassSoftFileLock
Cooperative file lock based on a shared existence marker. Unlike :class:`UnixFileLock <filelock.UnixFileLock>` and :class:`WindowsFileLock <
src/filelock/_soft.py:23
↓ 31 callersClassSoftReadWriteLock
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 callersClassAsyncReadWriteLock
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 callersClassSoftFileLease
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 callersClassAsyncSoftFileLock
Simply watches the existence of the lock file.
src/filelock/asyncio.py:729
↓ 12 callersClassTimeout
Raised when the lock could not be acquired in *timeout* seconds.
src/filelock/_error.py:4
↓ 8 callersClassUnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/_unix.py:17
↓ 7 callersClassLock
tests/test_async_filelock_rollback_agnostic.py:28
↓ 7 callersClassSoftFileLockProtocolError
Raised when strict soft-lock state cannot be interpreted without risking overlap.
src/filelock/_error.py:35
↓ 7 callersClass_CoroutineDescriptorLock
tests/test_fork_backends.py:46
↓ 5 callersClassAcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/_api.py:1434
↓ 5 callersClassAsyncStrictSoftFileLock
Run strict owner-claim locking without blocking the event loop.
src/filelock/asyncio.py:735
↓ 5 callersClassSample
One measured metric, in the unit named by ``unit``.
tasks/benchmark.py:36
↓ 5 callersClass_DescriptorLock
tests/test_fork_backends.py:28
↓ 5 callersClass_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 callersClassCancellingFileLock
tests/test_async_filelock_acquire_cancellation.py:37
↓ 3 callersClassOwnerRecord
The owner published in a protocol 2 marker.
src/filelock/_marker.py:24
↓ 3 callersClassStrictSoftFileClaim
One parsed strict soft-lock claim.
src/filelock/_strict.py:264
↓ 3 callersClass_AsyncTransitionGate
src/filelock/_async.py:31
↓ 3 callersClass_ForkedDatabaseRegistry
src/filelock/_read_write.py:90
↓ 3 callersClass_ForwardingFileLock
tests/test_subclass_options.py:358
↓ 2 callersClassAsyncAcquireReadWriteReturnProxy
Context-aware object that releases the async read/write lock on exit.
src/filelock/_async_read_write.py:317
↓ 2 callersClassAsyncAcquireSoftReadWriteReturnProxy
Async context-aware object that releases an :class:`AsyncSoftReadWriteLock` on exit.
src/filelock/_soft_rw/_async.py:251
↓ 2 callersClassAsyncSoftFileLease
Existence lock whose claim expires, so a peer may take it while the previous holder still runs.
src/filelock/asyncio.py:739
↓ 2 callersClassAsyncSoftReadWriteLock
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 callersClassExThread
tests/test_filelock.py:270
↓ 2 callersClassMyFileLock
tests/test_filelock.py:791
↓ 2 callersClassProbe
tasks/capabilities.py:73
↓ 2 callersClass_BackendOutcome
src/filelock/_async.py:26
↓ 2 callersClass_CancellationObservedTask
tests/test_async_filelock_runner_shutdown.py:30
↓ 2 callersClass_ForkTransitionContext
src/filelock/_api.py:1511
↓ 2 callersClass_Locks
src/filelock/_soft_rw/_sync.py:946
↓ 2 callersClass_OVERLAPPED
src/filelock/_windows.py:84
↓ 2 callersClass_OwnedDescriptor
src/filelock/_api.py:1504
↓ 2 callersClass_Sub
tests/test_read_write_unit.py:586
↓ 1 callersClassAioFileLock
tests/test_async_filelock.py:182
↓ 1 callersClassAsyncAcquireReturnProxy
A context-aware object that will release the lock file when exiting.
src/filelock/asyncio.py:711
↓ 1 callersClassAuditedLock
tests/test_fork_coordination.py:207
↓ 1 callersClassBlockingLock
tests/test_fork_coordination.py:1136
↓ 1 callersClassBlockingTransitionLock
tests/test_fork_coordination.py:1105
↓ 1 callersClassCapabilityPragmas
Exclude ``needs``/``lacks`` capability pragmas on the runtimes where that code cannot run.
tasks/coverage_pragmas.py:34
↓ 1 callersClassCapturingLock
tests/test_fork_backends.py:296
↓ 1 callersClassDerivedReadWriteLock
tests/test_read_write_fork.py:82
↓ 1 callersClassEqualLock
tests/test_fork_registries.py:22
↓ 1 callersClassFilePathLock
tests/test_filelock.py:949
↓ 1 callersClassGroupReleaseLock
tests/test_async_filelock_release_cancellation.py:214
↓ 1 callersClassGroupReleaseLock
tests/test_async_filelock.py:1004
↓ 1 callersClassLeaseCompromise
Why a held lease stopped being this process's to hold.
src/filelock/_lease.py:34
↓ 1 callersClassLeaseSettingsMismatch
A lease contender disagrees with the published claim about how long the lease lasts.
src/filelock/_error.py:31
↓ 1 callersClassMySoftFileLock
tests/test_filelock.py:808
↓ 1 callersClassNeverHoldsLock
tests/test_async_filelock.py:206
↓ 1 callersClass_BY_HANDLE_FILE_INFORMATION
src/filelock/_windows.py:93
↓ 1 callersClass_ConnectionEscrow
src/filelock/_read_write.py:57
↓ 1 callersClass_ForkState
src/filelock/_api.py:1515
↓ 1 callersClass_ForwardingAsyncFileLock
tests/test_subclass_options.py:371
↓ 1 callersClass_Heartbeat
A running heartbeat and the event that stops it, which only ever exist together.
src/filelock/_lease.py:44
↓ 1 callersClass_HeartbeatThread
src/filelock/_soft_rw/_sync.py:752
↓ 1 callersClass_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 callersClass_IO_STATUS_BLOCK
src/filelock/_windows.py:78
↓ 1 callersClass_InitParameterModel
src/filelock/_api.py:497
↓ 1 callersClass_LeaseClaim
The state of one claim: its token, its heartbeat, and how that claim was lost.
src/filelock/_lease.py:52
↓ 1 callersClass_Luid
tasks/deny_symlink.py:33
↓ 1 callersClass_LuidAndAttributes
tasks/deny_symlink.py:37
↓ 1 callersClass_MarkerInfo
src/filelock/_soft_rw/_sync.py:953
↓ 1 callersClass_NamedFileLock
tests/test_subclass_options.py:333
↓ 1 callersClass_OBJECT_ATTRIBUTES
src/filelock/_windows.py:68
↓ 1 callersClass_Paths
src/filelock/_soft_rw/_sync.py:939
↓ 1 callersClass_PrivateRecordReclaimedError
src/filelock/_strict.py:277
↓ 1 callersClass_SQLiteTransitionContext
src/filelock/_read_write.py:50
↓ 1 callersClass_SlowLock
tests/test_filelock.py:849
↓ 1 callersClass_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 callersClass_ThreadLocalRegistry
src/filelock/_api.py:328
↓ 1 callersClass_TokenPrivileges
tasks/deny_symlink.py:41
↓ 1 callersClass_UNICODE_STRING
src/filelock/_windows.py:61
ClassAsyncFileLockContext
A dataclass which holds the context for a ``BaseAsyncFileLock`` object.
src/filelock/asyncio.py:694
ClassAsyncFileLockMeta
src/filelock/asyncio.py:71
ClassAsyncThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/asyncio.py:707
ClassAsyncUnixFileLock
Uses the :func:`fcntl.flock` to hard lock the lock file on unix systems.
src/filelock/asyncio.py:743
ClassAsyncWindowsFileLock
Uses the :func:`msvcrt.locking` to hard lock the lock file on windows systems.
src/filelock/asyncio.py:747
ClassBaseAsyncFileLock
Base class for asynchronous file locks. .. versionadded:: 3.15.0
src/filelock/asyncio.py:117
ClassBaseFileLock
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
ClassDynamicFileLock
tests/test_subclass_options.py:310
ClassEphemeralLock
tests/test_fork_registries.py:78
ClassFcntlModule
tests/async_filelock_cancellation_helpers.py:16
ClassFileLockContext
Holds the context for a ``BaseFileLock`` object.
src/filelock/_api.py:1456
ClassFileLockMeta
src/filelock/_api.py:340
ClassLock1
tests/test_filelock.py:920
ClassLock2
tests/test_filelock.py:923
ClassLockOptions
Every option the metaclass forwards, so a subclass adding its own can still type what it passes through.
src/filelock/_api.py:84
ClassMarkerSoftFileLock
An existence lock whose marker carries a protocol 2 owner record.
src/filelock/_marker.py:35
ClassPatchedPythonDomain
docs/conf.py:100
ClassSoftFileLockLifetimeWarning
The configured soft-lock lifetime permits overlapping live holders after expiry.
src/filelock/_error.py:27
ClassStopAcquire
tests/test_fork_backends.py:293
ClassThreadLocalFileContext
A thread local version of the ``FileLockContext`` class.
src/filelock/_api.py:1499
ClassWindowsFileLock
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