MCPcopy Create free account

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

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

↓ 8 callersMethodlistdir
(self, path: str)
src/filelock/_soft/_read_write/_storage.py:287
↓ 8 callersFunctionnt_create
( # ruff:ignore[too-many-arguments, too-many-positional-arguments] # NtCreateFile's own knobs path:
src/filelock/_filesystem/_windows/_handles.py:213
↓ 8 callersFunctionon_break_recheck
(mocker: MockerFixture)
tests/conftest.py:157
↓ 8 callersFunctionplant_holder
(lock_file: str, *, mode: Literal["read", "write"], host: str = "terminated-pod")
tests/soft/read_write/lock_helpers.py:94
↓ 8 callersFunctionraise_grouped_errors
( message: str, first_error: BaseException, second_error: BaseException, *additional_errors: B
src/filelock/_core/_errors.py:226
↓ 8 callersMethodrun_in_executor
Whether synchronous lock operations run on a worker thread.
src/filelock/_async_lock/_release.py:189
↓ 8 callersFunctionwait_until_done
(future: asyncio.Future[_T])
src/filelock/_async_lock/_executor.py:70
↓ 8 callersMethodwrite_lock
Hold the lock until the context exits. See :meth:`acquire_write` for acquisition errors. :param timeout: seconds to wait, or ``None`
src/filelock/_sqlite/_async.py:136
↓ 7 callersMethod__del__
(self)
tasks/capabilities.py:80
↓ 7 callersFunction_close_after_commit
(mocker: MockerFixture, lock: AsyncSoftFileLock)
tests/async_lock/test_close_errors.py:48
↓ 7 callersFunction_is_exception_group
(error: BaseException)
src/filelock/_core/_errors.py:141
↓ 7 callersFunction_key
(path: str)
tests/soft/read_write/test_participant_model.py:319
↓ 7 callersMethod_relative
(self, path: str, depth: int = 2)
src/filelock/_soft/_read_write/_storage.py:137
↓ 7 callersMethod_soft_lock
(self)
src/filelock/_native/_unix.py:124
↓ 7 callersFunctionassert_mode_held
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/async_helpers.py:23
↓ 7 callersFunctioncanonical
(path: str | os.PathLike[str])
src/filelock/_core/_registry.py:33
↓ 7 callersFunctioncreate
(link: Path, target: Path)
tests/conftest.py:298
↓ 7 callersFunctionerror_details
(group: BaseExceptionGroup)
tests/core/fork_probes.py:38
↓ 7 callersFunctionfile_identity
(st: os.stat_result)
src/filelock/_soft/_exclusive/_publication.py:248
↓ 7 callersMethodis_thread_local
:returns: a flag indicating if this lock is thread local or not
src/filelock/_core/_state.py:293
↓ 7 callersMethodlink
(self, source: str, target: str)
src/filelock/_soft/_read_write/_storage.py:219
↓ 7 callersFunctionlstat
(path: str, *, dir_fd: int | None = None)
tests/async_lock/test_acquire.py:246
↓ 7 callersFunctionmake_sync
(tmp_path: Path)
tests/soft/read_write/async_helpers.py:120
↓ 7 callersFunctionmembers
(tmp_path: Path, name: str = "foo.lock")
tests/soft/read_write/async_helpers.py:52
↓ 7 callersFunctionnew_token
()
src/filelock/_soft/_read_write/_storage.py:362
↓ 7 callersFunctionon_this_stack
(frame: FrameType | None)
src/filelock/_core/_state.py:387
↓ 7 callersFunctionopen_into
(opened: list[int], path: str, flags: int, mode: int)
src/filelock/_filesystem/_files.py:73
↓ 7 callersMethodoverwrite
(self, path: str, data: bytes, identity: tuple[int, int], header: bytes)
src/filelock/_soft/_read_write/_storage.py:259
↓ 7 callersFunctionprocess_alive
(pid: int)
src/filelock/_identity/_process.py:70
↓ 7 callersMethodread_lock
Hold the lock until the context exits. See :meth:`acquire_read` for acquisition errors. :param timeout: seconds to wait, or ``None``
src/filelock/_sqlite/_async.py:68
↓ 7 callersFunctionregister_fork_object
(instance: ForkResettable)
src/filelock/_core/_fork.py:120
↓ 6 callersMethod_close_released_fd
(self, fd: int, *, default_suppresses: bool)
src/filelock/_core/_state.py:297
↓ 6 callersMethod_mark_descriptor_owned
(self, fd: int, identity: tuple[int, int] | None = None)
src/filelock/_core/_state.py:314
↓ 6 callersMethod_open_mode
(self)
src/filelock/_core/_state.py:310
↓ 6 callersMethod_release_with_fork_tracking
(self)
src/filelock/_core/_release.py:159
↓ 6 callersFunction_run
(script: str, *, measured: bool = True)
tests/test_lazy_import.py:32
↓ 6 callersFunctionacquire
(label: str)
tests/soft/strict/test_publication.py:65
↓ 6 callersMethodacquire_read
Acquire a shared read lock. Reentry adds one level. :param timeout: wait limit in seconds, ``-1`` to wait indefinitely, or ``None``
src/filelock/_soft/_read_write/_lock.py:277
↓ 6 callersFunctionappend_exception_context
(error: BaseException, context: BaseException)
src/filelock/_core/_errors.py:187
↓ 6 callersMethodbreak_lock
Remove this lock's soft marker on its resolved path. :raises RuntimeError: if the current path has not entered a soft fallba
src/filelock/_native/_unix.py:408
↓ 6 callersFunctioncreate_junction
()
tests/conftest.py:296
↓ 6 callersFunctionfuture_result
(future: asyncio.Future[BackendOutcome[_T]])
src/filelock/_async_lock/_executor.py:92
↓ 6 callersMethodget_lock
Get the singleton lock for this path. :param lock_file: path to the lock database :param timeout: default wait in seconds
src/filelock/_sqlite/_lock.py:125
↓ 6 callersFunctionlink
( source: str, destination: str, *, src_dir_fd: int | None = N
tests/soft/strict/test_publication.py:109
↓ 6 callersMethodobserve
(self, key: str, value: bytes | None, *, asked: float)
src/filelock/_soft/_read_write/_sweep.py:42
↓ 6 callersFunctionparse_lock_holder
(content: str | None)
src/filelock/_soft/_records.py:65
↓ 6 callersFunctionparse_marker
(content: str | None)
src/filelock/_soft/_records.py:94
↓ 6 callersFunctionpatch_connection
( mocker: MockerFixture, *, execute: Callable[[sqlite3.Connection, str], sqlite3.Cursor] | None =
tests/sqlite/async_helpers.py:59
↓ 6 callersFunctionsqlite_transition
()
src/filelock/_sqlite/_fork.py:236
↓ 6 callersMethodtimeout
The default timeout value, in seconds. .. versionadded:: 2.0.0
src/filelock/_core/_lock.py:304
↓ 6 callersFunctionwait_until
(condition: Callable[[], bool])
tests/soft/read_write/lock_helpers.py:87
↓ 5 callersMethod_commit_release
(self)
src/filelock/_core/_release.py:114
↓ 5 callersFunction_fail_close_of
(mocker: MockerFixture, lock: BaseFileLock, error: OSError)
tests/core/test_context_errors.py:261
↓ 5 callersMethod_holder_path
(self, token: str)
src/filelock/_soft/_read_write/_participant.py:80
↓ 5 callersFunction_hot_journal
(super_journal: Path)
tests/sqlite/test_connection_side_files.py:50
↓ 5 callersFunction_in_subinterpreter
()
src/filelock/_sqlite/_fork.py:38
↓ 5 callersFunction_interrupted_at_call
( lock: BaseFileLock, target: int, operation: Callable[[], object], *, callee: CodeType | None = None )
tests/core/test_interruption.py:94
↓ 5 callersFunction_join_threads
(*threads: threading.Thread)
tests/soft/strict/test_publication.py:131
↓ 5 callersFunction_lose_to_a_live_holder
( # pragma: win32 no cover lock: Path, live: str, mocker: MockerFixture, then: Callable[[str, str], bool
tests/soft/exclusive/test_recovery_exchange.py:104
↓ 5 callersMethod_path
(self, generation: int)
src/filelock/_soft/_read_write/_generations.py:102
↓ 5 callersMethod_raise_if_inherited
(self)
src/filelock/_core/_acquire.py:179
↓ 5 callersFunction_read_and_probe
(lock: AsyncReadWriteLock)
tests/sqlite/test_async_singletons.py:87
↓ 5 callersMethod_record
(self)
tests/soft/read_write/test_participant_model.py:267
↓ 5 callersFunction_restore_name
(lock: Path, pid: int | str)
tests/soft/exclusive/test_recovery_claim.py:107
↓ 5 callersMethod_undo_async_acquire
(self)
src/filelock/_async_lock/_acquire.py:224
↓ 5 callersFunctionbreak_marker_path
(lock_file: str, pid: int)
src/filelock/_filesystem/_exchange.py:99
↓ 5 callersFunctioncall
(instance: _T)
tests/read_write_helpers.py:107
↓ 5 callersFunctioncancelling_oplock_wait
Request cancellation when a reader blocks synchronous I/O. :param deadline: monotonic deadline, or None for the default grace period
src/filelock/_filesystem/_windows/_oplocks.py:75
↓ 5 callersFunctionclone
( request: pytest.FixtureRequest, )
tests/core/test_errors.py:151
↓ 5 callersMethodclose
(self)
src/filelock/_sqlite/_connection.py:225
↓ 5 callersFunctionconnect
( database: str, *, factory: type[sqlite3.Connection], timeout: float, )
tests/sqlite/async_helpers.py:68
↓ 5 callersFunctiondirectory_is_private
Check the directory owner and inherited write permissions. :param path: directory to inspect :returns: whether only trusted
src/filelock/_filesystem/_windows/_directories.py:144
↓ 5 callersFunctiondrain_future
(future: asyncio.Future[BackendOutcome[_T]])
src/filelock/_async_lock/_executor.py:75
↓ 5 callersFunctionexchange_supported
()
src/filelock/_filesystem/_exchange.py:103
↓ 5 callersFunctionfirst
()
tests/async_lock/test_transitions.py:25
↓ 5 callersFunctionlstat
(path: str | os.PathLike[str])
tests/soft/test_lease_heartbeat.py:165
↓ 5 callersFunctionopen_raising_for
(claim: Path, error: OSError, mocker: MockerFixture)
tests/soft/strict/filesystem_faults.py:64
↓ 5 callersFunctionopen_read_without_oplock_wait
Read a file without waiting for an oplock break. :param path: file to open :param share_delete: allow deletion while the des
src/filelock/_filesystem/_windows/_oplocks.py:127
↓ 5 callersFunctionparse_snapshot
(data: bytes)
src/filelock/_soft/_read_write/_generations.py:242
↓ 5 callersFunctionpin_claim_directory
(directory: Path, *, acquiring: bool = False)
src/filelock/_soft/_strict/_directories.py:392
↓ 5 callersFunctionpinned
Keep the directory at its current path for the duration of the block. :param path: directory to pin :yields: volume serial n
src/filelock/_filesystem/_windows/_directories.py:131
↓ 5 callersFunctionraise_chained_errors
(first_error: BaseException, second_error: BaseException | None = None)
src/filelock/_core/_errors.py:145
↓ 5 callersFunctionregister_fork_class
(cls: type[ForkClassResettable])
src/filelock/_core/_fork.py:66
↓ 5 callersFunctionrelease
(lock: SoftReadWriteLock, holder: int)
tests/soft/read_write/conftest.py:36
↓ 5 callersFunctionremove_link_directory
(link: LinkDirectory)
src/filelock/_sqlite/_links.py:277
↓ 5 callersFunctionscandir_relative
( directory_ref: tuple[str, int | None], )
src/filelock/_soft/_strict/_directories.py:251
↓ 5 callersFunctionstatus_error
(status: int, path: str)
src/filelock/_filesystem/_windows/_handles.py:261
↓ 5 callersFunctionunlink_without_oplock_wait
Delete the name on close, leaving it in place if an oplock blocks the open. :param path: name to remove
src/filelock/_filesystem/_windows/_oplocks.py:209
↓ 5 callersFunctionwait_until
(condition: Callable[[], bool])
tests/soft/lease_helpers.py:48
↓ 4 callersMethod__init__
(self, lock_file: str, *, marker: int = 0)
tests/core/test_subclass_options.py:190
↓ 4 callersFunction_acquire_after_reclaim
(lock: MarkerSoftFileLock)
tests/soft/exclusive/test_marker.py:98
↓ 4 callersFunction_acquire_within_deadline
( lock: AsyncReadWriteLock | AsyncSoftReadWriteLock, mode: Literal["read", "write"], timeout: float )
tests/async_lock/test_read_write_wait.py:99
↓ 4 callersFunction_begin_claim
(name: str | Path)
src/filelock/_soft/_exclusive/_recovery.py:260
↓ 4 callersFunction_end_claim
(name: str | Path)
src/filelock/_soft/_exclusive/_recovery.py:269
↓ 4 callersMethod_finish_connection
(self)
src/filelock/_sqlite/_transactions.py:66
↓ 4 callersFunction_fork_process
( # pragma: needs fork target: Callable[[], object] | Callable[[float], object], args: tuple[float, ...]
tests/soft/read_write/test_lock_fork.py:90
↓ 4 callersFunction_host_digest
(host: str)
src/filelock/_sqlite/_links.py:272
↓ 4 callersFunction_interrupt_points
(lock: BaseFileLock, operation: Callable[[], object], *, callee: CodeType | None = None)
tests/core/test_interruption.py:60
↓ 4 callersMethod_notify
(self)
src/filelock/_async_lock/_owners.py:169
↓ 4 callersFunction_patch_claim_publication
( mocker: MockerFixture, effect: Callable[[str, Callable[[], int | None]], int | None] )
tests/soft/strict/test_publication.py:86
← previousnext →101–200 of 3,548, ranked by callers