MCPcopy Create free account

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

Functions572 in github.com/tox-dev/filelock

Methodlifetime
The lock lifetime in seconds, or ``None`` if the lock never expires. .. versionadded:: 3.24.0
src/filelock/_api.py:333
Methodlock_counter
The number of times this lock has been acquired (but not yet released).
src/filelock/_api.py:413
Functionlock_file
(tmp_path: Path)
tests/test_read_write.py:55
Functionlock_file
(tmp_path: Path)
tests/test_read_write_unit.py:42
Functionlock_file
(tmp_path: Path)
tests/test_async_read_write.py:32
Functionlock_file
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:109
Methodlock_file
Path to the lock file.
src/filelock/_api.py:268
Methodlock_file
The path of the file lock.
src/filelock/_error.py:21
Methodlock_file
The path to the lock file.
src/filelock/_async_read_write.py:76
Methodlock_file
The path to the lock file passed to the constructor.
src/filelock/_soft_rw/_async.py:85
Functionlock_path
(tmp_path: Path)
tests/test_soft_stale.py:28
Methodloop
The event loop (or ``None`` for the running loop).
src/filelock/_async_read_write.py:91
Methodloop
The event loop.
src/filelock/asyncio.py:203
Methodloop
The event loop used for ``run_in_executor``, or ``None`` for the running loop.
src/filelock/_soft_rw/_async.py:100
Functionlstat_hook
(path: str)
tests/test_util.py:82
Functionmess_with_file
(lock_: BaseFileLock)
tests/test_filelock.py:686
Methodmode
The file permissions for the lockfile.
src/filelock/_api.py:363
Functionopen_always_permission_error
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1077
Functionopen_enoent_then_succeed
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1203
Functionopen_no_creat
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1056
Functionopen_permission_then_unlink
(path: str, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_filelock.py:1096
Functionother
()
tests/soft_rw/test_soft_rw_sync.py:256
Methodpid
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
Methodpoll_interval
The default polling interval, in seconds. .. versionadded:: 3.24.0
src/filelock/_api.py:313
Functionread_from_thread
()
tests/test_filelock.py:759
Methodread_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
Methodreaders_drained_touching
()
src/filelock/_soft_rw/_sync.py:563
Functionrecursive_read_lock
(lock_file: str, success_flag: Synchronized[int])
tests/test_read_write.py:371
Functionrecursive_write_lock
(lock_file: str, success_flag: Synchronized[int])
tests/test_read_write.py:410
Methodresolve_xref
( # noqa: PLR0913, PLR0917 self, env: BuildEnvironment, fromdocname: str,
docs/conf.py:83
Methodrun
(self)
src/filelock/_soft_rw/_sync.py:746
Methodrun
(self)
tests/test_filelock.py:233
Functionsetup
Setup app. :param app: the app
docs/conf.py:74
Functionshould_not_be_called
()
tests/test_filelock.py:1157
Functionshould_not_be_called
()
tests/test_async_filelock.py:299
Functionswap_after_open
(name: str, *, dir_fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:825
Functiont_1
()
tests/test_filelock.py:279
Functiont_2
()
tests/test_filelock.py:285
Functiontarget
()
tests/soft_rw/test_soft_rw_sync.py:466
Functiontarget_a
()
tests/soft_rw/test_soft_rw_sync.py:429
Functiontest_acquire
( lock_type: type[BaseAsyncFileLock], path_type: type[str | Path], filename: str, tmp_path: Pa
tests/test_async_filelock.py:50
Functiontest_acquire_on_closed_raises
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:306
Functiontest_acquire_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:446
Functiontest_acquire_release_read
(lock_file: str)
tests/test_read_write_unit.py:118
Functiontest_acquire_release_read
(lock_file: str)
tests/test_async_read_write.py:37
Functiontest_acquire_release_write
(lock_file: str)
tests/test_read_write_unit.py:129
Functiontest_acquire_release_write
(lock_file: str)
tests/test_async_read_write.py:49
Functiontest_acquire_return_proxy_context_manager
(lock_file: str)
tests/test_async_read_write.py:264
Functiontest_async_custom_loop_and_executor
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:101
Functiontest_async_expired_lock_is_broken
(tmp_path: Path)
tests/test_lock_expiry.py:142
Functiontest_async_exposes_configuration
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:74
Functiontest_async_raw_acquire_release_round_trip
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:87
Functiontest_async_read_lock_context_manager
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:64
Functiontest_async_release_force
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:115
Functiontest_async_soft_non_expired_lock_not_broken
(tmp_path: Path)
tests/test_lock_expiry.py:155
Functiontest_async_write_lock_context_manager
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:54
Functiontest_async_writer_times_out_behind_reader
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:125
Functiontest_attempting_to_acquire
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:225
Functiontest_attempting_to_acquire_branch
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:206
Functiontest_attempting_to_release
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:237
Functiontest_bad_lock_file
( lock_type: type[BaseFileLock], expected_error: type[Exception], match: str, bad_lock_file: s
tests/test_filelock.py:133
Functiontest_break_lock
(lock_path: Path, *, exists: bool)
tests/test_soft_stale.py:270
Functiontest_break_lock_file_aborts_if_break_path_vanishes
(tmp_path: Path, mocker: MockerFixture)
tests/test_util.py:56
Functiontest_break_lock_file_break_path_not_targetable_by_a_peer
(tmp_path: Path, mocker: MockerFixture)
tests/test_util.py:71
Functiontest_break_lock_file_missing_source_raises
(tmp_path: Path)
tests/test_util.py:66
Functiontest_break_lock_file_preserves_file_when_inode_changed
(tmp_path: Path)
tests/test_util.py:39
Functiontest_break_lock_file_preserves_file_when_mtime_advanced
(tmp_path: Path)
tests/test_util.py:27
Functiontest_break_lock_file_unlinks_unchanged_file
(tmp_path: Path)
tests/test_util.py:18
Functiontest_busy_timeout_recomputed_after_journal_mode
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/test_read_write_unit.py:552
Functiontest_cancel_check_after_n_polls
(lock_type: type[BaseFileLock], tmp_path: Path, mocker: MockerFixture)
tests/test_filelock.py:1128
Functiontest_cancel_check_false_allows_acquisition
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1169
Functiontest_cancel_check_log_message
( lock_type: type[BaseFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_filelock.py:1179
Functiontest_cancel_check_log_message
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/test_async_filelock.py:312
Functiontest_cancel_check_not_called_when_lock_available
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1151
Functiontest_cancel_check_not_called_when_lock_available
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/test_async_filelock.py:293
Functiontest_cancel_check_triggers
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:1114
Functiontest_cancel_check_triggers
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/test_async_filelock.py:278
Functiontest_child_can_acquire_a_different_lock_after_fork
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1030
Functiontest_child_cannot_reuse_parents_lock_instance
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1006
Functiontest_child_release_on_inherited_lock_is_silent
(tmp_path: Path)
tests/soft_rw/test_soft_rw_sync.py:1018
Functiontest_cleanup_connections_closes_all
(tmp_path: Path)
tests/test_read_write_unit.py:569
Functiontest_cleanup_on_release
(tmp_path: Path, lock_type: type[FileLock])
tests/test_self_deadlock.py:117
Functiontest_cleanup_soft_lock
(tmp_path: Path)
tests/test_filelock.py:485
Functiontest_close
(lock_file: str)
tests/test_async_read_write.py:184
Functiontest_close_is_idempotent
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:300
Functiontest_close_keeps_provided_executor_open
(lock_file: str)
tests/test_async_read_write.py:234
Functiontest_close_on_unheld_lock
(lock_file: str)
tests/test_async_read_write.py:195
Functiontest_close_on_unheld_lock_closes_connection
(lock_file: str)
tests/test_read_write_unit.py:251
Functiontest_close_releases_lock_and_closes_connection
(lock_file: str)
tests/test_read_write_unit.py:241
Functiontest_close_shuts_down_owned_executor
(lock_file: str)
tests/test_async_read_write.py:224
Functiontest_concurrent_acquire_release_keeps_lock_file
(tmp_path: Path)
tests/test_filelock.py:958
Functiontest_connection_tracked_in_all_connections
(lock_file: str)
tests/test_read_write_unit.py:563
Functiontest_context_decorator
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:559
Functiontest_context_manager_uses_instance_defaults
(lock_file: str)
tests/test_async_read_write.py:295
Functiontest_context_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_filelock.py:431
Functiontest_coroutine_function
(tmp_path: Path)
tests/test_async_filelock.py:164
Functiontest_custom_executor
(lock_file: str)
tests/test_async_read_write.py:214
Functiontest_dead_reader_evicted_by_writer
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:561
Functiontest_dead_writer_evicted_by_reader
(lock_file: str)
tests/soft_rw/test_soft_rw_sync.py:537
Functiontest_default_mode_property_returns_0o644
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/test_default_mode.py:19
← previousnext →201–300 of 572, ranked by callers