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
↓ 1 callers
Method
__aiter__
(self)
tests/test_itertools.py:54
↓ 1 callers
Method
__anext__
(self)
src/anyio/itertools.py:121
↓ 1 callers
Method
__asynccontextmanager__
Implement your async context manager logic here. This method **must** be decorated with :func:`@asynccontextmanager <context
src/anyio/_core/_contextmanagers.py:187
↓ 1 callers
Method
__asynccontextmanager__
(self)
tests/test_contextmanagers.py:48
↓ 1 callers
Method
__contextmanager__
Implement your context manager logic here. This method **must** be decorated with :func:`@contextmanager <contextlib.context
src/anyio/_core/_contextmanagers.py:95
↓ 1 callers
Method
__contextmanager__
(self)
tests/test_contextmanagers.py:30
↓ 1 callers
Method
__enter__
(self)
src/anyio/lowlevel.py:121
↓ 1 callers
Method
__enter__
(self)
src/anyio/_core/_tasks.py:117
↓ 1 callers
Method
__enter__
(self)
src/anyio/_backends/_trio.py:154
↓ 1 callers
Method
__get__
( self, instance: object, owner: type | None = None )
src/anyio/functools.py:218
↓ 1 callers
Method
__init__
( self: TemporaryFile[bytes], mode: OpenBinaryMode = ..., buffering: int = ...,
src/anyio/_core/_tempfile.py:48
↓ 1 callers
Method
__init__
(self, lock: Lock | None = None)
src/anyio/_core/_synchronization.py:273
↓ 1 callers
Function
_cancel_all_tasks
(loop: AbstractEventLoop)
src/anyio/_backends/_asyncio.py:258
↓ 1 callers
Method
_run_tests_and_fixtures
( self, receive_stream: MemoryObjectReceiveStream[ tuple[Awaitable[T_Retval], asyn
src/anyio/_backends/_asyncio.py:2319
↓ 1 callers
Function
_shutdown_default_executor
Schedule the shutdown of the default executor.
src/anyio/_backends/_asyncio.py:280
↓ 1 callers
Function
_shutdown_process_pool_on_exit
Shuts down worker processes belonging to this event loop. NOTE: this only works when the event loop was started using asyncio.run() or a
src/anyio/_backends/_asyncio.py:1216
↓ 1 callers
Function
_task_started
Return ``True`` if the task has been started and has not finished.
src/anyio/_backends/_asyncio.py:349
↓ 1 callers
Method
absolute
(self)
src/anyio/_core/_fileio.py:466
↓ 1 callers
Method
accept
(self)
src/anyio/_backends/_asyncio.py:1580
↓ 1 callers
Method
accept
(self)
src/anyio/_backends/_trio.py:584
↓ 1 callers
Method
aclose
Close the resource.
src/anyio/abc/_resources.py:32
↓ 1 callers
Method
acquire
Decrement the semaphore value, blocking if necessary.
src/anyio/_core/_synchronization.py:432
↓ 1 callers
Method
acquire
(self)
src/anyio/_backends/_asyncio.py:2118
↓ 1 callers
Method
acquire
(self)
src/anyio/_backends/_trio.py:902
↓ 1 callers
Method
acquire_nowait
Acquire the underlying lock, without blocking. :raises ~anyio.WouldBlock: if the operation would block
src/anyio/_core/_synchronization.py:298
↓ 1 callers
Method
acquire_nowait
(self)
src/anyio/_backends/_trio.py:890
↓ 1 callers
Method
acquire_on_behalf_of
Acquire a token, waiting if necessary for one to become available. :param borrower: the entity borrowing a token
src/anyio/_core/_synchronization.py:607
↓ 1 callers
Method
acquire_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_asyncio.py:2121
↓ 1 callers
Method
acquire_on_behalf_of
(self, borrower: object)
src/anyio/_backends/_trio.py:905
↓ 1 callers
Method
acquire_on_behalf_of_nowait
Acquire a token without waiting for one to become available. :param borrower: the entity borrowing a token :raises ~anyio.Wo
src/anyio/_core/_synchronization.py:589
↓ 1 callers
Function
agen_func
()
tests/test_debugging.py:134
↓ 1 callers
Function
async_add
(x: int, y: int)
tests/test_eventloop.py:51
↓ 1 callers
Method
callback
(f: Future[T_Retval])
src/anyio/from_thread.py:249
↓ 1 callers
Method
cancel_shielded_checkpoint
Allow the rescheduling of other tasks. This will give other tasks the opportunity to run, but without checking if the curren
src/anyio/abc/_eventloop.py:121
↓ 1 callers
Method
cancelled_exception_class
(cls)
src/anyio/_backends/_trio.py:1098
↓ 1 callers
Method
checkpoint_if_cancelled
Check if the current task group has been cancelled. This will check if the task has been cancelled, but will not allow other tasks
src/anyio/abc/_eventloop.py:109
↓ 1 callers
Method
chmod
(self, mode: int, *, follow_symlinks: bool = True)
src/anyio/_core/_fileio.py:569
↓ 1 callers
Method
cleanup
(self)
src/anyio/_core/_tempfile.py:512
↓ 1 callers
Method
clone
Create a clone of this send stream. Each clone can be closed separately. Only when all clones have been closed will the send
src/anyio/streams/memory.py:265
↓ 1 callers
Method
cls_method
(cls, x: int)
tests/test_functools.py:321
↓ 1 callers
Method
connect
(self)
src/anyio/_core/_sockets.py:947
↓ 1 callers
Method
connect
(self)
src/anyio/streams/text.py:174
↓ 1 callers
Method
connect
(self)
src/anyio/streams/buffered.py:199
↓ 1 callers
Method
connect
(self)
src/anyio/streams/tls.py:425
↓ 1 callers
Method
connect_tcp
( cls, host: str, port: int, local_address: IPSockAddrType | None = None )
src/anyio/_backends/_trio.py:1248
↓ 1 callers
Method
connect_unix
(cls, path: str | bytes)
src/anyio/_backends/_trio.py:1266
↓ 1 callers
Method
copy_into
( self, target_dir: str | os.PathLike[str], *, follow_symlinks
src/anyio/_core/_fileio.py:522
↓ 1 callers
Function
corofn
()
tests/test_taskgroups.py:1420
↓ 1 callers
Method
create_cancel_scope
( cls, *, deadline: float = math.inf, shield: bool = False )
src/anyio/abc/_eventloop.py:143
↓ 1 callers
Method
create_task_group
(cls)
src/anyio/_backends/_trio.py:1128
↓ 1 callers
Method
create_tcp_listener
(cls, sock: socket.socket)
src/anyio/_backends/_trio.py:1277
↓ 1 callers
Method
create_test_runner
(cls, options: dict[str, Any])
src/anyio/abc/_eventloop.py:409
↓ 1 callers
Method
create_unix_listener
(cls, sock: socket.socket)
src/anyio/_backends/_trio.py:1281
↓ 1 callers
Function
current_default_interpreter_limiter
Return the capacity limiter used by default to limit the number of concurrently running subinterpreters. Defaults to the number of CPU c
src/anyio/to_interpreter.py:231
↓ 1 callers
Function
current_default_process_limiter
Return the capacity limiter that is used by default to limit the number of worker processes. :return: a capacity limiter object
src/anyio/to_process.py:191
↓ 1 callers
Method
current_default_thread_limiter
(cls)
src/anyio/_backends/_asyncio.py:3093
↓ 1 callers
Method
current_effective_deadline
Return the nearest deadline among all the cancel scopes effective for the current task. :return: - a clock value
src/anyio/abc/_eventloop.py:150
↓ 1 callers
Method
current_effective_deadline
(cls)
src/anyio/_backends/_trio.py:1124
↓ 1 callers
Method
current_token
Return an object that allows other threads to run code inside the event loop. :return: a token object, specific to the event loop ru
src/anyio/abc/_eventloop.py:76
↓ 1 callers
Method
current_token
(cls)
src/anyio/_backends/_trio.py:1090
↓ 1 callers
Function
ensure_returns_coro
( func: Callable[P, Awaitable[T_Retval]], )
src/anyio/_backends/_trio.py:107
↓ 1 callers
Method
expanduser
(self)
src/anyio/_core/_fileio.py:583
↓ 1 callers
Method
feed_data
Append data directly into the buffer. Any data in the buffer will be consumed by receive operations before receiving anythin
src/anyio/streams/buffered.py:54
↓ 1 callers
Method
fill
(self, link: _TeeLink[T])
src/anyio/itertools.py:88
↓ 1 callers
Function
fill_socket
(sock: socket.socket)
tests/test_sockets.py:219
↓ 1 callers
Method
flush
(self)
src/anyio/_core/_fileio.py:170
↓ 1 callers
Function
fn
()
tests/test_taskgroups.py:1192
↓ 1 callers
Function
foo
(_: Foo)
tests/test_to_thread.py:375
↓ 1 callers
Method
from_uri
(cls, uri: str, *, limiter: CapacityLimiter | None = None)
src/anyio/_core/_fileio.py:480
↓ 1 callers
Method
full_match
( self, path_pattern: str, *, case_sensitive: bool | None = None )
src/anyio/_core/_fileio.py:483
↓ 1 callers
Function
generator_part
()
tests/test_debugging.py:122
↓ 1 callers
Function
genfunc
(x: int, y: int)
tests/test_taskgroups.py:2324
↓ 1 callers
Method
get_current_task
(cls)
src/anyio/_backends/_trio.py:1436
↓ 1 callers
Method
get_loop
Return embedded event loop.
src/anyio/_backends/_asyncio.py:177
↓ 1 callers
Method
get_running_tasks
(cls)
src/anyio/_backends/_trio.py:1441
↓ 1 callers
Method
getaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/abc/_eventloop.py:301
↓ 1 callers
Method
getaddrinfo
( cls, host: bytes | str | None, port: str | int | None, *, family: in
src/anyio/_backends/_trio.py:1331
↓ 1 callers
Function
getnameinfo
Look up the host name of an IP address. :param sockaddr: socket address (e.g. (ipaddress, port) for IPv4) :param flags: flags to pass to
src/anyio/_core/_sockets.py:668
↓ 1 callers
Method
getnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/abc/_eventloop.py:323
↓ 1 callers
Method
getnameinfo
( cls, sockaddr: IPSockAddrType, flags: int = 0 )
src/anyio/_backends/_trio.py:1352
↓ 1 callers
Function
gettempdir
Asynchronously return the name of the directory used for temporary files. This function wraps `tempfile.gettempdir` and executes it in a bac
src/anyio/_core/_tempfile.py:592
↓ 1 callers
Function
gettempdirb
Asynchronously return the name of the directory used for temporary files in bytes. This function wraps `tempfile.gettempdirb` and executes i
src/anyio/_core/_tempfile.py:604
↓ 1 callers
Method
handle_handshake_error
Handle an exception raised during the TLS handshake. This method does 3 things: #. Forcefully closes the original stream
src/anyio/streams/tls.py:328
↓ 1 callers
Method
hardlink_to
( self, target: str | bytes | PathLike[str] | PathLike[bytes] )
src/anyio/_core/_fileio.py:630
↓ 1 callers
Method
home
(cls, *, limiter: CapacityLimiter | None = None)
src/anyio/_core/_fileio.py:639
↓ 1 callers
Function
host_agen_fn
()
tests/test_taskgroups.py:946
↓ 1 callers
Function
host_task
()
tests/test_taskgroups.py:933
↓ 1 callers
Function
inner_wrapper
()
src/anyio/_backends/_trio.py:123
↓ 1 callers
Method
instance_method
(self, x: int)
tests/test_functools.py:333
↓ 1 callers
Method
is_absolute
(self)
src/anyio/_core/_fileio.py:643
↓ 1 callers
Method
is_block_device
(self)
src/anyio/_core/_fileio.py:646
↓ 1 callers
Method
is_char_device
(self)
src/anyio/_core/_fileio.py:651
↓ 1 callers
Method
is_fifo
(self)
src/anyio/_core/_fileio.py:661
↓ 1 callers
Method
is_junction
(self)
src/anyio/_core/_fileio.py:673
↓ 1 callers
Method
is_mount
(self)
src/anyio/_core/_fileio.py:678
↓ 1 callers
Method
is_relative_to
(self, other: str | PathLike[str])
src/anyio/_core/_fileio.py:562
↓ 1 callers
Method
is_reserved
(self)
src/anyio/_core/_fileio.py:685
↓ 1 callers
Method
is_running
Check if the test runner is running. :return: ``True`` if the coroutine is currently being run, ``False`` otherwise.
src/anyio/abc/_testing.py:68
↓ 1 callers
Method
is_socket
(self)
src/anyio/_core/_fileio.py:688
↓ 1 callers
Function
iterate_exceptions
( exception: BaseException, )
src/anyio/_core/_exceptions.py:83
← previous
next →
301–400 of 2,163, ranked by callers