MCPcopy Create free account

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

Functions1,605 in github.com/tox-dev/filelock

↓ 1 callersFunction_unlink_private_record_once
(directory_ref: tuple[str, int | None], private_name: str)
src/filelock/_strict.py:617
↓ 1 callersFunction_unlink_relative_if_identity
( directory_ref: tuple[str, int | None], name: str, identity: tuple[int, int], )
src/filelock/_strict.py:639
↓ 1 callersFunction_unlock_fd
(fd: int)
src/filelock/_windows.py:169
↓ 1 callersFunction_unsupported_async_options
( option: Literal["thread_local", "loop", "run_in_executor", "executor"], loop: asyncio.AbstractEventL
tests/test_subclass_options.py:243
↓ 1 callersFunction_validate_force_break_name
(name: str)
src/filelock/_strict.py:842
↓ 1 callersFunction_verify_across
(mounts: list[Path])
tasks/verify_filesystem.py:64
↓ 1 callersFunction_verify_unverified_descriptors
()
src/filelock/_api.py:1719
↓ 1 callersFunction_write_intent_pending
(prober: ReadWriteLock, deadline: float)
tests/test_read_write.py:552
↓ 1 callersMethod_write_lock_info
(fd: int)
src/filelock/_soft.py:107
↓ 1 callersFunction_write_stale_marker
(path: str, content: bytes)
tests/soft_rw/test_soft_rw_sync.py:1126
↓ 1 callersFunctionacquire
()
tests/test_async_filelock_transition_admission.py:122
↓ 1 callersMethodacquire
Try to acquire the file lock. :param timeout: maximum wait time for acquiring the lock, ``None`` means use the default :
src/filelock/asyncio.py:253
↓ 1 callersMethodacquire_escrow
( # pragma: <3.12 cover # pragma: needs fork self, functions: tuple[Callable[[sqlite3.Connec
src/filelock/_read_write.py:164
↓ 1 callersFunctionacquire_other
()
tests/test_async_filelock.py:484
↓ 1 callersMethodacquire_read
Acquire a shared read lock. See :meth:`SoftReadWriteLock.acquire_read` for reentrancy / upgrade / fork semantics. The blocking work
src/filelock/_soft_rw/_async.py:142
↓ 1 callersFunctionacquire_second
()
tests/test_async_filelock_transition_admission.py:62
↓ 1 callersFunctionbody
()
tasks/capabilities.py:138
↓ 1 callersFunctioncancel_queued_acquire
()
tests/test_async_read_write_cancellation.py:359
↓ 1 callersMethodclose
(self)
src/filelock/_read_write.py:154
↓ 1 callersFunctionclose_a_pipe
()
tests/test_soft_stale.py:627
↓ 1 callersFunctionclose_a_pipe
()
tests/test_async_filelock.py:808
↓ 1 callersFunctiondecorated_method
()
tests/test_filelock.py:583
↓ 1 callersFunctionfail_before_start
()
tests/test_read_write.py:543
↓ 1 callersFunctionfail_in_context
()
tests/test_async_read_write_cancellation.py:317
↓ 1 callersFunctionfail_in_context
()
tests/test_async_filelock_runner_shutdown.py:180
↓ 1 callersMethodfunctions
( self, )
src/filelock/_read_write.py:62
↓ 1 callersFunctiongate
()
tasks/capabilities.py:134
↓ 1 callersMethodhold_for_acquire
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, de
src/filelock/_async.py:54
↓ 1 callersFunctionholder
()
tests/test_async_filelock.py:509
↓ 1 callersFunctionmain
()
tasks/benchmark.py:45
↓ 1 callersFunctionmain
()
tasks/deny_symlink.py:45
↓ 1 callersFunctionmain
()
tasks/verify_filesystem.py:52
↓ 1 callersFunctionmain
()
tasks/capability/assert_fallback.py:14
↓ 1 callersFunctionmeasure
()
tasks/benchmark.py:129
↓ 1 callersFunctionprobe
()
tasks/capabilities.py:110
↓ 1 callersMethodraise_if_poisoned
(self, path: pathlib.Path)
src/filelock/_read_write.py:98
↓ 1 callersFunctionrelease
()
tests/test_async_filelock_release_cancellation.py:114
↓ 1 callersFunctionrelease
()
tests/test_async_filelock.py:534
↓ 1 callersMethodreset_synchronization
(self)
src/filelock/_api.py:1530
↓ 1 callersFunctionrun_context
()
tests/test_async_filelock_rollback_agnostic.py:215
↓ 1 callersFunctionstart_acquire
()
tests/test_async_filelock_runner_shutdown.py:144
↓ 1 callersFunctionstart_context
()
tests/test_async_filelock_runner_shutdown.py:184
↓ 1 callersFunctionthird
()
tests/test_async_transition_gate.py:72
↓ 1 callersFunctionwaiter
()
tests/test_async_filelock.py:516
Method__aenter__
(self)
src/filelock/_async_read_write.py:323
Method__aenter__
Acquire the lock. :returns: the lock object
src/filelock/asyncio.py:625
Method__aenter__
(self)
src/filelock/asyncio.py:717
Method__aenter__
(self)
src/filelock/_soft_rw/_async.py:257
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_async_read_write.py:326
Method__aexit__
Release the lock, reconciling a release failure with any body failure per :attr:`context_error_policy`. :param exc_type: the excepti
src/filelock/asyncio.py:635
Method__aexit__
( # ruff:ignore[undocumented-magic-method] # releases the wrapped lock on exit self, exc_typ
src/filelock/asyncio.py:720
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_soft_rw/_async.py:260
Method__await__
(self)
tasks/capabilities.py:126
Method__call__
( self, *, before: Callable[[], None] | None = None, after_in_
src/filelock/_api.py:61
Method__call__
( cls, lock_file: str | os.PathLike[str], timeout: float = -1, *, bloc
src/filelock/_read_write.py:193
Method__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls: t
src/filelock/asyncio.py:72
Method__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls,
src/filelock/_soft_rw/_sync.py:58
Method__call__
(self, lock_file: str, *, unknown: bool)
tests/test_subclass_options.py:406
Method__call__
(self, *, after_in_child: Callable[[], None] | None = None)
tests/fork_helpers.py:13
Method__del__
Force-release so a dropped reference never leaks a held lock.
src/filelock/_api.py:973
Method__del__
(self)
src/filelock/_read_write.py:174
Method__del__
(self)
src/filelock/_async_read_write.py:310
Method__del__
Release on deletion; safe to call during GC even when no event loop is running.
src/filelock/asyncio.py:676
Method__enter__
Acquire the lock. :returns: the lock object
src/filelock/_api.py:944
Method__enter__
(self)
src/filelock/_api.py:1440
Method__enter__
Sync context manager entry is not supported because lock acquisition is a coroutine.
src/filelock/asyncio.py:610
Method__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_api.py:1443
Method__exit__
Sync context manager exit is not supported because lock release is a coroutine.
src/filelock/asyncio.py:615
Method__init__
(self)
src/filelock/_api.py:329
Method__init__
Create a new lock object. :param lock_file: path to the file :param timeout: default timeout when acquiring the lock, in sec
src/filelock/_api.py:647
Method__init__
(self, lock: BaseFileLock | ReadWriteLock | SoftReadWriteLock)
src/filelock/_api.py:1437
Method__init__
(self)
src/filelock/_read_write.py:58
Method__init__
(self)
src/filelock/_read_write.py:91
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1, *, blo
src/filelock/_read_write.py:300
Method__init__
(self, lock_file: str, claim_name: str | None, reason: str)
src/filelock/_error.py:38
Method__init__
(self)
src/filelock/_lease.py:66
Method__init__
Create a lease. :param lease_duration: seconds of marker staleness after which a contender may take the claim. Every contender
src/filelock/_lease.py:111
Method__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_async_read_write.py:62
Method__init__
(self, lock: AsyncReadWriteLock)
src/filelock/_async_read_write.py:320
Method__init__
Create a new lock object. :param lock_file: path to the file :param timeout: default timeout when acquiring the lock, in sec
src/filelock/asyncio.py:136
Method__init__
(self, lock: BaseAsyncFileLock)
src/filelock/asyncio.py:714
Method__init__
(self)
src/filelock/_async.py:32
Method__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_soft_rw/_sync.py:164
Method__init__
( self, refresh: Callable[[], bool], interval: float, stop_event: threading.Ev
src/filelock/_soft_rw/_sync.py:753
Method__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_soft_rw/_async.py:55
Method__init__
(self, lock: AsyncSoftReadWriteLock)
src/filelock/_soft_rw/_async.py:254
Method__init__
(self, lock_file: str)
tests/test_subclass_options.py:323
Method__init__
(self, lock_file: str)
tests/test_subclass_options.py:348
Method__init__
(self, lock_file: str, **kwargs: Unpack[_FileLockOptions])
tests/test_subclass_options.py:361
Method__init__
(self, lock_file: str, **kwargs: Unpack[_AsyncFileLockOptions])
tests/test_subclass_options.py:374
Method__init__
( self, coroutine: Coroutine[None, None, _T], cancellation_seen: threading.Event,
tests/test_async_filelock_runner_shutdown.py:31
Method__init__
(self, lock_file: str, *, is_singleton: bool = False)
tests/test_fork_coordination.py:1137
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/test_filelock.py:792
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/test_filelock.py:809
Method__init__
(self, lock_file: str, *, is_singleton: bool = True)
tests/test_filelock.py:850
Method__init__
(self, file_path: str)
tests/test_filelock.py:950
Method__init__
(self, mocker: MockerFixture, name: str, *, fail_with: BaseException | None = None)
tests/soft_rw/test_soft_rw_async.py:60
Method__init_subclass__
Give each lock subclass its own singleton registry and lock.
src/filelock/_api.py:633
Method__init_subclass__
(cls)
src/filelock/_read_write.py:274
Method__new__
( cls, *_args: _ConnectionParameter, **_kwargs: _ConnectionParameter, )
src/filelock/_read_write.py:144
← previousnext →401–500 of 1,605, ranked by callers