Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ functions
Functions
572 in github.com/tox-dev/filelock
⨍
Functions
572
◇
Types & classes
42
↳
Endpoints
7
Method
lifetime
The lock lifetime in seconds, or ``None`` if the lock never expires. .. versionadded:: 3.24.0
src/filelock/_api.py:333
Method
lock_counter
The number of times this lock has been acquired (but not yet released).
src/filelock/_api.py:413
Function
lock_file
(tmp_path: Path)
tests/test_read_write.py:55
Function
lock_file
(tmp_path: Path)
tests/test_read_write_unit.py:42
Function
lock_file
(tmp_path: Path)
tests/test_async_read_write.py:32
Function
lock_file
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:109
Method
lock_file
Path to the lock file.
src/filelock/_api.py:268
Method
lock_file
The path of the file lock.
src/filelock/_error.py:21
Method
lock_file
The path to the lock file.
src/filelock/_async_read_write.py:76
Method
lock_file
The path to the lock file passed to the constructor.
src/filelock/_soft_rw/_async.py:85
Function
lock_path
(tmp_path: Path)
tests/test_soft_stale.py:28
Method
loop
The event loop (or ``None`` for the running loop).
src/filelock/_async_read_write.py:91
Method
loop
The event loop.
src/filelock/asyncio.py:203
Method
loop
The event loop used for ``run_in_executor``, or ``None`` for the running loop.
src/filelock/_soft_rw/_async.py:100
Function
lstat_hook
(path: str)
tests/test_util.py:82
Function
mess_with_file
(lock_: BaseFileLock)
tests/test_filelock.py:686
Method
mode
The file permissions for the lockfile.
src/filelock/_api.py:363
Function
open_always_permission_error
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1077
Function
open_enoent_then_succeed
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1203
Function
open_no_creat
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1056
Function
open_permission_then_unlink
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1096
Function
other
()
tests/soft_rw/test_soft_rw_sync.py:256
Method
pid
The PID of the process holding this lock, read from the lock file. :returns: the PID as an integer, or ``None`` if the lock file doe
src/filelock/_soft.py:144
Method
poll_interval
The default polling interval, in seconds. .. versionadded:: 3.24.0
src/filelock/_api.py:313
Function
read_from_thread
()
tests/test_filelock.py:759
Method
read_lock
Async context manager that acquires and releases a shared read lock. :param timeout: maximum wait time in seconds, or ``None`` to us
src/filelock/_soft_rw/_async.py:166
Method
readers_drained_touching
()
src/filelock/_soft_rw/_sync.py:563
Function
recursive_read_lock
(lock_file: str, success_flag: Synchronized[int])
tests/test_read_write.py:371
Function
recursive_write_lock
(lock_file: str, success_flag: Synchronized[int])
tests/test_read_write.py:410
Method
resolve_xref
( # noqa: PLR0913, PLR0917 self, env: BuildEnvironment, fromdocname: str,
docs/conf.py:83
Method
run
(self)
src/filelock/_soft_rw/_sync.py:746
Method
run
(self)
tests/test_filelock.py:233
Function
setup
Setup app. :param app: the app
docs/conf.py:74
Function
should_not_be_called
()
tests/test_filelock.py:1157
Function
should_not_be_called
()
tests/test_async_filelock.py:299
Function
swap_after_open
(name: str, *, dir_fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:825
Function
t_1
()
tests/test_filelock.py:279
Function
t_2
()
tests/test_filelock.py:285
Function
target
()
tests/soft_rw/test_soft_rw_sync.py:466
Function
target_a
()
tests/soft_rw/test_soft_rw_sync.py:429
Function
test_acquire
( lock_type: type[BaseAsyncFileLock], path_type: type[str | Path], filename: str, tmp_path: Pa
tests/test_async_filelock.py:50
Function
test_acquire_on_closed_raises
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:306
Function
test_acquire_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:446
Function
test_acquire_release_read
(lock_file: str)
tests/test_read_write_unit.py:118
Function
test_acquire_release_read
(lock_file: str)
tests/test_async_read_write.py:37
Function
test_acquire_release_write
(lock_file: str)
tests/test_read_write_unit.py:129
Function
test_acquire_release_write
(lock_file: str)
tests/test_async_read_write.py:49
Function
test_acquire_return_proxy_context_manager
(lock_file: str)
tests/test_async_read_write.py:264
Function
test_async_custom_loop_and_executor
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:101
Function
test_async_expired_lock_is_broken
(tmp_path: Path)
tests/test_lock_expiry.py:142
Function
test_async_exposes_configuration
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:74
Function
test_async_raw_acquire_release_round_trip
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:87
Function
test_async_read_lock_context_manager
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:64
Function
test_async_release_force
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:115
Function
test_async_soft_non_expired_lock_not_broken
(tmp_path: Path)
tests/test_lock_expiry.py:155
Function
test_async_write_lock_context_manager
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:54
Function
test_async_writer_times_out_behind_reader
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:125
Function
test_attempting_to_acquire
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:225
Function
test_attempting_to_acquire_branch
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:206
Function
test_attempting_to_release
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:237
Function
test_bad_lock_file
( lock_type: type[BaseFileLock], expected_error: type[Exception], match: str, bad_lock_file: s
tests/test_filelock.py:133
Function
test_break_lock
(lock_path: Path, *, exists: bool)
tests/test_soft_stale.py:270
Function
test_break_lock_file_aborts_if_break_path_vanishes
(tmp_path: Path, mocker: MockerFixture)
tests/test_util.py:56
Function
test_break_lock_file_break_path_not_targetable_by_a_peer
(tmp_path: Path, mocker: MockerFixture)
tests/test_util.py:71
Function
test_break_lock_file_missing_source_raises
(tmp_path: Path)
tests/test_util.py:66
Function
test_break_lock_file_preserves_file_when_inode_changed
(tmp_path: Path)
tests/test_util.py:39
Function
test_break_lock_file_preserves_file_when_mtime_advanced
(tmp_path: Path)
tests/test_util.py:27
Function
test_break_lock_file_unlinks_unchanged_file
(tmp_path: Path)
tests/test_util.py:18
Function
test_busy_timeout_recomputed_after_journal_mode
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/test_read_write_unit.py:552
Function
test_cancel_check_after_n_polls
(lock_type: type[BaseFileLock], tmp_path: Path, mocker: MockerFixture)
tests/test_filelock.py:1128
Function
test_cancel_check_false_allows_acquisition
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1169
Function
test_cancel_check_log_message
( lock_type: type[BaseFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_filelock.py:1179
Function
test_cancel_check_log_message
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:312
Function
test_cancel_check_not_called_when_lock_available
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1151
Function
test_cancel_check_not_called_when_lock_available
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/test_async_filelock.py:293
Function
test_cancel_check_triggers
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1114
Function
test_cancel_check_triggers
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/test_async_filelock.py:278
Function
test_child_can_acquire_a_different_lock_after_fork
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1030
Function
test_child_cannot_reuse_parents_lock_instance
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1006
Function
test_child_release_on_inherited_lock_is_silent
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1018
Function
test_cleanup_connections_closes_all
(tmp_path: Path)
tests/test_read_write_unit.py:569
Function
test_cleanup_on_release
(tmp_path: Path, lock_type: type[FileLock])
tests/test_self_deadlock.py:117
Function
test_cleanup_soft_lock
(tmp_path: Path)
tests/test_filelock.py:485
Function
test_close
(lock_file: str)
tests/test_async_read_write.py:184
Function
test_close_is_idempotent
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:300
Function
test_close_keeps_provided_executor_open
(lock_file: str)
tests/test_async_read_write.py:234
Function
test_close_on_unheld_lock
(lock_file: str)
tests/test_async_read_write.py:195
Function
test_close_on_unheld_lock_closes_connection
(lock_file: str)
tests/test_read_write_unit.py:251
Function
test_close_releases_lock_and_closes_connection
(lock_file: str)
tests/test_read_write_unit.py:241
Function
test_close_shuts_down_owned_executor
(lock_file: str)
tests/test_async_read_write.py:224
Function
test_concurrent_acquire_release_keeps_lock_file
(tmp_path: Path)
tests/test_filelock.py:958
Function
test_connection_tracked_in_all_connections
(lock_file: str)
tests/test_read_write_unit.py:563
Function
test_context_decorator
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:559
Function
test_context_manager_uses_instance_defaults
(lock_file: str)
tests/test_async_read_write.py:295
Function
test_context_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:431
Function
test_coroutine_function
(tmp_path: Path)
tests/test_async_filelock.py:164
Function
test_custom_executor
(lock_file: str)
tests/test_async_read_write.py:214
Function
test_dead_reader_evicted_by_writer
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:561
Function
test_dead_writer_evicted_by_reader
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:537
Function
test_default_mode_property_returns_0o644
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_default_mode.py:19
← previous
next →
201–300 of 572, ranked by callers