aio-libs / aiohttp
1 10
__version__ = "4.0.0a1"
2

3 10
from typing import Tuple
4

5 10
from . import hdrs as hdrs
6 10
from .client import (
7
    BaseConnector as BaseConnector,
8
    ClientConnectionError as ClientConnectionError,
9
    ClientConnectorCertificateError as ClientConnectorCertificateError,
10
    ClientConnectorError as ClientConnectorError,
11
    ClientConnectorSSLError as ClientConnectorSSLError,
12
    ClientError as ClientError,
13
    ClientHttpProxyError as ClientHttpProxyError,
14
    ClientOSError as ClientOSError,
15
    ClientPayloadError as ClientPayloadError,
16
    ClientProxyConnectionError as ClientProxyConnectionError,
17
    ClientRequest as ClientRequest,
18
    ClientResponse as ClientResponse,
19
    ClientResponseError as ClientResponseError,
20
    ClientSession as ClientSession,
21
    ClientSSLError as ClientSSLError,
22
    ClientTimeout as ClientTimeout,
23
    ClientWebSocketResponse as ClientWebSocketResponse,
24
    ContentTypeError as ContentTypeError,
25
    Fingerprint as Fingerprint,
26
    InvalidURL as InvalidURL,
27
    NamedPipeConnector as NamedPipeConnector,
28
    RequestInfo as RequestInfo,
29
    ServerConnectionError as ServerConnectionError,
30
    ServerDisconnectedError as ServerDisconnectedError,
31
    ServerFingerprintMismatch as ServerFingerprintMismatch,
32
    ServerTimeoutError as ServerTimeoutError,
33
    TCPConnector as TCPConnector,
34
    TooManyRedirects as TooManyRedirects,
35
    UnixConnector as UnixConnector,
36
    WSServerHandshakeError as WSServerHandshakeError,
37
    request as request,
38
)
39 10
from .cookiejar import CookieJar as CookieJar, DummyCookieJar as DummyCookieJar
40 10
from .formdata import FormData as FormData
41 10
from .helpers import BasicAuth, ChainMapProxy, ETag
42 10
from .http import (
43
    HttpVersion as HttpVersion,
44
    HttpVersion10 as HttpVersion10,
45
    HttpVersion11 as HttpVersion11,
46
    WebSocketError as WebSocketError,
47
    WSCloseCode as WSCloseCode,
48
    WSMessage as WSMessage,
49
    WSMsgType as WSMsgType,
50
)
51 10
from .multipart import (
52
    BadContentDispositionHeader as BadContentDispositionHeader,
53
    BadContentDispositionParam as BadContentDispositionParam,
54
    BodyPartReader as BodyPartReader,
55
    MultipartReader as MultipartReader,
56
    MultipartWriter as MultipartWriter,
57
    content_disposition_filename as content_disposition_filename,
58
    parse_content_disposition as parse_content_disposition,
59
)
60 10
from .payload import (
61
    PAYLOAD_REGISTRY as PAYLOAD_REGISTRY,
62
    AsyncIterablePayload as AsyncIterablePayload,
63
    BufferedReaderPayload as BufferedReaderPayload,
64
    BytesIOPayload as BytesIOPayload,
65
    BytesPayload as BytesPayload,
66
    IOBasePayload as IOBasePayload,
67
    JsonPayload as JsonPayload,
68
    Payload as Payload,
69
    StringIOPayload as StringIOPayload,
70
    StringPayload as StringPayload,
71
    TextIOPayload as TextIOPayload,
72
    get_payload as get_payload,
73
    payload_type as payload_type,
74
)
75 10
from .resolver import (
76
    AsyncResolver as AsyncResolver,
77
    DefaultResolver as DefaultResolver,
78
    ThreadedResolver as ThreadedResolver,
79
)
80 10
from .streams import (
81
    EMPTY_PAYLOAD as EMPTY_PAYLOAD,
82
    DataQueue as DataQueue,
83
    EofStream as EofStream,
84
    FlowControlDataQueue as FlowControlDataQueue,
85
    StreamReader as StreamReader,
86
)
87 10
from .tracing import (
88
    TraceConfig as TraceConfig,
89
    TraceConnectionCreateEndParams as TraceConnectionCreateEndParams,
90
    TraceConnectionCreateStartParams as TraceConnectionCreateStartParams,
91
    TraceConnectionQueuedEndParams as TraceConnectionQueuedEndParams,
92
    TraceConnectionQueuedStartParams as TraceConnectionQueuedStartParams,
93
    TraceConnectionReuseconnParams as TraceConnectionReuseconnParams,
94
    TraceDnsCacheHitParams as TraceDnsCacheHitParams,
95
    TraceDnsCacheMissParams as TraceDnsCacheMissParams,
96
    TraceDnsResolveHostEndParams as TraceDnsResolveHostEndParams,
97
    TraceDnsResolveHostStartParams as TraceDnsResolveHostStartParams,
98
    TraceRequestChunkSentParams as TraceRequestChunkSentParams,
99
    TraceRequestEndParams as TraceRequestEndParams,
100
    TraceRequestExceptionParams as TraceRequestExceptionParams,
101
    TraceRequestRedirectParams as TraceRequestRedirectParams,
102
    TraceRequestStartParams as TraceRequestStartParams,
103
    TraceResponseChunkReceivedParams as TraceResponseChunkReceivedParams,
104
)
105

