Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ functions
Functions
3,548 in github.com/tox-dev/filelock
⨍
Functions
3,548
◇
Types & classes
212
↳
Endpoints
35
Function
fstat_unlinked_once
(fd: int)
tests/native/test_unix.py:41
Function
fstat_with_other_owner
(fd: int)
tests/sqlite/test_links_sweep.py:308
Function
gated_acquire
(acquire: functools.partial[AcquireReturnProxy])
tests/soft/read_write/test_async_close.py:101
Function
gated_acquire
(acquire: functools.partial[AcquireReturnProxy])
tests/sqlite/test_async_close.py:85
Method
generation
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
Method
generation
The current hold's fencing token, or ``None`` when unlocked.
src/filelock/_soft/_read_write/_async.py:84
Method
get_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
Method
given_up
()
src/filelock/_async_lock/_transitions.py:38
Function
group_writable_umask
()
tests/native/conftest.py:43
Function
grow_after_intent
(directory_ref: tuple[str, int | None])
tests/soft/strict/test_scan_limit.py:117
Function
handoff
(_signum: int, _frame: FrameType | None)
tests/core/test_acquire_signal.py:51
Method
has_explicit_mode
Whether the file permissions were explicitly set.
src/filelock/_core/_lock.py:383
Function
head
(root: str)
tests/soft/read_write/conftest.py:54
Function
held_lock_path
(tmp_path: Path)
tests/native/test_unix_modes.py:58
Function
hide
()
tests/identity/conftest.py:24
Function
hold
(path: Path, *, read_handle: bool = False)
tests/conftest.py:362
Function
hold
()
tests/core/test_shutdown.py:207
Function
hold_after_release
()
tests/core/test_release_interruption.py:80
Function
hold_claim_rename
(fd: int, public_path: str)
tests/soft/strict/test_windows_oplock.py:57
Function
hold_lock
()
tests/core/test_fork_descriptors.py:30
Function
hold_read
()
tests/sqlite/test_transactions.py:232
Function
hold_replacement
()
tests/core/test_fork_backends.py:62
Function
hold_write
()
tests/sqlite/test_transactions.py:212
Function
holder_moves_the_break_name
(break_name: str, path: str)
tests/soft/exclusive/test_recovery_exchange.py:215
Function
holder_releases_then_open
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/filesystem/test_exchange_recovery.py:109
Function
hook
(frame: FrameType, event: str, _arg: Unused)
tests/core/test_interruption.py:78
Function
hook
(fd: int)
tests/core/test_on_acquired.py:51
Function
hook
(_seconds: float)
tests/soft/read_write/test_lock_contention.py:251
Function
hook
(_fd: int)
tests/async_lock/test_acquire_cancellation_errors.py:62
Function
hook
(fd: int)
tests/async_lock/test_backend_calls.py:154
Function
inherit_permissions
(path: str, mode: int = 0o777, *, dir_fd: int | None = None)
tests/sqlite/test_links.py:228
Function
inherited_child
()
tests/core/test_fork_namespaces.py:178
Function
inherited_child
()
tests/core/test_fork_ownership.py:110
Function
inheriting_directory
(tmp_path: Path)
tests/conftest.py:308
Function
initialized_lock_path
(tmp_path: Path)
tests/soft/strict/conftest.py:21
Function
inspect_then_remove
(path: PathValue, **options: int | bool | None)
tests/soft/strict/test_scan.py:175
Function
inspect_then_swap
(path: PathValue, **options: int | bool | None)
tests/soft/strict/test_windows_directories.py:59
Function
inspecting
()
tests/soft/exclusive/test_publication_rollback.py:254
Function
interrupt
()
tests/core/test_interruption.py:99
Function
interrupt
(worker: threading.Thread)
tests/soft/strict/test_release_worker.py:189
Function
interrupt
(fd: int, path: str)
tests/soft/strict/test_windows_publication.py:140
Function
interrupt
(_frame: FrameType, event: str, _arg: Unused)
tests/soft/exclusive/test_publication_rollback.py:228
Function
interrupt
( frame: FrameType, event: str, _operation: BuiltinFunctionType | None )
tests/native/test_unix_probe.py:85
Function
interrupt
( frame: FrameType, event: str, operation: BuiltinFunctionType | None )
tests/native/conftest.py:23
Function
interrupt
(frame: FrameType, event: str, _arg: Unused)
tasks/capabilities.py:178
Function
interrupt_after_exchange
(source: str, target: str)
tests/filesystem/test_exchange_recovery.py:285
Function
interrupt_after_nested_hold
(*, force: bool)
tests/core/test_release_interruption.py:160
Function
interrupt_after_the_exchange
(path: str | os.PathLike[str], *, dir_fd: int | None = None)
tests/filesystem/test_exchange_recovery.py:312
Function
interrupt_check
(_path: str)
tests/filesystem/test_exchange_recovery.py:281
Function
interrupt_registration
(fd: int)
tests/core/test_fork_backends.py:309
Function
interrupted
(path: Path)
tests/sqlite/test_links_sweep.py:169
Method
is_lock_held_by_us
Whether the soft fallback marker identifies this process.
src/filelock/_native/_unix.py:136
Method
is_lock_held_by_us
Whether the owner record identifies this process.
src/filelock/_soft/_exclusive/_marker.py:42
Method
is_lock_held_by_us
Whether the marker identifies this process by PID, host and recorded start time.
src/filelock/_soft/_exclusive/_lock.py:37
Method
is_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
Method
is_locked
Whether this hold owns a lock or still has a release running.
src/filelock/_soft/_strict/_release.py:130
Method
is_singleton
A flag indicating if this lock is singleton or not. .. versionadded:: 3.13.0
src/filelock/_core/_lock.py:235
Function
join_then_interrupt
(instance: AsyncTransitionGate, ticket: ConcurrentFuture[None])
tests/async_lock/test_transitions.py:184
Function
join_then_interrupt
(instance: AsyncTransitionGate, ticket: ConcurrentFuture[None])
tests/async_lock/test_admission.py:104
Function
judged
(pid: int)
tests/conftest.py:163
Method
lease_duration
The staleness in seconds after which a contender may take this claim.
src/filelock/_soft/_lease.py:113
Function
lease_settings
()
tests/soft/conftest.py:19
Function
lease_then_interrupt
( descriptors: filelock._sqlite._connection._ProbeDescriptors, fd_or_database: int | str,
tests/sqlite/test_connection_descriptors.py:228
Function
leased_lock_path
(tmp_path: Path)
tests/native/test_unix.py:257
Function
leased_sentinel
(initialized_lock_path: Path)
tests/soft/strict/test_sentinel.py:242
Function
legacy_break_lock_after_publication
(public_path: str, record: bytes, mode: int)
tests/soft/strict/test_sentinel.py:318
Function
legacy_disposition
(handle: int, *, published: bool = False)
tests/soft/strict/filesystem_faults.py:102
Method
lifetime
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
Method
lifetime
(self, value: float | None)
src/filelock/_native/_unix.py:95
Method
link
(self, source: str, target: str)
src/filelock/_soft/_read_write/_storage.py:72
Function
link_then_deny
(self: OsFiles, source: str, target: str)
tests/soft/read_write/test_participant.py:295
Function
link_then_fail
(source: str, target: str, **dir_fds: int | None)
tests/soft/read_write/test_storage.py:85
Function
link_then_peer_reaps
( source: PathValue, destination: PathValue, *, src_dir_fd: int | None = None,
tests/soft/strict/test_publication_races.py:61
Function
link_then_peers_commit
(source: str, target: str)
tests/soft/read_write/test_generations_publication.py:122
Function
link_then_report_exists
( source: PathValue, destination: PathValue, *, src_dir_fd: int | None = None,
tests/soft/strict/test_publication_races.py:34
Function
link_then_wipe
(source: str, target: str)
tests/soft/read_write/test_generations_publication.py:29
Method
listdir
(self, path: str)
src/filelock/_soft/_read_write/_storage.py:84
Function
local_filesystem
(mocker: MockerFixture, fs_type: int | bytes, capability: int)
tests/filesystem/test_ownership.py:113
Function
lock
(lock_file: str)
tests/soft/read_write/conftest.py:73
Method
lock_counter
The number of times this lock has been acquired (but not yet released).
src/filelock/_core/_state.py:262
Function
lock_file
(tmp_path: Path)
tests/soft/read_write/conftest.py:68
Function
lock_file
(tmp_path: Path)
tests/sqlite/conftest.py:39
Method
lock_file
The path of the file lock.
src/filelock/_core/_errors.py:49
Method
lock_file
The requested lock path.
src/filelock/_core/_errors.py:115
Method
lock_file
Path to the lock file.
src/filelock/_core/_state.py:257
Method
lock_file
The path to the lock file.
src/filelock/_async_lock/_backends.py:202
Function
lock_path
(tmp_path: Path)
tests/soft/strict/conftest.py:34
Function
lock_path
(tmp_path: Path)
tests/soft/exclusive/conftest.py:22
Function
lock_path_in_shared_tmp
()
tests/conftest.py:237
Method
lock_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
Function
look_up_while_closing
(_frame: FrameType, event: str, arg: BuiltinFunctionType)
tests/sqlite/test_transactions_connection.py:157
Method
loop
Loop, or ``None`` for the running loop.
src/filelock/_async_lock/_backends.py:111
Method
loop
The event loop.
src/filelock/_async_lock/_release.py:249
Function
loosened_directories
(mocker: MockerFixture)
tests/sqlite/test_links.py:397
Function
lose_commit
(_log: GenerationLog, successor: Snapshot)
tests/soft/read_write/test_participant.py:76
Function
lose_first_hand_off
(instance: AsyncTransitionGate)
tests/async_lock/test_transitions.py:215
Function
lost
()
tests/soft/read_write/test_hold.py:155
Function
lost_lock
(lock_file: str, lost: threading.Event)
tests/soft/read_write/test_hold.py:160
Function
lost_windows_doorway
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_withdrawal.py:29
Function
lstat
(path: str | os.PathLike[str])
tests/soft/test_lease_finalization.py:135
← previous
next →
1,401–1,500 of 3,548, ranked by callers