Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agronholm/anyio
/ functions
Functions
2,163 in github.com/agronholm/anyio
⨍
Functions
2,163
◇
Types & classes
270
↳
Endpoints
11
Method
test_readinto
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:51
Method
test_readinto1
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:57
Method
test_readlink
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:702
Function
test_receive
()
tests/streams/test_text.py:19
Method
test_receive_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:534
Method
test_receive_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1473
Method
test_receive_after_close
(self)
tests/test_sockets.py:1870
Method
test_receive_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2049
Method
test_receive_after_close
(self)
tests/test_sockets.py:2207
Method
test_receive_after_close
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:2407
Method
test_receive_after_peer_closed
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:546
Function
test_receive_after_send_closed
()
tests/streams/test_memory.py:245
Function
test_receive_encoding_error
()
tests/streams/test_text.py:47
Function
test_receive_exactly
()
tests/streams/test_buffered.py:20
Function
test_receive_exactly_incomplete
()
tests/streams/test_buffered.py:33
Method
test_receive_exception_cause_preserved
Test that when connection_lost is called with an exception, the resulting BrokenResourceError has the original exception as its __cau
tests/test_sockets.py:579
Method
test_receive_fds
( self, server_sock: socket.socket, socket_path: Path, tmp_path: Path )
tests/test_sockets.py:1296
Method
test_receive_fds_bad_args
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1325
Function
test_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:113
Method
test_receive_invalid_max_bytes
( self, server_addr: tuple[str, int], max_bytes: int )
tests/test_sockets.py:286
Method
test_receive_invalid_max_bytes
( self, server_sock: socket.socket, socket_path: Path, max_bytes: int )
tests/test_sockets.py:1238
Method
test_receive_invalid_max_bytes
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext, max_by
tests/streams/test_tls.py:105
Method
test_receive_invalid_max_bytes
( self, stapled: StapledByteStream, max_bytes: int )
tests/streams/test_stapled.py:99
Method
test_receive_invalid_max_bytes
( self, file_path: Path, max_bytes: int )
tests/streams/test_file.py:49
Method
test_receive_large_buffer
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1247
Method
test_receive_send
( self, stapled: StapledByteStream, send_stream: DummyByteSendStream )
tests/streams/test_stapled.py:71
Method
test_receive_send
( self, stapled: StapledObjectStream[str], send_stream: DummyObjectSendStream[str] )
tests/streams/test_stapled.py:162
Method
test_receive_send_after_eof
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:363
Function
test_receive_send_closed_receive_stream
()
tests/streams/test_memory.py:151
Function
test_receive_send_closed_send_stream
()
tests/streams/test_memory.py:139
Function
test_receive_signals
()
tests/test_signals.py:24
Function
test_receive_then_send
()
tests/streams/test_memory.py:45
Function
test_receive_then_send_nowait
()
tests/streams/test_memory.py:64
Method
test_receive_timeout
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:477
Function
test_receive_until
()
tests/streams/test_buffered.py:45
Function
test_receive_until_incomplete
()
tests/streams/test_buffered.py:63
Function
test_receive_when_cancelled
Test that calling receive() in a cancelled scope prevents it from going through with the operation.
tests/streams/test_memory.py:255
Method
test_relative_to_sibling
( self, populated_tmpdir: Path, monkeypatch: pytest.MonkeyPatch, )
tests/test_fileio.py:730
Method
test_relative_to_subpath
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:722
Method
test_rename
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:745
Method
test_replace
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:756
Method
test_repr
(self)
tests/test_fileio.py:138
Function
test_reraise_cancelled_in_excgroup
()
tests/test_taskgroups.py:1755
Method
test_reset_token_used_on_wrong_runvar
(self)
tests/test_lowlevel.py:112
Method
test_reset_token_used_twice
(self)
tests/test_lowlevel.py:121
Method
test_resolve
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:769
Method
test_return_async_generator
(self)
tests/test_contextmanagers.py:182
Method
test_return_bad_type
(self)
tests/test_contextmanagers.py:79
Method
test_return_bad_type
(self)
tests/test_contextmanagers.py:173
Method
test_return_coroutine
(self)
tests/test_contextmanagers.py:200
Method
test_return_generator
(self)
tests/test_contextmanagers.py:88
Method
test_return_self
(self)
tests/test_contextmanagers.py:97
Method
test_return_self
(self)
tests/test_contextmanagers.py:191
Method
test_return_value
(self)
tests/test_taskgroups.py:2137
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:913
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1831
Method
test_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2005
Method
test_rglob
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:522
Method
test_rglob_case_sensitive
(self, populated_tmpdir: Path)
tests/test_fileio.py:543
Method
test_rglob_recurse_symlinks
(self, populated_tmpdir: Path)
tests/test_fileio.py:575
Method
test_rmdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:777
Method
test_root_property
(self)
tests/test_fileio.py:208
Method
test_rtruediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:177
Method
test_rtruediv_preserve_subclass
Test for #1130: Ensure that __rtruediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:183
Method
test_run_anyio_async_func_from_thread
(self)
tests/test_from_thread.py:229
Method
test_run_async_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:243
Method
test_run_async_from_thread_exception
(self)
tests/test_from_thread.py:217
Method
test_run_async_from_unclaimed_thread
(self)
tests/test_from_thread.py:177
Method
test_run_async_no_event_loop
(self)
tests/test_from_thread.py:236
Method
test_run_asyncgen_from_thread
(self)
tests/test_from_thread.py:165
Method
test_run_corofunc_from_thread
(self)
tests/test_from_thread.py:161
Function
test_run_in_custom_limiter
()
tests/test_to_thread.py:61
Function
test_run_in_thread_cancelled
()
tests/test_to_thread.py:31
Function
test_run_in_thread_exception
()
tests/test_to_thread.py:51
Function
test_run_known_but_uninstalled_backend
(monkeypatch: MonkeyPatch)
tests/test_eventloop.py:83
Function
test_run_natively
(modulename: str)
tests/test_taskgroups.py:86
Function
test_run_non_corofunc
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_eventloop.py:58
Function
test_run_process
( shell: bool, command: str | list[str], event_loop_implementation_name: str | None )
tests/test_subprocesses.py:44
Function
test_run_process_checked
()
tests/test_subprocesses.py:55
Function
test_run_process_connect_to_file
(tmp_path: Path)
tests/test_subprocesses.py:182
Function
test_run_process_inherit_stdout
(capfd: pytest.CaptureFixture[str])
tests/test_subprocesses.py:221
Function
test_run_sync
Test that the function runs in a different interpreter, and the same interpreter in both calls.
tests/test_to_interpreter.py:27
Method
test_run_sync_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:305
Method
test_run_sync_from_thread
(self)
tests/test_from_thread.py:173
Method
test_run_sync_from_thread_exception
(self)
tests/test_from_thread.py:223
Method
test_run_sync_from_thread_pooling
(self)
tests/test_from_thread.py:194
Method
test_run_sync_from_unclaimed_thread
(self)
tests/test_from_thread.py:282
Method
test_run_sync_from_unclaimed_thread_no_token
(self)
tests/test_from_thread.py:296
Function
test_run_sync_in_process_pool
Test that the function runs in a different process, and the same process in both calls.
tests/test_to_process.py:23
Function
test_run_sync_worker_cyclic_references
()
tests/test_to_thread.py:371
Function
test_run_task
Test that anyio.run() on asyncio will work with a callable returning a Future.
tests/test_eventloop.py:48
Function
test_run_unknown_backend
()
tests/test_eventloop.py:75
Method
test_runvar_does_not_share_storage_by_name
(self)
tests/test_lowlevel.py:128
Method
test_samefile
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:783
Function
test_schedule_old_style_coroutine_func
Test that we give a sensible error when a user tries to spawn a task from a generator-style coroutine function.
tests/test_taskgroups.py:1344
Method
test_seek
(self, file_path: Path)
tests/streams/test_file.py:58
Function
test_send
()
tests/streams/test_text.py:33
Method
test_send_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:540
Method
test_send_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1481
Method
test_send_after_close
(self)
tests/test_sockets.py:1878
← previous
next →
1,801–1,900 of 2,163, ranked by callers