106 10
__all__: Tuple[str, ...] = (
107
    "hdrs",
108
    # client
109
    "BaseConnector",
110
    "ClientConnectionError",
111
    "ClientConnectorCertificateError",
112
    "ClientConnectorError",
113
    "ClientConnectorSSLError",
114
    "ClientError",
115
    "ClientHttpProxyError",
116
    "ClientOSError",
117
    "ClientPayloadError",
118
    "ClientProxyConnectionError",
119
    "ClientResponse",
120
    "ClientRequest",
121
    "ClientResponseError",
122
    "ClientSSLError",
123
    "ClientSession",
124
    "ClientTimeout",
125
    "ClientWebSocketResponse",
126
    "ContentTypeError",
127
    "Fingerprint",
128
    "InvalidURL",
129
    "RequestInfo",
130
    "ServerConnectionError",
131
    "ServerDisconnectedError",
132
    "ServerFingerprintMismatch",
133
    "ServerTimeoutError",
134
    "TCPConnector",
135
    "TooManyRedirects",
136
    "UnixConnector",
137
    "NamedPipeConnector",
138
    "WSServerHandshakeError",
139
    "request",
140
    # cookiejar
141
    "CookieJar",
142
    "DummyCookieJar",
143
    # formdata
144
    "FormData",
145
    # helpers
146
    "BasicAuth",
147
    "ChainMapProxy",
148
    "ETag",
149
    # http
150
    "HttpVersion",
151
    "HttpVersion10",
152
    "HttpVersion11",
153
    "WSMsgType",
154
    "WSCloseCode",
155
    "WSMessage",
156
    "WebSocketError",
157
    # multipart
158
    "BadContentDispositionHeader",
159
    "BadContentDispositionParam",
160
    "BodyPartReader",
161
    "MultipartReader",
162
    "MultipartWriter",
163
    "content_disposition_filename",
164
    "parse_content_disposition",
165
    # payload
166
    "AsyncIterablePayload",
167
    "BufferedReaderPayload",
168
    "BytesIOPayload",
169
    "BytesPayload",
170
    "IOBasePayload",
171
    "JsonPayload",
172
    "PAYLOAD_REGISTRY",
173
    "Payload",
174
    "StringIOPayload",
175
    "StringPayload",
176
    "TextIOPayload",
177
    "get_payload",
178
    "payload_type",
179
    # resolver
180
    "AsyncResolver",
181
    "DefaultResolver",
182
    "ThreadedResolver",
183
    # signals
184
    "Signal",
185
    # streams
186
    "DataQueue",
187
    "EMPTY_PAYLOAD",
188
    "EofStream",
189
    "FlowControlDataQueue",
190
    "StreamReader",
191
    # tracing
192
    "TraceConfig",
193
    "TraceConnectionCreateEndParams",
194
    "TraceConnectionCreateStartParams",
195
    "TraceConnectionQueuedEndParams",
196
    "TraceConnectionQueuedStartParams",
197
    "TraceConnectionReuseconnParams",
198
    "TraceDnsCacheHitParams",
199
    "TraceDnsCacheMissParams",
200
    "TraceDnsResolveHostEndParams",
201
    "TraceDnsResolveHostStartParams",
202
    "TraceRequestChunkSentParams",
203
    "TraceRequestEndParams",
204
    "TraceRequestExceptionParams",
205
    "TraceRequestRedirectParams",
206
    "TraceRequestStartParams",
207
    "TraceResponseChunkReceivedParams",
208
)
209

210 10
try:
211 10
    from .worker import GunicornUVLoopWebWorker, GunicornWebWorker
212

213 7
    __all__ += ("GunicornWebWorker", "GunicornUVLoopWebWorker")
214
except ImportError:  # pragma: no cover
215
    pass

Read our documentation on viewing source code .

Loading