MCPcopy Create free account

hub / github.com/tox-dev/filelock / functions

Functions3,548 in github.com/tox-dev/filelock

Functionfstat_unlinked_once
(fd: int)
tests/native/test_unix.py:41
Functionfstat_with_other_owner
(fd: int)
tests/sqlite/test_links_sweep.py:308
Functiongated_acquire
(acquire: functools.partial[AcquireReturnProxy])
tests/soft/read_write/test_async_close.py:101
Functiongated_acquire
(acquire: functools.partial[AcquireReturnProxy])
tests/sqlite/test_async_close.py:85
Methodgeneration
The generation at which the current hold was granted, or ``None`` when no lock is held. A protected resource can reject writes with
src/filelock/_soft/_read_write/_hold.py:53
Methodgeneration
The current hold's fencing token, or ``None`` when unlocked.
src/filelock/_soft/_read_write/_async.py:84
Methodget_lock
Return the singleton for *lock_file*. :param lock_file: lock path :param timeout: wait limit in seconds, or ``-1`` to wait i
src/filelock/_soft/_read_write/_lock.py:235
Methodgiven_up
()
src/filelock/_async_lock/_transitions.py:38
Functiongroup_writable_umask
()
tests/native/conftest.py:43
Functiongrow_after_intent
(directory_ref: tuple[str, int | None])
tests/soft/strict/test_scan_limit.py:117
Functionhandoff
(_signum: int, _frame: FrameType | None)
tests/core/test_acquire_signal.py:51
Methodhas_explicit_mode
Whether the file permissions were explicitly set.
src/filelock/_core/_lock.py:383
Functionhead
(root: str)
tests/soft/read_write/conftest.py:54
Functionheld_lock_path
(tmp_path: Path)
tests/native/test_unix_modes.py:58
Functionhide
()
tests/identity/conftest.py:24
Functionhold
(path: Path, *, read_handle: bool = False)
tests/conftest.py:362
Functionhold
()
tests/core/test_shutdown.py:207
Functionhold_after_release
()
tests/core/test_release_interruption.py:80
Functionhold_claim_rename
(fd: int, public_path: str)
tests/soft/strict/test_windows_oplock.py:57
Functionhold_lock
()
tests/core/test_fork_descriptors.py:30
Functionhold_read
()
tests/sqlite/test_transactions.py:232
Functionhold_replacement
()
tests/core/test_fork_backends.py:62
Functionhold_write
()
tests/sqlite/test_transactions.py:212
Functionholder_moves_the_break_name
(break_name: str, path: str)
tests/soft/exclusive/test_recovery_exchange.py:215
Functionholder_releases_then_open
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/filesystem/test_exchange_recovery.py:109
Functionhook
(frame: FrameType, event: str, _arg: Unused)
tests/core/test_interruption.py:78
Functionhook
(fd: int)
tests/core/test_on_acquired.py:51
Functionhook
(_seconds: float)
tests/soft/read_write/test_lock_contention.py:251
Functionhook
(_fd: int)
tests/async_lock/test_acquire_cancellation_errors.py:62
Functionhook
(fd: int)
tests/async_lock/test_backend_calls.py:154
Functioninherit_permissions
(path: str, mode: int = 0o777, *, dir_fd: int | None = None)
tests/sqlite/test_links.py:228
Functioninherited_child
()
tests/core/test_fork_namespaces.py:178
Functioninherited_child
()
tests/core/test_fork_ownership.py:110
Functioninheriting_directory
(tmp_path: Path)
tests/conftest.py:308
Functioninitialized_lock_path
(tmp_path: Path)
tests/soft/strict/conftest.py:21
Functioninspect_then_remove
(path: PathValue, **options: int | bool | None)
tests/soft/strict/test_scan.py:175
Functioninspect_then_swap
(path: PathValue, **options: int | bool | None)
tests/soft/strict/test_windows_directories.py:59
Functioninspecting
()
tests/soft/exclusive/test_publication_rollback.py:254
Functioninterrupt
()
tests/core/test_interruption.py:99
Functioninterrupt
(worker: threading.Thread)
tests/soft/strict/test_release_worker.py:189
Functioninterrupt
(fd: int, path: str)
tests/soft/strict/test_windows_publication.py:140
Functioninterrupt
(_frame: FrameType, event: str, _arg: Unused)
tests/soft/exclusive/test_publication_rollback.py:228
Functioninterrupt
( frame: FrameType, event: str, _operation: BuiltinFunctionType | None )
tests/native/test_unix_probe.py:85
Functioninterrupt
( frame: FrameType, event: str, operation: BuiltinFunctionType | None )
tests/native/conftest.py:23
Functioninterrupt
(frame: FrameType, event: str, _arg: Unused)
tasks/capabilities.py:178
Functioninterrupt_after_exchange
(source: str, target: str)
tests/filesystem/test_exchange_recovery.py:285
Functioninterrupt_after_nested_hold
(*, force: bool)
tests/core/test_release_interruption.py:160
Functioninterrupt_after_the_exchange
(path: str | os.PathLike[str], *, dir_fd: int | None = None)
tests/filesystem/test_exchange_recovery.py:312
Functioninterrupt_check
(_path: str)
tests/filesystem/test_exchange_recovery.py:281
Functioninterrupt_registration
(fd: int)
tests/core/test_fork_backends.py:309
Functioninterrupted
(path: Path)
tests/sqlite/test_links_sweep.py:169
Methodis_lock_held_by_us
Whether the soft fallback marker identifies this process.
src/filelock/_native/_unix.py:136
Methodis_lock_held_by_us
Whether the owner record identifies this process.
src/filelock/_soft/_exclusive/_marker.py:42
Methodis_lock_held_by_us
Whether the marker identifies this process by PID, host and recorded start time.
src/filelock/_soft/_exclusive/_lock.py:37
Methodis_locked
Whether this instance still records a hold. After a native unlock raises, this can remain ``True`` until an explicit ``release()`` re
src/filelock/_core/_state.py:238
Methodis_locked
Whether this hold owns a lock or still has a release running.
src/filelock/_soft/_strict/_release.py:130
Methodis_singleton
A flag indicating if this lock is singleton or not. .. versionadded:: 3.13.0
src/filelock/_core/_lock.py:235
Functionjoin_then_interrupt
(instance: AsyncTransitionGate, ticket: ConcurrentFuture[None])
tests/async_lock/test_transitions.py:184
Functionjoin_then_interrupt
(instance: AsyncTransitionGate, ticket: ConcurrentFuture[None])
tests/async_lock/test_admission.py:104
Functionjudged
(pid: int)
tests/conftest.py:163
Methodlease_duration
The staleness in seconds after which a contender may take this claim.
src/filelock/_soft/_lease.py:113
Functionlease_settings
()
tests/soft/conftest.py:19
Functionlease_then_interrupt
( descriptors: filelock._sqlite._connection._ProbeDescriptors, fd_or_database: int | str,
tests/sqlite/test_connection_descriptors.py:228
Functionleased_lock_path
(tmp_path: Path)
tests/native/test_unix.py:257
Functionleased_sentinel
(initialized_lock_path: Path)
tests/soft/strict/test_sentinel.py:242
Functionlegacy_break_lock_after_publication
(public_path: str, record: bytes, mode: int)
tests/soft/strict/test_sentinel.py:318
Functionlegacy_disposition
(handle: int, *, published: bool = False)
tests/soft/strict/filesystem_faults.py:102
Methodlifetime
The soft marker age in seconds that permits expiry, or ``None`` to disable age-based expiry. A non-``None`` value permits a waiter t
src/filelock/_core/_lock.py:354
Methodlifetime
(self, value: float | None)
src/filelock/_native/_unix.py:95
Methodlink
(self, source: str, target: str)
src/filelock/_soft/_read_write/_storage.py:72
Functionlink_then_deny
(self: OsFiles, source: str, target: str)
tests/soft/read_write/test_participant.py:295
Functionlink_then_fail
(source: str, target: str, **dir_fds: int | None)
tests/soft/read_write/test_storage.py:85
Functionlink_then_peer_reaps
( source: PathValue, destination: PathValue, *, src_dir_fd: int | None = None,
tests/soft/strict/test_publication_races.py:61
Functionlink_then_peers_commit
(source: str, target: str)
tests/soft/read_write/test_generations_publication.py:122
Functionlink_then_report_exists
( source: PathValue, destination: PathValue, *, src_dir_fd: int | None = None,
tests/soft/strict/test_publication_races.py:34
Functionlink_then_wipe
(source: str, target: str)
tests/soft/read_write/test_generations_publication.py:29
Methodlistdir
(self, path: str)
src/filelock/_soft/_read_write/_storage.py:84
Functionlocal_filesystem
(mocker: MockerFixture, fs_type: int | bytes, capability: int)
tests/filesystem/test_ownership.py:113
Functionlock
(lock_file: str)
tests/soft/read_write/conftest.py:73
Methodlock_counter
The number of times this lock has been acquired (but not yet released).
src/filelock/_core/_state.py:262
Functionlock_file
(tmp_path: Path)
tests/soft/read_write/conftest.py:68
Functionlock_file
(tmp_path: Path)
tests/sqlite/conftest.py:39
Methodlock_file
The path of the file lock.
src/filelock/_core/_errors.py:49
Methodlock_file
The requested lock path.
src/filelock/_core/_errors.py:115
Methodlock_file
Path to the lock file.
src/filelock/_core/_state.py:257
Methodlock_file
The path to the lock file.
src/filelock/_async_lock/_backends.py:202
Functionlock_path
(tmp_path: Path)
tests/soft/strict/conftest.py:34
Functionlock_path
(tmp_path: Path)
tests/soft/exclusive/conftest.py:22
Functionlock_path_in_shared_tmp
()
tests/conftest.py:237
Methodlock_path_occupant
Describe an occupant blocking the strict sentinel, or return ``None`` for an empty path or the sentinel. A soft-lock marker can bloc
src/filelock/_soft/_strict/_lock.py:110
Functionlook_up_while_closing
(_frame: FrameType, event: str, arg: BuiltinFunctionType)
tests/sqlite/test_transactions_connection.py:157
Methodloop
Loop, or ``None`` for the running loop.
src/filelock/_async_lock/_backends.py:111
Methodloop
The event loop.
src/filelock/_async_lock/_release.py:249
Functionloosened_directories
(mocker: MockerFixture)
tests/sqlite/test_links.py:397
Functionlose_commit
(_log: GenerationLog, successor: Snapshot)
tests/soft/read_write/test_participant.py:76
Functionlose_first_hand_off
(instance: AsyncTransitionGate)
tests/async_lock/test_transitions.py:215
Functionlost
()
tests/soft/read_write/test_hold.py:155
Functionlost_lock
(lock_file: str, lost: threading.Event)
tests/soft/read_write/test_hold.py:160
Functionlost_windows_doorway
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_withdrawal.py:29
Functionlstat
(path: str | os.PathLike[str])
tests/soft/test_lease_finalization.py:135
← previousnext →1,401–1,500 of 3,548, ranked by callers