Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/aiofastnet/__init__.py: 9%
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 .api_connect_accepted_socket import connect_accepted_socket
4from .api_create_connection import create_connection
5from .api_create_datagram_endpoint import create_datagram_endpoint
6from .api_create_server import create_server
7from .api_create_unix_connection import create_unix_connection
8from .api_create_unix_server import create_unix_server
9from .api_patch import install_policy, loop_factory, patch_loop
10from .api_pipe import connect_read_pipe, connect_write_pipe
11from .api_sendfile import sendfile
12from .api_sock import (
13 sock_accept,
14 sock_connect,
15 sock_recv,
16 sock_recv_into,
17 sock_recvfrom,
18 sock_recvfrom_into,
19 sock_sendall,
20 sock_sendto,
21)
22from .api_start_tls import start_tls
23from .api_streams import (
24 open_connection,
25 start_server,
26)
27from .openssl_compat import OPENSSL_DYN_LIBS
28from .transport import Protocol, Transport, aiofn_is_buffered_protocol
30__all__ = [
31 'OPENSSL_DYN_LIBS',
32 'Protocol',
33 'Transport',
34 'aiofn_is_buffered_protocol',
35 'connect_accepted_socket',
36 'connect_read_pipe',
37 'connect_write_pipe',
38 'create_connection',
39 'create_datagram_endpoint',
40 'create_server',
41 'create_unix_connection',
42 'create_unix_server',
43 'install_policy',
44 'loop_factory',
45 'open_connection',
46 'patch_loop',
47 'sendfile',
48 'sock_accept',
49 'sock_connect',
50 'sock_recv',
51 'sock_recv_into',
52 'sock_recvfrom',
53 'sock_recvfrom_into',
54 'sock_sendall',
55 'sock_sendto',
56 'start_server',
57 'start_tls',
58]
60if hasattr(socket, 'AF_UNIX'):
61 from .api_streams import (
62 open_unix_connection as open_unix_connection,
63 )
64 from .api_streams import (
65 start_unix_server as start_unix_server,
66 )
68 __all__.extend((
69 'open_unix_connection',
70 'start_unix_server',
71 ))
74__version__ = "1.1.0"
75__author__ = "Taras Kozlov"