MCPcopy Create free account

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

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

↓ 223 callersClassStrictSoftFileLock
Portable fail-closed lock based on immutable owner claims.
src/filelock/_soft/_strict/_lock.py:85
↓ 184 callersClassReadWriteLock
SQLite reader/writer lock. Readers share a transaction. A writer holds it exclusively. A thread can nest holds of the same mode. Changing mo
src/filelock/_sqlite/_lock.py:68
↓ 150 callersClassSoftFileLock
Peers can reclaim a crashed holder's PID marker on the same host. The filesystem must make exclusive creation and directory changes visible t
src/filelock/_soft/_exclusive/_lock.py:17
↓ 98 callersClassAsyncReadWriteLock
Task-owned SQLite reader/writer lock. Queued writers precede new readers. A task may reenter its current mode. Changing mode while holding th
src/filelock/_sqlite/_async.py:31
↓ 61 callersClassOsFiles
src/filelock/_soft/_read_write/_storage.py:90
↓ 52 callersClassUnixFileLock
Native Unix lock; acquisition requires :func:`fcntl.flock`.
src/filelock/_native/_unix.py:38
↓ 51 callersClassSnapshot
src/filelock/_soft/_read_write/_generations.py:221
↓ 49 callersClassGenerationLog
src/filelock/_soft/_read_write/_generations.py:37
↓ 46 callersClassSoftFileLease
A marker lease refreshed by its holder. Peers may take an expired claim while the previous holder still runs. Use :class:`~filelock.StrictSof
src/filelock/_soft/_lease.py:54
↓ 46 callersClassSoftReadWriteLock
Reader/writer lock for shared filesystems such as NFS and Lustre. A waiting writer excludes new readers. Write holds are thread-owned. Upgra
src/filelock/_soft/_read_write/_lock.py:151
↓ 25 callersClassAsyncSoftFileLock
An asynchronous marker-file lock.
src/filelock/_async_lock/_backends.py:54
↓ 25 callersClassSoftFileLockProtocolError
Raised when strict soft-lock state cannot be interpreted without risking overlap. :param lock_file: the path of the lock :param claim_na
src/filelock/_core/_errors.py:84
↓ 21 callersClassReports
tests/soft/lease_helpers.py:38
↓ 16 callersClassTimeout
Raised when the lock could not be acquired in *timeout* seconds. :param lock_file: the path of the file lock :param holder: a descriptio
src/filelock/_core/_errors.py:13
↓ 10 callersClassAsyncTransitionGate
Give one task at a time access to a lock transition, in arrival order.
src/filelock/_async_lock/_transitions.py:19
↓ 10 callersClassBackendGate
tests/soft/read_write/async_helpers.py:65
↓ 10 callersClassMarkerSoftFileLock
An existence lock whose marker carries a protocol 2 owner record.
src/filelock/_soft/_exclusive/_marker.py:18
↓ 9 callersClassLeaseCompromise
Why a held lease stopped being this process's to hold, and the error that ended its refresh, if any. :param lock_file: the path of the lock
src/filelock/_soft/_lease.py:413
↓ 9 callersClassLedger
src/filelock/_soft/_read_write/_sweep.py:35
↓ 9 callersClassLock
tests/async_lock/test_acquire_rollback.py:22
↓ 8 callersClassAsyncSoftReadWriteLock
Task-owned reader/writer lock for shared filesystems. Queued writers precede new readers. A task may reenter its current mode. Changing mode
src/filelock/_soft/_read_write/_async.py:33
↓ 7 callersClassAsyncStrictSoftFileLock
An asynchronous lock backed by strict owner claims.
src/filelock/_async_lock/_backends.py:62
↓ 7 callersClass_CoroutineDescriptorLock
tests/core/test_fork_async_backends.py:42
↓ 6 callersClass_DescriptorLock
tests/core/test_fork_backends.py:36
↓ 5 callersClassAcquireReturnProxy
A context-aware object that will release the lock file when exiting. :param lock: the lock to release on exit
src/filelock/_core/_acquire.py:390
↓ 5 callersClassOwnerRecord
Keep optional metadata when reading unknown lock modes. :param pid: the PID of the process that wrote the marker :param hostname: the ho
src/filelock/_soft/_records.py:130
↓ 5 callersClassParticipant
src/filelock/_soft/_read_write/_participant.py:40
↓ 5 callersClassSample
tasks/benchmark.py:33
↓ 4 callersClassBackendOutcome
src/filelock/_async_lock/_executor.py:122
↓ 4 callersClass_Scheduler
tests/soft/read_write/test_participant_model.py:70
↓ 4 callersClass_TaskHold
src/filelock/_async_lock/_owners.py:339
↓ 3 callersClassAsyncSoftFileLease
A renewable marker lease that a peer can take after expiry.
src/filelock/_async_lock/_backends.py:70
↓ 3 callersClassByHandleFileInformation
src/filelock/_filesystem/_windows/_handles.py:81
↓ 3 callersClassCancellingFileLock
tests/async_lock/test_acquire_cancellation.py:34
↓ 3 callersClassCustomLock
tests/core/test_fork_registries.py:62
↓ 3 callersClassFailingSubmitExecutor
tests/async_lock/cancellation.py:81
↓ 3 callersClassLeaseClaim
State of a soft lease in one lock context. :ivar token: identity written to the marker for the current claim, or None :ivar compromise:
src/filelock/_soft/_lease.py:327
↓ 3 callersClassProbe
tasks/capabilities.py:79
↓ 3 callersClassStrictSoftFileClaim
One parsed strict soft-lock claim. :param name: the claim's file name in the claim directory :param state: whether the claim is an ``int
src/filelock/_soft/_strict/_claims.py:96
↓ 3 callersClassTreeReplacedError
src/filelock/_soft/_read_write/_storage.py:312
↓ 3 callersClass_ForkedDatabaseRegistry
src/filelock/_sqlite/_fork.py:184
↓ 3 callersClass_ForwardingFileLock
tests/core/test_subclass_options.py:248
↓ 3 callersClass_Model
tests/soft/read_write/test_participant_model.py:157
↓ 2 callersClassAsyncAcquireReadWriteReturnProxy
Context-aware object that releases the async read/write lock on exit. :param lock: the lock to release on exit
src/filelock/_sqlite/_async.py:179
↓ 2 callersClassAsyncAcquireSoftReadWriteReturnProxy
Async context-aware object that releases an :class:`AsyncSoftReadWriteLock` on exit. :param lock: the lock to release on exit
src/filelock/_soft/_read_write/_async.py:189
↓ 2 callersClassClaimEntryLimitError
src/filelock/_soft/_strict/_claims.py:140
↓ 2 callersClassLinkDirectory
src/filelock/_sqlite/_links.py:114
↓ 2 callersClassLockSettings
src/filelock/_core/_settings.py:83
↓ 2 callersClassLocks
src/filelock/_soft/_read_write/_hold.py:38
↓ 2 callersClassMyFileLock
tests/core/test_singleton.py:71
↓ 2 callersClassRecursiveLock
tests/soft/read_write/test_lock_singleton.py:124
↓ 2 callersClassReleasePendingError
The Windows strict-lock release is still running after the caller's deadline. :param message: identifies the lock whose release is pending
src/filelock/_core/_errors.py:54
↓ 2 callersClassWorkerThread
tests/core/thread_helpers.py:17
↓ 2 callersClass_CancellationObservedTask
tests/async_lock/test_executor.py:70
↓ 2 callersClass_Hold
src/filelock/_sqlite/_lock.py:41
↓ 2 callersClass_HolderRecord
src/filelock/_soft/_read_write/_participant.py:216
↓ 2 callersClass_MemoryFiles
tests/soft/read_write/test_participant_model.py:244
↓ 2 callersClass_OVERLAPPED
src/filelock/_native/_windows.py:24
↓ 2 callersClass_OwnedDescriptor
src/filelock/_core/_fork.py:147
↓ 2 callersClass_Probe
src/filelock/_sqlite/_connection.py:355
↓ 2 callersClass_Sub
tests/sqlite/test_lock_settings.py:157
↓ 1 callersClassAcquireWait
Resolved settings for one acquisition attempt. :param blocking: whether contention permits another attempt :param cancel_check: optional
src/filelock/_core/_state.py:167
↓ 1 callersClassAioFileLock
tests/async_lock/test_backend_calls.py:55
↓ 1 callersClassAsyncAcquireReturnProxy
A context-aware object that will release the lock file when exiting. :param lock: the lock to release on exit
src/filelock/_async_lock/_lock.py:323
↓ 1 callersClassAsyncClose
src/filelock/_async_lock/_executor.py:30
↓ 1 callersClassAsyncFileLockContext
Settings and ownership state for one asynchronous lock. :ivar run_in_executor: whether backend operations run in an executor :ivar execu
src/filelock/_async_lock/_lock.py:353
↓ 1 callersClassAuditedLock
tests/core/test_fork_audit.py:54
↓ 1 callersClassBlockingLock
tests/core/test_fork_construction.py:353
↓ 1 callersClassBlockingTransitionLock
tests/core/test_fork_coordination.py:298
↓ 1 callersClassCapturingLock
tests/core/test_fork_backends.py:301
↓ 1 callersClassChildLock
tests/soft/read_write/test_lock_singleton.py:79
↓ 1 callersClassCustomLock
tests/soft/read_write/test_lock_singleton.py:141
↓ 1 callersClassDerivedReadWriteLock
tests/sqlite/test_lock_reentry.py:75
↓ 1 callersClassDirectoryPinBlockedError
An oplock blocked a nonblocking directory pin.
src/filelock/_filesystem/_windows/_directories.py:86
↓ 1 callersClassDynamicFileLock
tests/core/test_subclass_options.py:370
↓ 1 callersClassEqualLock
tests/core/test_fork_registries.py:34
↓ 1 callersClassFileLockContext
Settings and ownership state for an exclusive lock. :param lock_file: filesystem path used for locking :param timeout: default wait in s
src/filelock/_core/_state.py:64
↓ 1 callersClassFileLockHolder
tests/async_lock/cancellation.py:75
↓ 1 callersClassFilePathLock
tests/core/test_lock.py:291
↓ 1 callersClassFileStandardInfo
src/filelock/_filesystem/_windows/_handles.py:95
↓ 1 callersClassFinalizerState
src/filelock/_core/_shutdown.py:49
↓ 1 callersClassGenerationListingOverflowError
src/filelock/_soft/_read_write/_generations.py:238
↓ 1 callersClassGroupReleaseLock
tests/async_lock/test_context_errors.py:188
↓ 1 callersClassGroupReleaseLock
tests/async_lock/test_release_cancellation.py:356
↓ 1 callersClassHeartbeatThread
src/filelock/_soft/_read_write/_heartbeat.py:19
↓ 1 callersClassHold
src/filelock/_soft/_read_write/_hold.py:129
↓ 1 callersClassInFlight
One acquisition that may need to be rolled back after an interrupt. :param frame: frame performing the acquisition :param levels_before:
src/filelock/_core/_state.py:47
↓ 1 callersClassInterruptedRegistry
tests/core/test_registry.py:263
↓ 1 callersClassIoStatusBlock
src/filelock/_filesystem/_windows/_handles.py:75
↓ 1 callersClassLabeledLock
tests/soft/read_write/test_lock_singleton.py:106
↓ 1 callersClassLeaseHeartbeat
Refresh thread for one lease claim. :param thread: thread that refreshes the marker :param stop: event that asks the thread to stop refr
src/filelock/_soft/_lease.py:438
↓ 1 callersClassLeaseSettingsMismatch
A lease contender disagrees with the published claim about how long the lease lasts.
src/filelock/_core/_errors.py:80
↓ 1 callersClassLock
tests/async_lock/test_release_cancellation.py:98
↓ 1 callersClassLockOptions
Options subclasses can forward to :class:`~filelock.BaseFileLock`. :ivar timeout: default wait in seconds. A negative value or infinity wait
src/filelock/_core/_settings.py:50
↓ 1 callersClassLosses
src/filelock/_soft/_read_write/_hold.py:32
↓ 1 callersClassMovingPath
tests/sqlite/test_lock_settings.py:64
↓ 1 callersClassMySoftFileLock
tests/core/test_singleton.py:88
↓ 1 callersClassNeverHoldsLock
tests/async_lock/test_backend_calls.py:79
↓ 1 callersClassObjectAttributes
src/filelock/_filesystem/_windows/_handles.py:65
↓ 1 callersClassOperation
src/filelock/_sqlite/_transactions.py:41
next →1–100 of 212, ranked by callers