MCPcopy Create free account

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

Functions572 in github.com/tox-dev/filelock

↓ 1 callersMethodacquire_write
Acquire an exclusive write lock. See :meth:`SoftReadWriteLock.acquire_write` for the two-phase writer-preferring semantics. The bloc
src/filelock/_soft_rw/_async.py:132
↓ 1 callersMethodbreak_lock
Forcibly break the lock by removing the lock file, regardless of who holds it.
src/filelock/_soft.py:172
↓ 1 callersFunctioncompute_next_version
(current: str, bump: str)
tasks/changelog.py:92
↓ 1 callersFunctiondecorated_method
()
tests/test_filelock.py:564
↓ 1 callersFunctionentries
( gh_repo: GitHubRepository, git_repo: Repo, pr_number: int | None, base: str, excluded_authors: set[str]
tasks/changelog.py:101
↓ 1 callersMethodis_thread_local
:returns: a flag indicating if this lock is thread local or not
src/filelock/_api.py:253
↓ 1 callersFunctionlatest_tag_version
(git_repo: Repo)
tasks/changelog.py:82
↓ 1 callersFunctionparse_cli
()
tasks/changelog.py:72
↓ 1 callersFunctionrun
()
tasks/changelog.py:39
↓ 1 callersMethodwrite_lock
Context manager that acquires and releases an exclusive write lock. Falls back to instance defaults for *timeout* and *blocking* whe
src/filelock/_soft_rw/_sync.py:256
Method__aenter__
(self)
src/filelock/_async_read_write.py:26
Method__aenter__
(self)
src/filelock/asyncio.py:60
Method__aenter__
Acquire the lock. :returns: the lock object
src/filelock/asyncio.py:347
Method__aenter__
(self)
src/filelock/_soft_rw/_async.py:25
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_async_read_write.py:29
Method__aexit__
( # noqa: D105 self, exc_type: type[BaseException] | None, exc_value: BaseException |
src/filelock/asyncio.py:63
Method__aexit__
Release the lock. :param exc_type: the exception type if raised :param exc_value: the exception value if raised :par
src/filelock/asyncio.py:357
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_soft_rw/_async.py:28
Method__call__
( # noqa: PLR0913 cls: type[_T], lock_file: str | os.PathLike[str], timeout: float =
src/filelock/_api.py:116
Method__call__
( cls, lock_file: str | os.PathLike[str], timeout: float = -1, *, bloc
src/filelock/_read_write.py:71
Method__call__
( # ty: ignore[invalid-method-override] # noqa: PLR0913 cls: type[_AT], # noqa: N805 lock_f
src/filelock/asyncio.py:76
Method__call__
( # noqa: PLR0913 cls, lock_file: str | os.PathLike[str], timeout: float = -1,
src/filelock/_soft_rw/_sync.py:90
Method__del__
Called when the lock object is deleted.
src/filelock/_api.py:610
Method__del__
(self)
src/filelock/_async_read_write.py:206
Method__del__
Release on deletion — safe to call during GC even when no event loop is running.
src/filelock/asyncio.py:373
Method__enter__
(self)
src/filelock/_api.py:62
Method__enter__
Acquire the lock. :returns: the lock object
src/filelock/_api.py:584
Method__enter__
Sync context manager entry is not supported because lock acquisition is a coroutine.
src/filelock/asyncio.py:332
Method__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_api.py:65
Method__exit__
Release the lock. :param exc_type: the exception type if raised :param exc_value: the exception value if raised :par
src/filelock/_api.py:594
Method__exit__
Sync context manager exit is not supported because lock release is a coroutine.
src/filelock/asyncio.py:337
Method__getattr__
(self, name: str)
tests/test_read_write_unit.py:598
Method__getattr__
(self, name: str)
tests/test_read_write_unit.py:643
Method__init__
(self)
src/filelock/_api.py:45
Method__init__
(self, lock: BaseFileLock | ReadWriteLock | SoftReadWriteLock)
src/filelock/_api.py:59
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1, *, blo
src/filelock/_read_write.py:141
Method__init__
(self, lock_file: str)
src/filelock/_error.py:7
Method__init__
(self, lock: AsyncReadWriteLock)
src/filelock/_async_read_write.py:23
Method__init__
( # noqa: PLR0913 self, lock_file: str | os.PathLike[str], timeout: float = -1,
src/filelock/_async_read_write.py:60
Method__init__
(self, lock: BaseAsyncFileLock)
src/filelock/asyncio.py:57
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:117
Method__init__
( # noqa: PLR0913 self, lock_file: str | os.PathLike[str], timeout: float = -1,
src/filelock/_soft_rw/_sync.py:185
Method__init__
( self, refresh: Callable[[], bool], interval: float, stop_event: threading.Ev
src/filelock/_soft_rw/_sync.py:734
Method__init__
(self, lock: AsyncSoftReadWriteLock)
src/filelock/_soft_rw/_async.py:22
Method__init__
( # noqa: PLR0913 self, lock_file: str | os.PathLike[str], timeout: float = -1,
src/filelock/_soft_rw/_async.py:59
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/test_filelock.py:786
Method__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/test_filelock.py:803
Method__init__
(self, file_path: str)
tests/test_filelock.py:919
Method__init_subclass__
Setup unique state for lock subclasses.
src/filelock/_api.py:194
Method__repr__
(self)
src/filelock/_error.py:17
Method__str__
(self)
src/filelock/_error.py:14
Method_acquire
(self)
src/filelock/_unix.py:21
Method_acquire
(self)
src/filelock/_windows.py:59
Method_acquire
(self)
src/filelock/_soft.py:35
Method_acquire
(self)
tests/test_async_filelock.py:168
Function_cleanup_all_instances
()
src/filelock/_soft_rw/_sync.py:911
Function_clear_singleton_cache
()
tests/test_read_write_unit.py:32
Function_clear_singleton_cache
()
tests/test_async_read_write.py:22
Function_clear_singletons
()
tests/soft_rw/test_soft_rw_sync.py:99
Function_clear_singletons
()
tests/soft_rw/test_soft_rw_async.py:19
Function_close_eio
(fd: int)
tests/test_unix_fallback.py:106
Function_reacquire_fresh_lock_in_child
(lock_file: str, child_path: str, result: EventType, failure: EventType)
tests/soft_rw/test_soft_rw_sync.py:974
Method_release
(self)
src/filelock/_unix.py:24
Method_release
(self)
src/filelock/_windows.py:88
Method_release
(self)
src/filelock/_soft.py:177
Function_release_inherited_lock
(lock_file: str, result: EventType, failure: EventType)
tests/soft_rw/test_soft_rw_sync.py:951
Function_reset_all_after_fork
()
src/filelock/_soft_rw/_sync.py:901
Function_reuse_inherited_lock
(lock_file: str, result: EventType, failure: EventType)
tests/soft_rw/test_soft_rw_sync.py:928
Function_run
()
tests/test_async_filelock.py:343
Function_sigkill_worker
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, heartbeat_interva
tests/soft_rw/test_soft_rw_sync.py:65
Function_worker
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/soft_rw/test_soft_rw_sync.py:33
Functionacquire_in_thread
()
tests/test_self_deadlock.py:86
Functionacquire_lock
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/test_read_write.py:22
Functionacquire_read_lock_and_crash
(lock_file: str, acquired_event: EventType)
tests/test_read_write.py:483
Functionacquire_write_in_thread
()
tests/test_read_write_unit.py:676
Functionacquire_write_lock_and_crash
(lock_file: str, acquired_event: EventType)
tests/test_read_write.py:449
Functionacquirer
()
tests/test_read_write_unit.py:607
Methodblocking
Whether the locking is blocking or not. .. versionadded:: 3.14.0
src/filelock/_api.py:293
Methodblocking
Whether blocking is enabled by default.
src/filelock/_async_read_write.py:86
Methodblocking
Whether ``acquire_*`` defaults to blocking; ``False`` makes contention raise immediately.
src/filelock/_soft_rw/_async.py:95
Functionboom
(name: str, *, fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:665
Functioncancel_after_two
()
tests/test_filelock.py:1137
Functionchain_reader
( reader_index: int, lock_file: str, release_count: Synchronized[int], start_signal: EventType
tests/test_read_write.py:175
Functionchild_entry
()
tests/soft_rw/test_soft_rw_sync.py:933
Methodclose
Release any held lock and release the underlying filesystem resources. Idempotent.
src/filelock/_soft_rw/_async.py:201
Methodexecutor
The executor used for ``run_in_executor`` (a dedicated single-thread one if none was supplied).
src/filelock/_async_read_write.py:96
Methodexecutor
The executor.
src/filelock/asyncio.py:188
Methodexecutor
The executor used for ``run_in_executor``, or ``None`` for the default executor.
src/filelock/_soft_rw/_async.py:105
Functionfake_acquire
(blocking: bool = True, timeout: float = -1)
tests/test_read_write_unit.py:437
Functionfstat_unlinked_once
(fd: int)
tests/test_filelock.py:1032
Functiongated
(*, blocking: bool, timeout: float)
tests/test_read_write_unit.py:670
Methodget_lock
Return the singleton :class:`SoftReadWriteLock` for *lock_file*. :param lock_file: path to the lock file; sidecar state/write/reader
src/filelock/_soft_rw/_sync.py:435
Functiongone
(name: str, *, dir_fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:685
Methodhas_explicit_mode
Whether the file permissions were explicitly set.
src/filelock/_api.py:368
Functionhold_read
()
tests/test_read_write_unit.py:320
Functionhold_write
()
tests/test_read_write_unit.py:300
Functionhook
(seconds: float)
tests/soft_rw/test_soft_rw_sync.py:642
Methodis_lock_held_by_us
Whether this lock is held by the current process. :returns: ``True`` if the lock file exists and names the current process's PID and
src/filelock/_soft.py:158
Methodis_locked
A boolean indicating if the lock file is holding the lock currently. .. versionchanged:: 2.0.0 This was previously a me
src/filelock/_api.py:401
Methodis_singleton
A flag indicating if this lock is singleton or not. .. versionadded:: 3.13.0
src/filelock/_api.py:258
← previousnext →101–200 of 572, ranked by callers