Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/aiofastnet/__init__.py: 14%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import socket
3from ._version import __version__ as __version__
4from .api_connect_accepted_socket import connect_accepted_socket
5from .api_create_connection import create_connection
6from .api_create_datagram_endpoint import create_datagram_endpoint
7from .api_create_server import create_server
8from .api_create_unix_connection import create_unix_connection
9from .api_create_unix_server import create_unix_server
10from .api_patch import install_policy, loop_factory, patch_loop
11from .api_pipe import connect_read_pipe, connect_write_pipe
12from .api_sendfile import sendfile
13from .api_sock import (
14 sock_accept,
15 sock_connect,
16 sock_recv,
17 sock_recv_into,
18 sock_recvfrom,
19 sock_recvfrom_into,
20 sock_sendall,
21 sock_sendto,
22)
23from .api_start_tls import start_tls
24from .api_streams import (
25 open_connection,
26 start_server,
27)
28from .openssl_compat import OPENSSL_DYN_LIBS
29from .transport import Protocol, Transport, aiofn_is_buffered_protocol
31__all__ = [
32 'OPENSSL_DYN_LIBS',
33 'Protocol',
34 'Transport',
35 'aiofn_is_buffered_protocol',
36 'connect_accepted_socket',
37 'connect_read_pipe',
38 'connect_write_pipe',
39 'create_connection',
40 'create_datagram_endpoint',
41 'create_server',
42 'create_unix_connection',
43 'create_unix_server',
44 'install_policy',
45 'loop_factory',
46 'open_connection',
47 'patch_loop',
48 'sendfile',
49 'sock_accept',
50 'sock_connect',
51 'sock_recv',
52 'sock_recv_into',
53 'sock_recvfrom',
54 'sock_recvfrom_into',
55 'sock_sendall',
56 'sock_sendto',
57 'start_server',
58 'start_tls',
59]
61if hasattr(socket, 'AF_UNIX'):
62 from .api_streams import (
63 open_unix_connection as open_unix_connection,
64 )
65 from .api_streams import (
66 start_unix_server as start_unix_server,
67 )
69 __all__.extend((
70 'open_unix_connection',
71 'start_unix_server',
72 ))
75__author__ = "Taras Kozlov"