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
↓ 1 callers
Function
wait_for_turn
()
tests/async_lock/test_transitions.py:53
↓ 1 callers
Function
waiter
()
tests/soft/read_write/test_sweep.py:242
↓ 1 callers
Function
waiter
()
tests/async_lock/test_owners.py:205
↓ 1 callers
Method
wake_via
(self, via: Hashable)
src/filelock/_async_lock/_owners.py:198
↓ 1 callers
Method
withdraw
(self, heartbeat_interval: float)
src/filelock/_soft/_read_write/_hold.py:212
↓ 1 callers
Function
work
()
tests/soft/read_write/test_async_close.py:137
↓ 1 callers
Function
work
()
tests/sqlite/test_async_close.py:121
↓ 1 callers
Function
write_at_start
(fd: int, data: bytes)
src/filelock/_filesystem/_files.py:79
↓ 1 callers
Method
write_head
(self, path: str, temporary: str, data: bytes)
src/filelock/_soft/_read_write/_storage.py:241
↓ 1 callers
Function
write_repeatedly
()
tests/sqlite/test_async_contention.py:223
Method
__aenter__
(self)
src/filelock/_soft/_read_write/_async.py:200
Method
__aenter__
(self)
src/filelock/_sqlite/_async.py:190
Method
__aenter__
(self)
src/filelock/_async_lock/_backends.py:309
Method
__aenter__
(self)
src/filelock/_async_lock/_lock.py:335
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_async_lock/_backends.py:311
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_async_lock/_release.py:62
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_async_lock/_lock.py:338
Method
__await__
(self)
tasks/capabilities.py:139
Method
__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls,
src/filelock/_soft/_read_write/_lock.py:77
Method
__call__
( cls, lock_file: str | os.PathLike[str], timeout: float = -1, *, bloc
src/filelock/_sqlite/_fork.py:75
Method
__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls: t
src/filelock/_async_lock/_lock.py:57
Method
__call__
(self, *, after_in_child: Callable[[], None] | None = None)
tests/fork_helpers.py:14
Method
__call__
(self, path: Path, *, read_handle: bool = False)
tests/conftest.py:398
Method
__call__
(self, lock_file: str, *, unknown: bool)
tests/core/test_subclass_options.py:406
Method
__call__
(self, lock_file: str, *, is_singleton: bool, unknown: bool)
tests/core/test_subclass_options.py:410
Method
__call__
(self, path: str | os.PathLike[str], *args: object, **kwargs: object)
tests/soft/test_lease_heartbeat.py:249
Method
__call__
(self, compromise: LeaseCompromise)
tests/soft/lease_helpers.py:43
Method
__call__
(self, path: PathValue, **options: int | bool | None)
tests/soft/strict/filesystem_faults.py:22
Method
__call__
( self, path: Path, *, is_singleton: bool )
tests/async_lock/test_read_write_wait.py:38
Method
__call__
(self, path: Path, *, is_singleton: bool)
tests/async_lock/test_read_write_wait.py:45
Method
__call__
( # pragma: needs hard-link self, path: Path, *, is_singleton: bool )
tests/async_lock/test_read_write_wait.py:52
Method
__call__
(cls: type[_T])
tasks/capabilities.py:106
Method
__del__
Release abandoned holds when the last reference disappears.
src/filelock/_core/_lock.py:208
Method
__del__
(self)
src/filelock/_identity/_process.py:143
Method
__del__
( self, _is_finalizing: Callable[[], bool] = sys.is_finalizing, _suppress: type[suppress] = suppress
src/filelock/_sqlite/_connection.py:217
Method
__del__
( self, _is_finalizing: Callable[[], bool] = sys.is_finalizing, _suppress: type[suppress] = suppress
src/filelock/_sqlite/_connection.py:268
Method
__del__
(self, _getpid: Callable[[], int] = os.getpid)
src/filelock/_async_lock/_backends.py:105
Function
__dir__
()
src/filelock/__init__.py:165
Function
__dir__
()
src/filelock/asyncio.py:28
Method
__enter__
(self)
src/filelock/_core/_acquire.py:400
Method
__enter__
Sync context manager entry is not supported because lock acquisition is a coroutine.
src/filelock/_async_lock/_lock.py:184
Method
__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_core/_acquire.py:403
Method
__exit__
Sync context manager exit is not supported because lock release is a coroutine.
src/filelock/_async_lock/_lock.py:190
Method
__fspath__
(self)
tests/sqlite/test_lock_settings.py:67
Function
__getattr__
( name: str, )
src/filelock/__init__.py:142
Function
__getattr__
(name: str)
src/filelock/_soft/__init__.py:63
Function
__getattr__
(name: str)
src/filelock/_soft/_read_write/__init__.py:21
Function
__getattr__
(name: str)
src/filelock/_sqlite/__init__.py:21
Method
__init__
(self)
src/filelock/_core/_registry.py:19
Method
__init__
(self, lock: _LockT)
src/filelock/_core/_acquire.py:397
Method
__init__
(self, message: str, wait: Callable[[float | None], None])
src/filelock/_core/_errors.py:62
Method
__init__
(self, lock_file: str, claim_name: str | None, reason: str)
src/filelock/_core/_errors.py:93
Method
__init__
( # ruff:ignore[too-many-arguments] # mirrors the FileLockContext fields set at construction self,
src/filelock/_core/_state.py:189
Method
__init__
(self, cls: type[BaseFileLock])
src/filelock/_core/_settings.py:258
Method
__init__
(self)
src/filelock/_core/_settings.py:289
Method
__init__
(self)
src/filelock/_core/_fork.py:165
Method
__init__
:param lock_file: filesystem path used to coordinate holders :param timeout: default wait in seconds. A negative value or infinity wa
src/filelock/_core/_lock.py:85
Method
__init__
(self, path: Path)
src/filelock/_identity/_process.py:139
Method
__init__
Create a marker lease. :param lease_duration: seconds an unchanged claim must be observed before takeover. All peers must agree.
src/filelock/_soft/_lease.py:74
Method
__init__
(self, clock: Callable[[], float])
src/filelock/_soft/_read_write/_sweep.py:37
Method
__init__
( self, files: RecordFiles, root: str, stale_threshold: float, clock: Callable[[], float], ledger: Led
src/filelock/_soft/_read_write/_sweep.py:71
Method
__init__
(self, files: RecordFiles, lock_file: str, root: str)
src/filelock/_soft/_read_write/_generations.py:38
Method
__init__
( # ruff:ignore[too-many-arguments] # the lock binds shared storage once per instance self,
src/filelock/_soft/_read_write/_participant.py:41
Method
__init__
( self, refresh: Callable[[], bool], interval: float, stop_event: threading.Ev
src/filelock/_soft/_read_write/_heartbeat.py:20
Method
__init__
(self, lock_file: str)
src/filelock/_soft/_read_write/_storage.py:91
Method
__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_soft/_read_write/_lock.py:191
Method
__init__
(self, lock: AsyncSoftReadWriteLock)
src/filelock/_soft/_read_write/_async.py:196
Method
__init__
(self)
src/filelock/_soft/_strict/_release.py:237
Method
__init__
(self, lock_file: str | os.PathLike[str])
src/filelock/_sqlite/_transactions.py:48
Method
__init__
(self)
src/filelock/_sqlite/_links.py:49
Method
__init__
(self)
src/filelock/_sqlite/_fork.py:151
Method
__init__
(self)
src/filelock/_sqlite/_fork.py:185
Method
__init__
(self)
src/filelock/_sqlite/_connection.py:263
Method
__init__
(self)
src/filelock/_sqlite/_connection.py:279
Method
__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1, *, blo
src/filelock/_sqlite/_lock.py:104
Method
__init__
(self, lock: AsyncReadWriteLock)
src/filelock/_sqlite/_async.py:186
Method
__init__
(self)
src/filelock/_async_lock/_owners.py:58
Method
__init__
(self, *, is_singleton: bool)
src/filelock/_async_lock/_backends.py:96
Method
__init__
(self, lock: _LockT)
src/filelock/_async_lock/_backends.py:305
Method
__init__
(self)
src/filelock/_async_lock/_transitions.py:22
Method
__init__
(self)
src/filelock/_async_lock/_executor.py:31
Method
__init__
Create an async lock with the ownership and file options of :class:`~filelock.BaseFileLock`. :param lock_file: lock path :pa
src/filelock/_async_lock/_lock.py:115
Method
__init__
(self, lock: BaseAsyncFileLock)
src/filelock/_async_lock/_lock.py:332
Method
__init__
( # ruff:ignore[too-many-arguments] # mirrors the AsyncFileLockContext fields set at construction se
src/filelock/_async_lock/_lock.py:394
Method
__init__
(self, file_path: str)
tests/core/test_lock.py:292
Method
__init__
(self, lock_file: str)
tests/core/test_subclass_options.py:58
Method
__init__
(self, lock_file: str)
tests/core/test_subclass_options.py:112
Method
__init__
(self, lock_file: str, **kwargs: Unpack[_FileLockOptions])
tests/core/test_subclass_options.py:251
Method
__init__
(self, lock_file: str, **kwargs: Unpack[_AsyncFileLockOptions])
tests/core/test_subclass_options.py:325
Method
__init__
(self, lock_file: str, *, is_singleton: bool = False)
tests/core/test_fork_construction.py:354
Method
__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/core/test_singleton.py:72
Method
__init__
( self, lock_file: str | os.PathLike[str], timeout: float = -1,
tests/core/test_singleton.py:89
Method
__init__
(self, target: Callable[[], None], name: str)
tests/core/thread_helpers.py:18
Method
__init__
(self, *args: Any, **kwargs: Any)
tests/core/test_fork_registries.py:89
Method
__init__
(self, lock_file: str)
tests/core/test_errors.py:43
Method
__init__
(self)
tests/soft/lease_helpers.py:39
Method
__init__
( self, mocker: MockerFixture, name: str, method: Callable[Concatenate[SoftRea
tests/soft/read_write/async_helpers.py:67
Method
__init__
(self, *, seed: int, crash_probability: float, max_crashes: int)
tests/soft/read_write/test_participant_model.py:87
Method
__init__
(self, scheduler: _Scheduler, *, stale_listings: float = 0.0)
tests/soft/read_write/test_participant_model.py:158
Method
__init__
(self, scheduler: _Scheduler, *, stale_listings: float = 0.0)
tests/soft/read_write/test_participant_model.py:245
← previous
next →
901–1,000 of 3,548, ranked by callers