您现在的位置是:首页 >其他 >一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)网站首页其他
一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)
本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008
一图看懂 aiohttp 模块:基于 asyncio 的异步HTTP网络库, 资料整理+笔记(大全)
- 摘要
- 模块图
- 类关系图
- 模块全展开
- 【aiohttp】
- 统计
- 常量
- 模块
- 1 aiohttp.hdrs
- 2 aiohttp.typedefs
- 3 aiohttp.http_exceptions
- 4 aiohttp.tcp_helpers
- 5 aiohttp.base_protocol
- 6 aiohttp.log
- 7 aiohttp._helpers
- 8 aiohttp.helpers
- 9 aiohttp.abc
- 10 aiohttp._http_writer
- 11 aiohttp.http_writer
- 12 aiohttp.streams
- 13 aiohttp._http_parser
- 14 aiohttp.http_parser
- 15 aiohttp._websocket
- 16 aiohttp.http_websocket
- 17 aiohttp.http
- 18 aiohttp.payload
- 19 aiohttp.client_exceptions
- 20 aiohttp.multipart
- 21 aiohttp.formdata
- 22 aiohttp.client_reqrep
- 23 aiohttp.client_ws
- 24 aiohttp.client_proto
- 25 aiohttp.locks
- 26 aiohttp.resolver
- 27 aiohttp.connector
- 28 aiohttp.cookiejar
- 29 aiohttp._frozenlist
- 30 aiohttp.frozenlist
- 31 aiohttp.signals
- 32 aiohttp.tracing
- 33 aiohttp.client
- 34 aiohttp.payload_streamer
- 函数
- 类
- 39 aiohttp.connector.BaseConnector
- 40 aiohttp.client_exceptions.ClientConnectionError
- 41 aiohttp.client_exceptions.ClientConnectorCertificateError
- 42 aiohttp.client_exceptions.ClientConnectorError
- 43 aiohttp.client_exceptions.ClientConnectorSSLError
- 44 aiohttp.client_exceptions.ClientError
- 45 aiohttp.client_exceptions.ClientHttpProxyError
- 46 aiohttp.client_exceptions.ClientOSError
- 47 aiohttp.client_exceptions.ClientPayloadError
- 48 aiohttp.client_exceptions.ClientProxyConnectionError
- 49 aiohttp.client_reqrep.ClientRequest
- data
- property
- method
- 13 close(self) -> None:
- 14 is_ssl(self) -> bool:
- 15 keep_alive(self) -> bool:
- 16 send()
- 17 terminate(self) -> None:
- 18 update_auth(self, auth: Optional[BasicAuth]) -> None:
- 19 update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:
- 20 update_body_from_data(self, body: Any) -> None:
- 21 update_content_encoding(self, data: Any) -> None:
- 22 update_cookies(self, cookies: Optional[LooseCookies]) -> None:
- 23 update_expect_continue(self, expect: bool = False) -> None:
- 24 update_headers(self, headers: Optional[LooseHeaders]) -> None:
- 25 update_host(self, url: URL) -> None:
- 26 update_proxy(
- 27 update_transfer_encoding(self) -> None:
- 28 update_version(self, version: Union[http.HttpVersion, str]) -> None:
- 29 write_bytes()
- 50 aiohttp.client_reqrep.ClientResponse
- 51 aiohttp.client_exceptions.ClientResponseError
- 52 aiohttp.client.ClientSession
- data
- property
- method
- 18 close(self) -> None:
- 19 delete(self, url: StrOrURL, **kwargs: Any) -> "_RequestContextManager":
- 20 detach(self) -> None:
- 21 get(self, url: StrOrURL, *, allow_redirects: bool = True, **kwargs: Any) -> "_RequestContextManager"
- 22 head(
- 23 options(
- 24 patch(
- 25 post(
- 26 put(
- 27 request(
- 28 ws_connect(
- 53 aiohttp.client_exceptions.ClientSSLError
- 54 aiohttp.client.ClientTimeout
- 55 aiohttp.client_ws.ClientWebSocketResponse
- 56 aiohttp.client_exceptions.ContentTypeError
- 57 aiohttp.client_reqrep.Fingerprint
- 58 aiohttp.client_exceptions.InvalidURL
- 59 aiohttp.connector.NamedPipeConnector
- 60 aiohttp.client_reqrep.RequestInfo
- 61 aiohttp.client_exceptions.ServerConnectionError
- 62 aiohttp.client_exceptions.ServerDisconnectedError
- 63 aiohttp.client_exceptions.ServerFingerprintMismatch
- 64 aiohttp.client_exceptions.ServerTimeoutError
- 65 aiohttp.connector.TCPConnector
- 66 aiohttp.client_exceptions.TooManyRedirects
- 67 aiohttp.connector.UnixConnector
- 68 aiohttp.client_exceptions.WSServerHandshakeError
- 69 aiohttp.cookiejar.CookieJar
- 70 aiohttp.cookiejar.DummyCookieJar
- 71 aiohttp.formdata.FormData
- 72 aiohttp.helpers.BasicAuth
- 73 aiohttp.helpers.ChainMapProxy
- 74 aiohttp.http_writer.HttpVersion
- 75 aiohttp.http_websocket.WebSocketError
- 76 WSCloseCode
- 77 aiohttp.http_websocket.WSMessage
- 78 WSMsgType
- 79 aiohttp.multipart.BadContentDispositionHeader
- 80 aiohttp.multipart.BadContentDispositionParam
- 81 aiohttp.multipart.BodyPartReader
- 82 aiohttp.multipart.MultipartReader
- 83 aiohttp.multipart.MultipartWriter
- 84 aiohttp.payload.AsyncIterablePayload
- 85 aiohttp.payload.BufferedReaderPayload
- 86 aiohttp.payload.BytesIOPayload
- 87 aiohttp.payload.BytesPayload
- 88 aiohttp.payload.IOBasePayload
- 89 aiohttp.payload.JsonPayload
- 90 aiohttp.payload.Payload
摘要
全文介绍系统内置 aiohttp 模块、函数、类及类的方法和属性。
它通过代码抓取并经AI智能翻译和人工校对。
是一部不可多得的权威字典类工具书。它是系列集的一部分。后续陆续发布、敬请关注。【原创:AhcaoZhu大侠】
模块图
aiohttp
aiohttp.hdrs
aiohttp.typedefs
aiohttp.http_exceptions
aiohttp.tcp_helpers
aiohttp.base_protocol
aiohttp.log
aiohttp._helpers
aiohttp.helpers
◆base64
◆cgi
◆netrc
◆platform
◆weakref
◆async_timeout
◆attr
aiohttp.abc
aiohttp._http_writer
aiohttp.http_writer
aiohttp.streams
aiohttp._http_parser
aiohttp.http_parser
aiohttp._websocket
aiohttp.http_websocket
aiohttp.http
◆http
aiohttp.payload
◆mimetypes
aiohttp.client_exceptions
◆ssl
aiohttp.multipart
◆uuid
aiohttp.formdata
aiohttp.client_reqrep
aiohttp.client_ws
aiohttp.client_proto
aiohttp.locks
aiohttp.resolver
aiohttp.connector
aiohttp.cookiejar
aiohttp._frozenlist
aiohttp.frozenlist
aiohttp.signals
aiohttp.tracing
aiohttp.client
aiohttp.payload_streamer
类关系图
◆object
◆BaseException
◆Exception
◆OSError
aiohttp.client_exceptions.ClientError
aiohttp.client_exceptions.ClientConnectionError
aiohttp.client_exceptions.ClientOSError
aiohttp.client_exceptions.ClientConnectorError
aiohttp.client_exceptions.ClientProxyConnectionError
aiohttp.client_exceptions.ClientSSLError
aiohttp.client_exceptions.ClientConnectorCertificateError
aiohttp.client_exceptions.ClientConnectorSSLError
aiohttp.client_exceptions.ServerConnectionError
aiohttp.client_exceptions.ServerDisconnectedError
aiohttp.client_exceptions.ServerFingerprintMismatch
aiohttp.client_exceptions.ServerTimeoutError
aiohttp.client_exceptions.ClientPayloadError
aiohttp.client_exceptions.ClientResponseError
aiohttp.client_exceptions.ClientHttpProxyError
aiohttp.client_exceptions.ContentTypeError
aiohttp.client_exceptions.TooManyRedirects
aiohttp.client_exceptions.WSServerHandshakeError
aiohttp.client_exceptions.InvalidURL
◆ssl.SSLError
aiohttp.client_exceptions.ClientError
◆ssl.SSLCertVerificationError
aiohttp.client_exceptions.ClientError
◆ValueError
aiohttp.client_exceptions.ClientError
◆Warning
◆RuntimeWarning
aiohttp.multipart.BadContentDispositionHeader
aiohttp.multipart.BadContentDispositionParam
aiohttp.client_exceptions.ClientError
aiohttp.http_exceptions.HttpProcessingError
aiohttp.http_exceptions.BadHttpMessage
aiohttp.http_exceptions.BadStatusLine
aiohttp.http_exceptions.HttpBadRequest
aiohttp.http_exceptions.InvalidHeader
aiohttp.http_exceptions.InvalidURLError
aiohttp.http_exceptions.LineTooLong
aiohttp.http_exceptions.PayloadEncodingError
aiohttp.http_exceptions.ContentEncodingError
aiohttp.http_exceptions.ContentLengthError
aiohttp.http_exceptions.TransferEncodingError
aiohttp.http_websocket.WSHandshakeError
aiohttp.http_websocket.WebSocketError
aiohttp.payload.LookupError
aiohttp.streams.EofStream
◆concurrent.futures._base.Error
aiohttp.client_exceptions.ClientError
◆abc.ABC
aiohttp.abc.AbstractAccessLogger
aiohttp.abc.AbstractMatchInfo
aiohttp.abc.AbstractResolver
aiohttp.resolver.AsyncResolver
aiohttp.resolver.ThreadedResolver
aiohttp.abc.AbstractRouter
aiohttp.abc.AbstractStreamWriter
aiohttp.http_writer.StreamWriter
aiohttp.abc.AbstractView
aiohttp.http_parser.HttpParser
aiohttp.http_parser.HttpRequestParser
aiohttp.http_parser.HttpResponseParser
aiohttp.payload.Payload
aiohttp.multipart.BodyPartReaderPayload
aiohttp.multipart.MultipartWriter
aiohttp.payload.AsyncIterablePayload
aiohttp.payload.StreamReaderPayload
aiohttp.payload.BytesPayload
aiohttp.payload.JsonPayload
aiohttp.payload.StringPayload
aiohttp.payload.StringIOPayload
aiohttp.payload.IOBasePayload
aiohttp.payload.BufferedReaderPayload
aiohttp.payload.BytesIOPayload
aiohttp.payload.TextIOPayload
aiohttp.payload_streamer.StreamWrapperPayload
aiohttp.payload_streamer.StreamPayload
◆contextlib.AbstractContextManager
aiohttp.helpers.BaseTimerContext
aiohttp.helpers.TimerContext
aiohttp.helpers.TimerNoop
aiohttp._frozenlist.FrozenList
aiohttp.signals.Signal
aiohttp._helpers.reify
aiohttp._http_parser.HttpParser
aiohttp._http_parser.HttpRequestParser
aiohttp._http_parser.HttpResponseParser
aiohttp._http_parser.RawRequestMessage
aiohttp._http_parser.RawResponseMessage
aiohttp.client.ClientSession
aiohttp.client.ClientTimeout
aiohttp.client._SessionRequestContextManager
aiohttp.client_reqrep.ClientRequest
aiohttp.client_reqrep.ConnectionKey
aiohttp.client_reqrep.ContentDisposition
aiohttp.client_reqrep.Fingerprint
aiohttp.client_reqrep.RequestInfo
aiohttp.client_ws.ClientWebSocketResponse
aiohttp.connector.BaseConnector
aiohttp.connector.NamedPipeConnector
aiohttp.connector.TCPConnector
aiohttp.connector.UnixConnector
aiohttp.connector.Connection
aiohttp.connector._DNSCacheTable
aiohttp.connector._DeprecationWaiter
aiohttp.connector._TransportPlaceholder
aiohttp.formdata.FormData
aiohttp.helpers.HeadersMixin
aiohttp.client_reqrep.ClientResponse
aiohttp.helpers.MimeType
aiohttp.helpers.ProxyInfo
aiohttp.helpers.TimeoutHandle
aiohttp.helpers.noop
aiohttp.http_parser.DeflateBuffer
aiohttp.http_parser.HeadersParser
aiohttp.http_parser.HttpPayloadParser
aiohttp.http_websocket.WebSocketReader
aiohttp.http_websocket.WebSocketWriter
aiohttp.locks.EventResultOrError
aiohttp.multipart.BodyPartReader
aiohttp.multipart.MultipartPayloadWriter
aiohttp.multipart.MultipartReader
aiohttp.multipart.MultipartResponseWrapper
aiohttp.payload.PayloadRegistry
aiohttp.payload.payload_type
aiohttp.payload_streamer._stream_wrapper
aiohttp.payload_streamer.streamer
aiohttp.streams.AsyncStreamReaderMixin
aiohttp.streams.EmptyStreamReader
aiohttp.streams.StreamReader
aiohttp.streams.ChunkTupleAsyncStreamIterator
aiohttp.tracing.Trace
aiohttp.tracing.TraceConfig
aiohttp.tracing.TraceConnectionCreateEndParams
aiohttp.tracing.TraceConnectionCreateStartParams
aiohttp.tracing.TraceConnectionQueuedEndParams
aiohttp.tracing.TraceConnectionQueuedStartParams
aiohttp.tracing.TraceConnectionReuseconnParams
aiohttp.tracing.TraceDnsCacheHitParams
aiohttp.tracing.TraceDnsCacheMissParams
aiohttp.tracing.TraceDnsResolveHostEndParams
aiohttp.tracing.TraceDnsResolveHostStartParams
aiohttp.tracing.TraceRequestChunkSentParams
aiohttp.tracing.TraceRequestEndParams
aiohttp.tracing.TraceRequestExceptionParams
aiohttp.tracing.TraceRequestRedirectParams
aiohttp.tracing.TraceRequestStartParams
aiohttp.tracing.TraceResponseChunkReceivedParams
◆async_timeout.timeout
aiohttp.helpers.CeilTimeout
◆asyncio.protocols.BaseProtocol
◆asyncio.protocols.Protocol
aiohttp.base_protocol.BaseProtocol
aiohttp.client_proto.ResponseHandler
◆collections.abc.Container
◆collections.abc.Iterable
◆collections.abc.Sized
aiohttp.abc.AbstractCookieJar
aiohttp.cookiejar.CookieJar
aiohttp.cookiejar.DummyCookieJar
◆collections.abc.Collection
◆collections.abc.Mapping
aiohttp.helpers.ChainMapProxy
◆collections.abc.Reversible
◆collections.abc.Sequence
◆collections.abc.MutableSequence
aiohttp.frozenlist.FrozenList
◆int
◆IntEnum
ChunkState
ParseState
WSCloseCode
WSMsgType
WSParserState
◆str
Order
◆tuple
aiohttp.helpers.BasicAuth
aiohttp.helpers.BasicAuth
aiohttp.http_parser.RawRequestMessage
aiohttp.http_parser.RawResponseMessage
aiohttp.http_websocket._WSMessageBase
aiohttp.http_websocket.WSMessage
aiohttp.http_writer.HttpVersion
◆typing.Generic
aiohttp.helpers.reify
aiohttp.streams.AsyncStreamIterator
aiohttp.streams.DataQueue
aiohttp.streams.FlowControlDataQueue
◆collections.abc.Awaitable
◆collections.abc.Coroutine
aiohttp.client._BaseRequestContextManager
aiohttp.client._RequestContextManager
aiohttp.client._WSRequestContextManager
◆typing_extensions.Protocol
aiohttp.helpers._TSelf
模块全展开
【aiohttp】
aiohttp, fullname=aiohttp, file=aiohttp_init_.py
统计
序号 | 类别 | 数量 |
---|---|---|
4 | str | 5 |
5 | tuple | 1 |
6 | list | 1 |
8 | dict | 2 |
9 | module | 34 |
10 | class | 81 |
11 | function | 4 |
13 | residual | 8 |
14 | system | 12 |
15 | private | 5 |
16 | all | 136 |
常量
模块
1 aiohttp.hdrs
hdrs, fullname=aiohttp.hdrs, file=aiohttphdrs.py
HTTP报头常量。
2 aiohttp.typedefs
typedefs, fullname=aiohttp.typedefs, file=aiohttp ypedefs.py
3 aiohttp.http_exceptions
http_exceptions, fullname=aiohttp.http_exceptions, file=aiohttphttp_exceptions.py
低级http相关异常。
4 aiohttp.tcp_helpers
tcp_helpers, fullname=aiohttp.tcp_helpers, file=aiohttp cp_helpers.py
帮助器方法来优化TCP连接
5 aiohttp.base_protocol
base_protocol, fullname=aiohttp.base_protocol, file=aiohttpase_protocol.py
6 aiohttp.log
log, fullname=aiohttp.log, file=aiohttplog.py
7 aiohttp._helpers
_helpers, fullname=aiohttp._helpers, file=aiohttp_helpers.cp37-win_amd64.pyd
8 aiohttp.helpers
helpers, fullname=aiohttp.helpers, file=aiohttphelpers.py
各种辅助函数
9 aiohttp.abc
abc, fullname=aiohttp.abc, file=aiohttpabc.py
10 aiohttp._http_writer
_http_writer, fullname=aiohttp._http_writer, file=aiohttp_http_writer.cp37-win_amd64.pyd
11 aiohttp.http_writer
http_writer, fullname=aiohttp.http_writer, file=aiohttphttp_writer.py
Http相关的解析器和协议。
12 aiohttp.streams
streams, fullname=aiohttp.streams, file=aiohttpstreams.py
13 aiohttp._http_parser
_http_parser, fullname=aiohttp._http_parser, file=aiohttp_http_parser.cp37-win_amd64.pyd
14 aiohttp.http_parser
http_parser, fullname=aiohttp.http_parser, file=aiohttphttp_parser.py
15 aiohttp._websocket
_websocket, fullname=aiohttp._websocket, file=aiohttp_websocket.cp37-win_amd64.pyd
16 aiohttp.http_websocket
http_websocket, fullname=aiohttp.http_websocket, file=aiohttphttp_websocket.py
WebSocket协议版本13和8。
17 aiohttp.http
http, fullname=aiohttp.http, file=aiohttphttp.py
18 aiohttp.payload
payload, fullname=aiohttp.payload, file=aiohttppayload.py
19 aiohttp.client_exceptions
client_exceptions, fullname=aiohttp.client_exceptions, file=aiohttpclient_exceptions.py
HTTP相关错误。
20 aiohttp.multipart
multipart, fullname=aiohttp.multipart, file=aiohttpmultipart.py
21 aiohttp.formdata
formdata, fullname=aiohttp.formdata, file=aiohttpformdata.py
22 aiohttp.client_reqrep
client_reqrep, fullname=aiohttp.client_reqrep, file=aiohttpclient_reqrep.py
23 aiohttp.client_ws
client_ws, fullname=aiohttp.client_ws, file=aiohttpclient_ws.py
asyncio的WebSocket客户端。
24 aiohttp.client_proto
client_proto, fullname=aiohttp.client_proto, file=aiohttpclient_proto.py
25 aiohttp.locks
locks, fullname=aiohttp.locks, file=aiohttplocks.py
26 aiohttp.resolver
resolver, fullname=aiohttp.resolver, file=aiohttp esolver.py
27 aiohttp.connector
connector, fullname=aiohttp.connector, file=aiohttpconnector.py
28 aiohttp.cookiejar
cookiejar, fullname=aiohttp.cookiejar, file=aiohttpcookiejar.py
29 aiohttp._frozenlist
_frozenlist, fullname=aiohttp._frozenlist, file=aiohttp_frozenlist.cp37-win_amd64.pyd
30 aiohttp.frozenlist
frozenlist, fullname=aiohttp.frozenlist, file=aiohttpfrozenlist.py
31 aiohttp.signals
signals, fullname=aiohttp.signals, file=aiohttpsignals.py
32 aiohttp.tracing
tracing, fullname=aiohttp.tracing, file=aiohttp racing.py
33 aiohttp.client
client, fullname=aiohttp.client, file=aiohttpclient.py
asyncio的HTTP客户端。
34 aiohttp.payload_streamer
payload_streamer, fullname=aiohttp.payload_streamer, file=aiohttppayload_streamer.py
作为数据提供者的协同程序的有效负载实现。
作为一个简单的例子,您可以从文件上传数据:
@aiohttp.streamer
async def file_sender(writer, file_name=None):
with open(file_name, 'rb') as f:
chunk = f.read(2**16)
while chunk:
await writer.write(chunk)
chunk = f.read(2**16)
然后你可以象这样使用 `file_sender`:
async with session.post('http://httpbin.org/post', data=file_sender(file_name='huge_file')) as resp:
print(await resp.text())
注意: 协程必须接受'writer'作为第一个参数
函数
35 request
request(method: str, url: Union[str, yarl.URL], *, params: Union[Mapping[str, str], NoneType] = None, data: Any = None, json: Any = None, headers: Union[Mapping[Union[str, multidict._multidict.istr], str], multidict._multidict.CIMultiDict, multidict._multidict.CIMultiDictProxy, NoneType] = None, skip_auto_headers: Union[Iterable[str], NoneType] = None, auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, allow_redirects: bool = True, max_redirects: int = 10, compress: Union[str, NoneType] = None, chunked: Union[bool, NoneType] = None, expect100: bool = False, raise_for_status: Union[bool, NoneType] = None, read_until_eof: bool = True, proxy: Union[str, yarl.URL, NoneType] = None, proxy_auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, timeout: Union[aiohttp.client.ClientTimeout, object] = <object object at 0x000001D0B1164FA0>, cookies: Union[Mapping[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]], Iterable[Tuple[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]]], ForwardRef(‘BaseCookie[str]’), NoneType] = None, version: aiohttp.http_writer.HttpVersion = HttpVersion(major=1, minor=1), connector: Union[aiohttp.connector.BaseConnector, NoneType] = None, read_bufsize: Union[int, NoneType] = None, loop: Union[asyncio.events.AbstractEventLoop, NoneType] = None) -> aiohttp.client._SessionRequestContextManager
request(method: str, url: Union[str, yarl.URL], *, params: Union[Mapping[str, str], NoneType] = None, data: Any = None, json: Any = None, headers: Union[Mapping[Union[str, multidict._multidict.istr], str], multidict._multidict.CIMultiDict, multidict._multidict.CIMultiDictProxy, NoneType] = None, skip_auto_headers: Union[Iterable[str], NoneType] = None, auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, allow_redirects: bool = True, max_redirects: int = 10, compress: Union[str, NoneType] = None, chunked: Union[bool, NoneType] = None, expect100: bool = False, raise_for_status: Union[bool, NoneType] = None, read_until_eof: bool = True, proxy: Union[str, yarl.URL, NoneType] = None, proxy_auth: Union[aiohttp.helpers.BasicAuth, NoneType] = None, timeout: Union[aiohttp.client.ClientTimeout, object] = <object object at 0x000001D0B1164FA0>, cookies: Union[Mapping[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]], Iterable[Tuple[str, Union[str, ForwardRef(‘BaseCookie[str]’), ForwardRef(‘Morsel[Any]’)]]], ForwardRef(‘BaseCookie[str]’), NoneType] = None, version: aiohttp.http_writer.HttpVersion = HttpVersion(major=1, minor=1), connector: Union[aiohttp.connector.BaseConnector, NoneType] = None, read_bufsize: Union[int, NoneType] = None, loop: Union[asyncio.events.AbstractEventLoop, NoneType] = None) -> aiohttp.client._SessionRequestContextManager,
module=aiohttp.client,
line:1179 at site-packagesaiohttpclient.py
构造并发送请求。返回响应对象。
method- HTTP方法
url - 请求url
params 参数 - (可选)字典或查询字符串的字节发送新的请求
data 数据——(可选)字典,字节,或类似文件的对象发送
json ——(可选)任何json兼容的python对象
headers头(可选)——(可选)随请求发送的HTTP头信息的字典
cookies ——(可选)Dict对象发送请求
auth——(可选)命名元组 BasicAuth,代表 HTTP Basic Auth
auth - aiohttp.helpers.BasicAuth
allow_redirects 允许重定向-(可选)如果设置为False,则不允许重定向。
version版本-请求HTTP版本。
compress -如果请求必须使用deflate编码进行压缩,则设置为True。
chunked -为分块传输编码设置块大小。
expect100 -期望从服务器得到100-continue响应。
connector - 支持连接池的BaseConnector子类实例。
read_until_eof -如果响应没有Content-Length报头,则读取响应直到eof。
loop -可选的事件循环。
timeout -可选的ClientTimeout设置结构,默认总超时为5分钟。
用法:
>>> import aiohttp
>>> resp = await aiohttp.request('GET', 'http://python.org/')
>>> resp
<ClientResponse(python.org/) [200]>
>>> data = await resp.read()
36 content_disposition_filename(params: Mapping[str, str], name: str = ‘filename’) -> Union[str, NoneType]
content_disposition_filename(params: Mapping[str, str], name: str = ‘filename’) -> Union[str, NoneType], module=aiohttp.multipart, line:170 at site-packagesaiohttpmultipart.py
37 parse_content_disposition(header: Union[str, NoneType]) -> Tuple[Union[str, NoneType], Dict[str, str]]
parse_content_disposition(header: Union[str, NoneType]) -> Tuple[Union[str, NoneType], Dict[str, str]], module=aiohttp.multipart, line:71 at site-packagesaiohttpmultipart.py
38 get_payload(data: Any, *args: Any, **kwargs: Any) -> ‘Payload’
get_payload(data: Any, *args: Any, **kwargs: Any) -> ‘Payload’, module=aiohttp.payload, line:72 at site-packagesaiohttppayload.py
类
39 aiohttp.connector.BaseConnector
BaseConnector, aiohttp.connector.BaseConnector, module=aiohttp.connector, line:187 at site-packagesaiohttpconnector.py
基连接器类。
keepalive_timeout - (可选)keep-alive超时。
force_close - 设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。
limit -同时连接的总数。
limit_per_host - 限制每台主机-同时连接到一台主机的数量。
enable_cleanup_closed -启用清理已关闭的ssl传输。默认为关闭。
loop -可选的事件循环。
property
1 closed=<property object at 0x000001D0B1381138> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
2 force_close=<property object at 0x000001D0B137ED68> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
3 limit=<property object at 0x000001D0B137EE08> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
4 limit_per_host=<property object at 0x000001D0B137EEA8> kind:property type:property class:<class ‘aiohttp.connector.BaseConnector’>
method
5 close(self) -> Awaitable[None]:
kind=method class=BaseConnector objtype=function line:402 at …libsite-packagesaiohttpconnector.py
关闭所有打开的传输。
6 connect()
kind=method class=BaseConnector objtype=function
从池中获取或创建新连接。
40 aiohttp.client_exceptions.ClientConnectionError
ClientConnectionError, aiohttp.client_exceptions.ClientConnectionError, module=aiohttp.client_exceptions, line:144 at site-packagesaiohttpclient_exceptions.py
客户端套接字错误的基类。
41 aiohttp.client_exceptions.ClientConnectorCertificateError
ClientConnectorCertificateError, aiohttp.client_exceptions.ClientConnectorCertificateError, module=aiohttp.client_exceptions, line:286 at site-packagesaiohttpclient_exceptions.py
响应证书错误。
property
1 certificate_error=<property object at 0x000001D0B12FC1D8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
2 host=<property object at 0x000001D0B12FC278> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
3 port=<property object at 0x000001D0B12FC318> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
4 ssl=<property object at 0x000001D0B12FC3B8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorCertificateError’>
42 aiohttp.client_exceptions.ClientConnectorError
ClientConnectorError, aiohttp.client_exceptions.ClientConnectorError, module=aiohttp.client_exceptions, line:152 at site-packagesaiohttpclient_exceptions.py
客户端连接器错误。
如果无法建立与代理的连接,则在:class:`aiohttp.connector.TCPConnector`中引发。
property
1 host=<property object at 0x000001D0B12F73B8> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
2 os_error=<property object at 0x000001D0B12F7318> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
3 port=<property object at 0x000001D0B12F7458> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
4 ssl=<property object at 0x000001D0B12F7818> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientConnectorError’>
43 aiohttp.client_exceptions.ClientConnectorSSLError
ClientConnectorSSLError, aiohttp.client_exceptions.ClientConnectorSSLError, module=aiohttp.client_exceptions, line:282 at site-packagesaiohttpclient_exceptions.py
响应ssl错误。
44 aiohttp.client_exceptions.ClientError
ClientError, aiohttp.client_exceptions.ClientError, module=aiohttp.client_exceptions, line:44 at site-packagesaiohttpclient_exceptions.py
客户端连接错误的基类。
45 aiohttp.client_exceptions.ClientHttpProxyError
ClientHttpProxyError, aiohttp.client_exceptions.ClientHttpProxyError, module=aiohttp.client_exceptions, line:131 at site-packagesaiohttpclient_exceptions.py
HTTP代理错误。
如果代理在“CONNECT”请求上响应的状态不是“200 OK”,则在:class:`aiohttp.connector.TCPConnector中引发。
46 aiohttp.client_exceptions.ClientOSError
ClientOSError, aiohttp.client_exceptions.ClientOSError, module=aiohttp.client_exceptions, line:148 at site-packagesaiohttpclient_exceptions.py
OSError错误。
47 aiohttp.client_exceptions.ClientPayloadError
ClientPayloadError, aiohttp.client_exceptions.ClientPayloadError, module=aiohttp.client_exceptions, line:233 at site-packagesaiohttpclient_exceptions.py
响应有效载荷错误。
48 aiohttp.client_exceptions.ClientProxyConnectionError
ClientProxyConnectionError, aiohttp.client_exceptions.ClientProxyConnectionError, module=aiohttp.client_exceptions, line:190 at site-packagesaiohttpclient_exceptions.py
代理连接错误。
如果无法建立与代理的连接,则在:class:`aiohttp.connector.TCPConnector`中引发。
49 aiohttp.client_reqrep.ClientRequest
ClientRequest, aiohttp.client_reqrep.ClientRequest, module=aiohttp.client_reqrep, line:220 at site-packagesaiohttpclient_reqrep.py
data
1 ALL_METHODS={‘TRACE’, ‘GET’, ‘PATCH’, ‘HEAD’, ‘POST’, ‘DELETE’, ‘PUT’, ‘OPTIONS’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
2 DEFAULT_HEADERS={‘Accept’: ‘/’, ‘Accept-Encoding’: ‘gzip, deflate’} kind:data type:dict class:<class ‘aiohttp.client_reqrep.ClientRequest’>
3 GET_METHODS={‘OPTIONS’, ‘GET’, ‘TRACE’, ‘HEAD’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
4 POST_METHODS={‘PUT’, ‘PATCH’, ‘POST’} kind:data type:set class:<class ‘aiohttp.client_reqrep.ClientRequest’>
5 auth=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientRequest’>
6 body=b’’ kind:data type:bytes class:<class ‘aiohttp.client_reqrep.ClientRequest’>
7 response=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientRequest’>
property
8 connection_key=<property object at 0x000001D0B135CD18> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
9 host=<property object at 0x000001D0B135CD68> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
10 port=<property object at 0x000001D0B135CDB8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
11 request_info=<property object at 0x000001D0B135CE08> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
12 ssl=<property object at 0x000001D0B135CCC8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientRequest’>
method
13 close(self) -> None:
kind=method class=ClientRequest objtype=function line:953 at …libsite-packagesaiohttpclient_reqrep.py
14 is_ssl(self) -> bool:
kind=method class=ClientRequest objtype=function line:321 at …libsite-packagesaiohttpclient_reqrep.py
15 keep_alive(self) -> bool:
kind=method class=ClientRequest objtype=function line:558 at …libsite-packagesaiohttpclient_reqrep.py
16 send()
kind=method class=ClientRequest objtype=function
17 terminate(self) -> None:
kind=method class=ClientRequest objtype=function line:694 at …libsite-packagesaiohttpclient_reqrep.py
18 update_auth(self, auth: Optional[BasicAuth]) -> None:
kind=method class=ClientRequest objtype=function line:489 at …libsite-packagesaiohttpclient_reqrep.py
设置基本授权。
19 update_auto_headers(self, skip_auto_headers: Iterable[str]) -> None:
kind=method class=ClientRequest objtype=function line:411 at …libsite-packagesaiohttpclient_reqrep.py
20 update_body_from_data(self, body: Any) -> None:
kind=method class=ClientRequest objtype=function line:501 at …libsite-packagesaiohttpclient_reqrep.py
21 update_content_encoding(self, data: Any) -> None:
kind=method class=ClientRequest objtype=function line:450 at …libsite-packagesaiohttpclient_reqrep.py
设置请求内容编码。
22 update_cookies(self, cookies: Optional[LooseCookies]) -> None:
kind=method class=ClientRequest objtype=function line:425 at …libsite-packagesaiohttpclient_reqrep.py
更新请求cookie头。
23 update_expect_continue(self, expect: bool = False) -> None:
kind=method class=ClientRequest objtype=function line:535 at …libsite-packagesaiohttpclient_reqrep.py
24 update_headers(self, headers: Optional[LooseHeaders]) -> None:
kind=method class=ClientRequest objtype=function line:388 at …libsite-packagesaiohttpclient_reqrep.py
更新请求标头。
25 update_host(self, url: URL) -> None:
kind=method class=ClientRequest objtype=function line:362 at …libsite-packagesaiohttpclient_reqrep.py
更新目标主机、端口和连接类型(ssl)。
26 update_proxy(
kind=method class=ClientRequest objtype=function line:544 at …libsite-packagesaiohttpclient_reqrep.py
27 update_transfer_encoding(self) -> None:
kind=method class=ClientRequest objtype=function line:467 at …libsite-packagesaiohttpclient_reqrep.py
分析传输编码头。
28 update_version(self, version: Union[http.HttpVersion, str]) -> None:
kind=method class=ClientRequest objtype=function line:373 at …libsite-packagesaiohttpclient_reqrep.py
将请求版本转换为双元素元组。
解析HTTP版本'1.1' => (1, 1)
29 write_bytes()
kind=method class=ClientRequest objtype=function
支持产生bytes对象的协程。
50 aiohttp.client_reqrep.ClientResponse
ClientResponse, aiohttp.client_reqrep.ClientResponse, module=aiohttp.client_reqrep, line:705 at site-packagesaiohttpclient_reqrep.py
data
1 content=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
2 content_disposition=<aiohttp._helpers.reify object at 0x000001D0B135B188> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
3 headers=<aiohttp._helpers.reify object at 0x000001D0B1356F48> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
4 history=<aiohttp._helpers.reify object at 0x000001D0B135B408> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
5 host=<aiohttp._helpers.reify object at 0x000001D0B1356F08> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
6 links=<aiohttp._helpers.reify object at 0x000001D0B135B488> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
7 raw_headers=<aiohttp._helpers.reify object at 0x000001D0B1356F88> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
8 real_url=<aiohttp._helpers.reify object at 0x000001D0B1356EC8> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
9 reason=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
10 request_info=<aiohttp._helpers.reify object at 0x000001D0B1356FC8> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
11 status=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
12 url=<aiohttp._helpers.reify object at 0x000001D0B1356E48> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
13 url_obj=<aiohttp._helpers.reify object at 0x000001D0B1356E88> kind:data type:reify class:<class ‘aiohttp.client_reqrep.ClientResponse’>
14 version=None kind:data type:NoneType class:<class ‘aiohttp.client_reqrep.ClientResponse’>
property
15 closed=<property object at 0x000001D0B135DBD8> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>
16 connection=<property object at 0x000001D0B135D958> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>
17 ok=<property object at 0x000001D0B135DD18> kind:property type:property class:<class ‘aiohttp.client_reqrep.ClientResponse’>
method
18 close(self) -> None:
kind=method class=ClientResponse objtype=function line:953 at …libsite-packagesaiohttpclient_reqrep.py
19 get_encoding(self) -> str:
kind=method class=ClientResponse objtype=function line:1045 at …libsite-packagesaiohttpclient_reqrep.py
20 json()
kind=method class=ClientResponse objtype=function
读取和解码JSON响应。
21 raise_for_status(self) -> None:
kind=method class=ClientResponse objtype=function line:995 at …libsite-packagesaiohttpclient_reqrep.py
22 read()
kind=method class=ClientResponse objtype=function
读取响应负载。
23 release(self) -> Any:
kind=method class=ClientResponse objtype=function line:968 at …libsite-packagesaiohttpclient_reqrep.py
24 start()
kind=method class=ClientResponse objtype=function
启动响应处理。
25 text()
kind=method class=ClientResponse objtype=function
读取响应有效载荷并解码。
26 wait_for_close()
kind=method class=ClientResponse objtype=function
51 aiohttp.client_exceptions.ClientResponseError
ClientResponseError, aiohttp.client_exceptions.ClientResponseError, module=aiohttp.client_exceptions, line:48 at site-packagesaiohttpclient_exceptions.py
读取响应时连接错误。
request_info: RequestInfo的实例
property
1 code=<property object at 0x000001D0B12F1C78> kind:property type:property class:<class ‘aiohttp.client_exceptions.ClientResponseError’>
52 aiohttp.client.ClientSession
ClientSession, aiohttp.client.ClientSession, module=aiohttp.client, line:163 at site-packagesaiohttpclient.py
用于发出HTTP请求的一级接口。
data
1 ATTRS=frozenset({‘_requote_redirect_url’, ‘_connector’, ‘_request_class’, ‘_version’, ‘_skip_auto_headers’, ‘_loop’, ‘_cookie_jar’, ‘_source_traceback’, ‘_json_serialize’, ‘_response_class’, ‘_auto_decompress’, ‘_raise_for_status’, ‘_connector_owner’, ‘_ws_response_class’, ‘_trace_configs’, ‘_default_auth’, ‘_read_bufsize’, ‘_trust_env’, ‘requote_redirect_url’, ‘_default_headers’, ‘_timeout’}) kind:data type:frozenset class:<class ‘aiohttp.client.ClientSession’>
property
2 auth=<property object at 0x000001D0B1C09138> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
3 auto_decompress=<property object at 0x000001D0B1C044A8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
4 closed=<property object at 0x000001D0B1BB7EA8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
5 connector=<property object at 0x000001D0B1365B38> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
6 connector_owner=<property object at 0x000001D0B1BF8F98> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
7 cookie_jar=<property object at 0x000001D0B134A688> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
8 headers=<property object at 0x000001D0B1C09D18> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
9 json_serialize=<property object at 0x000001D0B1C01868> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
10 loop=<property object at 0x000001D0B1C12818> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
11 raise_for_status=<property object at 0x000001D0B1BE59A8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
12 requote_redirect_url=<property object at 0x000001D0B1C127C8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
13 skip_auto_headers=<property object at 0x000001D0B1C09188> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
14 timeout=<property object at 0x000001D0B1C0E908> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
15 trace_configs=<property object at 0x000001D0B1C045E8> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
16 trust_env=<property object at 0x000001D0B1C04548> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
17 version=<property object at 0x000001D0B1C12868> kind:property type:property class:<class ‘aiohttp.client.ClientSession’>
method
18 close(self) -> None:
kind=method class=ClientSession objtype=function line:1106 at …libsite-packagesaiohttpclient.py
关闭底层连接器。
释放所有已获得的资源。
19 delete(self, url: StrOrURL, **kwargs: Any) -> “_RequestContextManager”:
kind=method class=ClientSession objtype=function line:943 at …libsite-packagesaiohttpclient.py
执行HTTP DELETE请求。
20 detach(self) -> None:
kind=method class=ClientSession objtype=function line:1062 at …libsite-packagesaiohttpclient.py
从会话中分离连接器而不关闭前者。
会话将切换到关闭状态。
21 get(self, url: StrOrURL, *, allow_redirects: bool = True, **kwargs: Any) -> “_RequestContextManager”
kind=method class=ClientSession objtype=function line:891 at …libsite-packagesaiohttpclient.py
执行HTTP GET请求。
22 head(
kind=method class=ClientSession objtype=function line:909 at …libsite-packagesaiohttpclient.py
执行HTTP HEAD请求。
23 options(
kind=method class=ClientSession objtype=function line:899 at …libsite-packagesaiohttpclient.py
执行HTTP OPTIONS请求。
24 patch(
kind=method class=ClientSession objtype=function line:935 at …libsite-packagesaiohttpclient.py
执行HTTP PATCH请求。
25 post(
kind=method class=ClientSession objtype=function line:919 at …libsite-packagesaiohttpclient.py
执行HTTP POST请求。
26 put(
kind=method class=ClientSession objtype=function line:927 at …libsite-packagesaiohttpclient.py
执行HTTP PUT请求。
27 request(
kind=method class=ClientSession objtype=function line:339 at …libsite-packagesaiohttpclient.py
执行HTTP请求。
28 ws_connect(
kind=method class=ClientSession objtype=function line:651 at …libsite-packagesaiohttpclient.py
启动websocket连接。
53 aiohttp.client_exceptions.ClientSSLError
ClientSSLError, aiohttp.client_exceptions.ClientSSLError, module=aiohttp.client_exceptions, line:258 at site-packagesaiohttpclient_exceptions.py
ssl.*Errors 基本错误。
54 aiohttp.client.ClientTimeout
ClientTimeout, aiohttp.client.ClientTimeout, module=aiohttp.client, line:137 at site-packagesaiohttpclient.py
data
1 connect=<member ‘connect’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
2 sock_connect=<member ‘sock_connect’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
3 sock_read=<member ‘sock_read’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
4 total=<member ‘total’ of ‘ClientTimeout’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client.ClientTimeout’>
55 aiohttp.client_ws.ClientWebSocketResponse
ClientWebSocketResponse, aiohttp.client_ws.ClientWebSocketResponse, module=aiohttp.client_ws, line:28 at site-packagesaiohttpclient_ws.py
property
1 client_notakeover=<property object at 0x000001D0B1361F48> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
2 close_code=<property object at 0x000001D0B1361D68> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
3 closed=<property object at 0x000001D0B1361CC8> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
4 compress=<property object at 0x000001D0B1361EA8> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
5 protocol=<property object at 0x000001D0B1361E08> kind:property type:property class:<class ‘aiohttp.client_ws.ClientWebSocketResponse’>
method
6 close()
kind=method class=ClientWebSocketResponse objtype=function
7 exception(self) -> Optional[BaseException]:
kind=method class=ClientWebSocketResponse objtype=function line:138 at …libsite-packagesaiohttpclient_ws.py
8 get_extra_info(self, name: str, default: Any = None) -> Any:
kind=method class=ClientWebSocketResponse objtype=function line:128 at …libsite-packagesaiohttpclient_ws.py
来自连接传输的额外信息
9 ping()
kind=method class=ClientWebSocketResponse objtype=function
10 pong()
kind=method class=ClientWebSocketResponse objtype=function
11 receive()
kind=method class=ClientWebSocketResponse objtype=function
12 receive_bytes()
kind=method class=ClientWebSocketResponse objtype=function
13 receive_json()
kind=method class=ClientWebSocketResponse objtype=function
14 receive_str()
kind=method class=ClientWebSocketResponse objtype=function
15 send_bytes()
kind=method class=ClientWebSocketResponse objtype=function
16 send_json()
kind=method class=ClientWebSocketResponse objtype=function
17 send_str()
kind=method class=ClientWebSocketResponse objtype=function
56 aiohttp.client_exceptions.ContentTypeError
ContentTypeError, aiohttp.client_exceptions.ContentTypeError, module=aiohttp.client_exceptions, line:123 at site-packagesaiohttpclient_exceptions.py
找到的内容类型无效。
57 aiohttp.client_reqrep.Fingerprint
Fingerprint, aiohttp.client_reqrep.Fingerprint, module=aiohttp.client_reqrep, line:106 at site-packagesaiohttpclient_reqrep.py
data
1 HASHFUNC_BY_DIGESTLEN={16: , 20: , 32: … kind:data type:dict class:<class ‘aiohttp.client_reqrep.Fingerprint’>
property
2 fingerprint=<property object at 0x000001D0B134DA98> kind:property type:property class:<class ‘aiohttp.client_reqrep.Fingerprint’>
method
3 check(self, transport: asyncio.Transport) -> None:
kind=method class=Fingerprint objtype=function line:129 at …libsite-packagesaiohttpclient_reqrep.py
58 aiohttp.client_exceptions.InvalidURL
InvalidURL, aiohttp.client_exceptions.InvalidURL, module=aiohttp.client_exceptions, line:237 at site-packagesaiohttpclient_exceptions.py
无效的URL。
用于抓取的URL格式不正确,例如不包含主机部分。
property
1 url=<property object at 0x000001D0B12F7E08> kind:property type:property class:<class ‘aiohttp.client_exceptions.InvalidURL’>
59 aiohttp.connector.NamedPipeConnector
NamedPipeConnector, aiohttp.connector.NamedPipeConnector, module=aiohttp.connector, line:1202 at site-packagesaiohttpconnector.py
命名管接头。
仅由proactor事件循环支持。[参见:](https://docs.python.org/3.7/library/asyncio-eventloop.html)
path - Windows命名管道路径。
keepalive_timeout -(可选)keepalive超时。
force_close-设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。
limit -同时连接的总数。
limit_per_host - 限制每台主机-同时连接到一台主机的数量。
loop -可选的事件循环。
property
1 path=<property object at 0x000001D0B1386868> kind:property type:property class:<class ‘aiohttp.connector.NamedPipeConnector’>
60 aiohttp.client_reqrep.RequestInfo
RequestInfo, aiohttp.client_reqrep.RequestInfo, module=aiohttp.client_reqrep, line:95 at site-packagesaiohttpclient_reqrep.py
data
1 headers=<member ‘headers’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
2 method=<member ‘method’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
3 real_url=<member ‘real_url’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
4 url=<member ‘url’ of ‘RequestInfo’ objects> kind:data type:member_descriptor class:<class ‘aiohttp.client_reqrep.RequestInfo’>
method
5 real_url_default(self) -> URL:
kind=method class=RequestInfo objtype=function line:102 at …libsite-packagesaiohttpclient_reqrep.py
61 aiohttp.client_exceptions.ServerConnectionError
ServerConnectionError, aiohttp.client_exceptions.ServerConnectionError, module=aiohttp.client_exceptions, line:198 at site-packagesaiohttpclient_exceptions.py
服务器连接错误。
62 aiohttp.client_exceptions.ServerDisconnectedError
ServerDisconnectedError, aiohttp.client_exceptions.ServerDisconnectedError, module=aiohttp.client_exceptions, line:202 at site-packagesaiohttpclient_exceptions.py
服务器断开连接。
63 aiohttp.client_exceptions.ServerFingerprintMismatch
ServerFingerprintMismatch, aiohttp.client_exceptions.ServerFingerprintMismatch, module=aiohttp.client_exceptions, line:217 at site-packagesaiohttpclient_exceptions.py
SSL证书与期望的指纹不匹配。
64 aiohttp.client_exceptions.ServerTimeoutError
ServerTimeoutError, aiohttp.client_exceptions.ServerTimeoutError, module=aiohttp.client_exceptions, line:213 at site-packagesaiohttpclient_exceptions.py
服务器超时错误。
65 aiohttp.connector.TCPConnector
TCPConnector, aiohttp.connector.TCPConnector, module=aiohttp.connector, line:712 at site-packagesaiohttpconnector.py
TCP连接。
verify_ssl -设置为“True”,检查ssl认证。
fingerprint -传递DER格式的期望证书的二进制sha256摘要,以验证服务器提供的证书是否匹配。[参见](https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning)
resolver -启用DNS查找并使用此解析器
use_dns_cache -使用内存缓存进行DNS查找。
ttl_dns_cache -缓存dns条目的最大秒数,永远为None。
family - socket地址族
local_addr -本地元组(主机,端口)绑定socket
keepalive_timeout -(可选)keepalive超时。
force_close -设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。
limit -同时连接的总数。
limit_per_host - -同时连接到一台主机的数量。
enable_cleanup_closed - 启用清理已关闭的ssl传输。默认为关闭。
loop - 可选的事件循环。
property
1 family=<property object at 0x000001D0B1381D18> kind:property type:property class:<class ‘aiohttp.connector.TCPConnector’>
2 use_dns_cache=<property object at 0x000001D0B1381DB8> kind:property type:property class:<class ‘aiohttp.connector.TCPConnector’>
method
3 clear_dns_cache(
kind=method class=TCPConnector objtype=function line:795 at …libsite-packagesaiohttpconnector.py
删除指定的主机/端口或清除所有dns本地缓存。
4 close(self) -> Awaitable[None]:
kind=method class=TCPConnector objtype=function line:778 at …libsite-packagesaiohttpconnector.py
关闭所有正在进行的DNS调用。
66 aiohttp.client_exceptions.TooManyRedirects
TooManyRedirects, aiohttp.client_exceptions.TooManyRedirects, module=aiohttp.client_exceptions, line:140 at site-packagesaiohttpclient_exceptions.py
客户被重定向太多次。
67 aiohttp.connector.UnixConnector
UnixConnector, aiohttp.connector.UnixConnector, module=aiohttp.connector, line:1153 at site-packagesaiohttpconnector.py
Unix套接字连接器。
path - Unix套接字路径。
keepalive_timeout -(可选)keepalive超时。
force_close -设置为True强制关闭,并在每个请求后(以及重定向之间)重新连接。
limit -同时连接的总数。
limit_per_host - 限制每台主机-同时连接到一台主机的数量。
loop -可选的事件循环。
property
1 path=<property object at 0x000001D0B1386688> kind:property type:property class:<class ‘aiohttp.connector.UnixConnector’>
68 aiohttp.client_exceptions.WSServerHandshakeError
WSServerHandshakeError, aiohttp.client_exceptions.WSServerHandshakeError, module=aiohttp.client_exceptions, line:127 at site-packagesaiohttpclient_exceptions.py
Websocket服务器握手错误。
69 aiohttp.cookiejar.CookieJar
CookieJar, aiohttp.cookiejar.CookieJar, module=aiohttp.cookiejar, line:34 at site-packagesaiohttpcookiejar.py
遵循RFC 6265实现cookie存储。
data
1 DATE_DAY_OF_MONTH_RE=re.compile(‘(d{1,2})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
2 DATE_HMS_TIME_RE=re.compile(‘(d{1,2})?d{1,2})?d{1,2})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
3 DATE_MONTH_RE=re.compile(‘(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)’, re.IGNORECASE) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
4 DATE_TOKENS_RE=re.compile(‘[x09x20-x2Fx3B-x40x5B-x60x7B-x7E]*(?P[x00-x08x0A-x1Fd:a-zA-Zx7F-xFF]+)’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
5 DATE_YEAR_RE=re.compile(‘(d{2,4})’) kind:data type:Pattern class:<class ‘aiohttp.cookiejar.CookieJar’>
6 MAX_32BIT_TIME=2038-01-19 03:14:07 kind:data type:datetime class:<class ‘aiohttp.cookiejar.CookieJar’>
7 MAX_TIME=9999-12-31 23:59:59.999999+00:00 kind:data type:datetime class:<class ‘aiohttp.cookiejar.CookieJar’>
method
8 clear(self) -> None:
kind=method class=CookieJar objtype=function line:90 at …libsite-packagesaiohttpcookiejar.py
9 filter_cookies(
kind=method class=CookieJar objtype=function line:212 at …libsite-packagesaiohttpcookiejar.py
返回按属性过滤的这个jar的cookie。
10 load(self, file_path: PathLike) -> None:
kind=method class=CookieJar objtype=function line:85 at …libsite-packagesaiohttpcookiejar.py
11 save(self, file_path: PathLike) -> None:
kind=method class=CookieJar objtype=function line:80 at …libsite-packagesaiohttpcookiejar.py
12 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:
kind=method class=CookieJar objtype=function line:135 at …libsite-packagesaiohttpcookiejar.py
更新cookies。
70 aiohttp.cookiejar.DummyCookieJar
DummyCookieJar, aiohttp.cookiejar.DummyCookieJar, module=aiohttp.cookiejar, line:358 at site-packagesaiohttpcookiejar.py
实现一个虚拟cookie存储。
当不需要cookie处理时,它可以与ClientSession一起使用。
method
1 clear(self) -> None:
kind=method class=DummyCookieJar objtype=function line:375 at …libsite-packagesaiohttpcookiejar.py
2 filter_cookies(self, request_url: URL) -> “BaseCookie[str]”:
kind=method class=DummyCookieJar objtype=function line:381 at …libsite-packagesaiohttpcookiejar.py
3 update_cookies(self, cookies: LooseCookies, response_url: URL = URL()) -> None:
kind=method class=DummyCookieJar objtype=function line:378 at …libsite-packagesaiohttpcookiejar.py
71 aiohttp.formdata.FormData
FormData, aiohttp.formdata.FormData, module=aiohttp.formdata, line:14 at site-packagesaiohttpformdata.py
用于生成多部件/表单-数据和应用程序/x-www-form-urlencoded 主体的辅助类。
property
1 is_multipart=<property object at 0x000001D0B1343D18> kind:property type:property class:<class ‘aiohttp.formdata.FormData’>
method
2 add_field(
kind=method class=FormData objtype=function line:41 at …libsite-packagesaiohttpformdata.py
3 add_fields(self, *fields: Any) -> None:
kind=method class=FormData objtype=function line:87 at …libsite-packagesaiohttpformdata.py
72 aiohttp.helpers.BasicAuth
BasicAuth, aiohttp.helpers.BasicAuth, module=aiohttp.helpers, line:130 at site-packagesaiohttphelpers.py
Http基本身份验证助手。
method
1 encode(self) -> str:
kind=method class=BasicAuth objtype=function line:185 at …libsite-packagesaiohttphelpers.py
编码凭证。
class method
2 decode(cls, auth_header: str, encoding: str = “latin1”) -> “BasicAuth”:
kind=class method class=BasicAuth objtype=classmethod line:148 at …libsite-packagesaiohttphelpers.py
将一个函数转换为一个类方法。
3 from_url(cls, url: URL, *, encoding: str = “latin1”) -> Optional[“BasicAuth”]:
kind=class method class=BasicAuth objtype=classmethod line:177 at …libsite-packagesaiohttphelpers.py
将一个函数转换为一个类方法。
73 aiohttp.helpers.ChainMapProxy
ChainMapProxy, aiohttp.helpers.ChainMapProxy, module=aiohttp.helpers, line:738 at site-packagesaiohttphelpers.py
method
1 get(self, key: str, default: Any = None) -> Any:
kind=method class=ChainMapProxy objtype=function line:758 at …libsite-packagesaiohttphelpers.py
74 aiohttp.http_writer.HttpVersion
HttpVersion, aiohttp.http_writer.HttpVersion, module=aiohttp.http_writer, line:-1 at site-packagesaiohttphttp_writer.py
HttpVersion(major, minor)
property
1 major=<property object at 0x000001D0B126D778> kind:property type:property class:<class ‘aiohttp.http_writer.HttpVersion’>
2 minor=<property object at 0x000001D0B126D7C8> kind:property type:property class:<class ‘aiohttp.http_writer.HttpVersion’>
75 aiohttp.http_websocket.WebSocketError
WebSocketError, aiohttp.http_websocket.WebSocketError, module=aiohttp.http_websocket, line:102 at site-packagesaiohttphttp_websocket.py
WebSocket协议解析器错误。
76 WSCloseCode
WSCloseCode, WSCloseCode, module=aiohttp.http_websocket, line:31 at site-packagesaiohttphttp_websocket.py
枚举。
data
1 GOING_AWAY=1001 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
2 INTERNAL_ERROR=1011 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
3 INVALID_TEXT=1007 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
4 MANDATORY_EXTENSION=1010 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
5 MESSAGE_TOO_BIG=1009 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
6 OK=1000 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
7 POLICY_VIOLATION=1008 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
8 PROTOCOL_ERROR=1002 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
9 SERVICE_RESTART=1012 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
10 TRY_AGAIN_LATER=1013 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
11 UNSUPPORTED_DATA=1003 kind:data type:WSCloseCode class:<enum ‘WSCloseCode’>
77 aiohttp.http_websocket.WSMessage
WSMessage, aiohttp.http_websocket.WSMessage, module=aiohttp.http_websocket, line:89 at site-packagesaiohttphttp_websocket.py
method
1 json(self, *, loads: Callable[[Any], Any] = json.loads) -> Any:
kind=method class=WSMessage objtype=function line:90 at …libsite-packagesaiohttphttp_websocket.py
返回解析后的JSON数据。
versionadded:: 0.22
78 WSMsgType
WSMsgType, WSMsgType, module=aiohttp.http_websocket, line:48 at site-packagesaiohttphttp_websocket.py
枚举。
data
1 BINARY=2 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
2 CLOSE=8 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
3 CLOSED=257 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
4 CLOSING=256 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
5 CONTINUATION=0 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
6 ERROR=258 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
7 PING=9 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
8 PONG=10 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
9 TEXT=1 kind:data type:WSMsgType class:<enum ‘WSMsgType’>
79 aiohttp.multipart.BadContentDispositionHeader
BadContentDispositionHeader, aiohttp.multipart.BadContentDispositionHeader, module=aiohttp.multipart, line:63 at site-packagesaiohttpmultipart.py
80 aiohttp.multipart.BadContentDispositionParam
BadContentDispositionParam, aiohttp.multipart.BadContentDispositionParam, module=aiohttp.multipart, line:67 at site-packagesaiohttpmultipart.py
81 aiohttp.multipart.BodyPartReader
BodyPartReader, aiohttp.multipart.BodyPartReader, module=aiohttp.multipart, line:248 at site-packagesaiohttpmultipart.py
多部分阅读器单一的主体部分。
data
1 chunk_size=8192 kind:data type:int class:<class ‘aiohttp.multipart.BodyPartReader’>
2 filename=<aiohttp._helpers.reify object at 0x000001D0B133C808> kind:data type:reify class:<class ‘aiohttp.multipart.BodyPartReader’>
3 name=<aiohttp._helpers.reify object at 0x000001D0B133C788> kind:data type:reify class:<class ‘aiohttp.multipart.BodyPartReader’>
method
4 at_eof(self) -> bool:
kind=method class=BodyPartReader objtype=function line:433 at …libsite-packagesaiohttpmultipart.py
如果到达边界返回True,否则返回False。
5 decode(self, data: bytes) -> bytes:
kind=method class=BodyPartReader objtype=function line:437 at …libsite-packagesaiohttpmultipart.py
根据指定的Content-Encoding或Content-Transfer-Encoding头值对数据进行解码。
6 form()
kind=method class=BodyPartReader objtype=function
类似于read(),但假设主体部分包含编码URL表单数据。
7 get_charset(self, default: str) -> str:
kind=method class=BodyPartReader objtype=function line:473 at …libsite-packagesaiohttpmultipart.py
从内容类型报头或默认值返回字符集参数。
8 json()
kind=method class=BodyPartReader objtype=function
类似于read(),但假设主体部分包含JSON数据。
9 next()
kind=method class=BodyPartReader objtype=function
10 read()
kind=method class=BodyPartReader objtype=function
读取主体部分数据。
decode:对来自Content-Encoding报头的数据按编码方法进行解码。如果丢失数据,则保持不变。
11 read_chunk()
kind=method class=BodyPartReader objtype=function
读取指定大小的主体部分内容块。
size: 块大小
12 readline()
kind=method class=BodyPartReader objtype=function
逐行读取主体部位。
13 release()
kind=method class=BodyPartReader objtype=function
与read()类似,但将所有数据读取到void中。
14 text()
kind=method class=BodyPartReader objtype=function
类似于read(),但假设主体部分包含文本数据。
82 aiohttp.multipart.MultipartReader
MultipartReader, aiohttp.multipart.MultipartReader, module=aiohttp.multipart, line:519 at site-packagesaiohttpmultipart.py
多部分体阅读器。
data
1 multipart_reader_cls=None kind:data type:NoneType class:<class ‘aiohttp.multipart.MultipartReader’>
2 part_reader_cls=<class ‘aiohttp.multipart.BodyPartReader’> kind:data type:type class:<class ‘aiohttp.multipart.MultipartReader’>
3 response_wrapper_cls=<class ‘aiohttp.multipart.MultipartResponseWrapper’> kind:data type:type class:<class ‘aiohttp.multipart.MultipartReader’>
method
4 at_eof(self) -> bool:
kind=method class=MultipartReader objtype=function line:568 at …libsite-packagesaiohttpmultipart.py
如果到达最终边界返回True,否则返回False。
5 fetch_next_part()
kind=method class=MultipartReader objtype=function
返回下一个主体部位读取器。
6 next()
kind=method class=MultipartReader objtype=function
发出下一个多部分主体部分。
7 release()
kind=method class=MultipartReader objtype=function
读取所有主体部位直到最后的边界。
class method
8 from_response(
kind=class method class=MultipartReader objtype=classmethod line:555 at …libsite-packagesaiohttpmultipart.py
将一个函数转换为一个类方法。
83 aiohttp.multipart.MultipartWriter
MultipartWriter, aiohttp.multipart.MultipartWriter, module=aiohttp.multipart, line:708 at site-packagesaiohttpmultipart.py
多部分主体写作。
property
1 boundary=<property object at 0x000001D0B13431D8> kind:property type:property class:<class ‘aiohttp.multipart.MultipartWriter’>
2 size=<property object at 0x000001D0B13433B8> kind:property type:property class:<class ‘aiohttp.multipart.MultipartWriter’>
method
3 append(self, obj: Any, headers: Optional[MultiMapping[str]] = None) -> Payload:
kind=method class=MultipartWriter objtype=function line:787 at …libsite-packagesaiohttpmultipart.py
4 append_form(
kind=method class=MultipartWriter objtype=function line:843 at …libsite-packagesaiohttpmultipart.py
帮助附加表单未编码部分。
5 append_json(
kind=method class=MultipartWriter objtype=function line:834 at …libsite-packagesaiohttpmultipart.py
帮助器附加JSON部分。
6 append_payload(self, payload: Payload) -> Payload:
kind=method class=MultipartWriter objtype=function line:802 at …libsite-packagesaiohttpmultipart.py
在多部分写入器中添加一个新的主体部分。
7 write()
kind=method class=MultipartWriter objtype=function
写主体。
84 aiohttp.payload.AsyncIterablePayload
AsyncIterablePayload, aiohttp.payload.AsyncIterablePayload, module=aiohttp.payload, line:401 at site-packagesaiohttppayload.py
method
1 write()
kind=method class=AsyncIterablePayload objtype=function
85 aiohttp.payload.BufferedReaderPayload
BufferedReaderPayload, aiohttp.payload.BufferedReaderPayload, module=aiohttp.payload, line:358 at site-packagesaiohttppayload.py
property
1 size=<property object at 0x000001D0B12EAE58> kind:property type:property class:<class ‘aiohttp.payload.BufferedReaderPayload’>
86 aiohttp.payload.BytesIOPayload
BytesIOPayload, aiohttp.payload.BytesIOPayload, module=aiohttp.payload, line:349 at site-packagesaiohttppayload.py
property
1 size=<property object at 0x000001D0B12EAD18> kind:property type:property class:<class ‘aiohttp.payload.BytesIOPayload’>
87 aiohttp.payload.BytesPayload
BytesPayload, aiohttp.payload.BytesPayload, module=aiohttp.payload, line:208 at site-packagesaiohttppayload.py
method
1 write()
kind=method class=BytesPayload objtype=function
88 aiohttp.payload.IOBasePayload
IOBasePayload, aiohttp.payload.IOBasePayload, module=aiohttp.payload, line:278 at site-packagesaiohttppayload.py
method
1 write()
kind=method class=IOBasePayload objtype=function
89 aiohttp.payload.JsonPayload
JsonPayload, aiohttp.payload.JsonPayload, module=aiohttp.payload, line:369 at site-packagesaiohttppayload.py
90 aiohttp.payload.Payload
Payload, aiohttp.payload.Payload, module=aiohttp.payload, line:92 at site-packagesaiohttppayload.py
property
1 content_type=<property object at 0x000001D0B12EA0E8> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
2 encoding=<property object at 0x000001D0B12EA048> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
3 filename=<property object at 0x000001D0B12E7E08> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
4 headers=<property object at 0x000001D0B12E7EA8> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
5 size=<property object at 0x000001D0B12E7D68> kind:property type:property class:<class ‘aiohttp.payload.Payload’>
method
6 set_content_disposition(
kind=method class=Payload objtype=function line:192 at …libsite-packagesaiohttppayload.py
设置``Content-Disposition``标头。
d```
> #### 7 write()
> kind=method class=Payload objtype=function
写有效载荷。
writer是一个AbstractStreamWriter实例:
### 91 aiohttp.payload.StringIOPayload
> StringIOPayload, aiohttp.payload.StringIOPayload, module=aiohttp.payload, line:273 at site-packagesaiohttppayload.py
### 92 aiohttp.payload.StringPayload
> StringPayload, aiohttp.payload.StringPayload, module=aiohttp.payload, line:242 at site-packagesaiohttppayload.py
### 93 aiohttp.payload.TextIOPayload
> TextIOPayload, aiohttp.payload.TextIOPayload, module=aiohttp.payload, line:302 at site-packagesaiohttppayload.py
#### property
> 1 size=<property object at 0x000001D0B12EAAE8> kind:property type:property class:<class 'aiohttp.payload.TextIOPayload'>
#### method
> #### 2 write()
> kind=method class=TextIOPayload objtype=function
### 94 aiohttp.payload.payload_type
> payload_type, aiohttp.payload.payload_type, module=aiohttp.payload, line:82 at site-packagesaiohttppayload.py
### 95 aiohttp.payload_streamer.streamer
> streamer, aiohttp.payload_streamer.streamer, module=aiohttp.payload_streamer, line:49 at site-packagesaiohttppayload_streamer.py
### 96 aiohttp.resolver.AsyncResolver
> AsyncResolver, aiohttp.resolver.AsyncResolver, module=aiohttp.resolver, line:68 at site-packagesaiohttp
esolver.py
使用’ aiodns '包进行异步DNS查找
#### method
> #### 1 close()
> kind=method class=AsyncResolver objtype=function
> #### 2 resolve()
> kind=method class=AsyncResolver objtype=function
### 97 aiohttp.resolver.ThreadedResolver
> ThreadedResolver, aiohttp.resolver.ThreadedResolver, module=aiohttp.resolver, line:20 at site-packagesaiohttp
esolver.py
对同步getaddrinfo()调用使用Executor,默认为concurrent.futures.ThreadPoolExecutor。
#### method
> #### 1 close()
> kind=method class=ThreadedResolver objtype=function
> #### 2 resolve()
> kind=method class=ThreadedResolver objtype=function
### 98 aiohttp.resolver.ThreadedResolver
> ThreadedResolver, aiohttp.resolver.ThreadedResolver, module=aiohttp.resolver, line:20 at site-packagesaiohttp
esolver.py
对同步getaddrinfo()调用使用Executor,默认为concurrent.futures.ThreadPoolExecutor。
#### method
> #### 1 close()
> kind=method class=ThreadedResolver objtype=function
> #### 2 resolve()
> kind=method class=ThreadedResolver objtype=function
### 99 aiohttp.signals.Signal
> Signal, aiohttp.signals.Signal, module=aiohttp.signals, line:6 at site-packagesaiohttpsignals.py
基于协程的信号实现。
要将回调函数连接到信号,可以使用任意列表方法。
使用send()协程触发信号,该协程接受命名参数。
#### method
> #### 1 send()
> kind=method class=Signal objtype=function
向所有注册的接收方发送数据。
### 100 aiohttp.streams.DataQueue
> DataQueue, aiohttp.streams.DataQueue, module=aiohttp.streams, line:550 at site-packagesaiohttpstreams.py
DataQueue是一个具有一个读取器的通用阻塞队列。
#### method
> #### 1 at_eof(self) -> bool:
> kind=method class=DataQueue objtype=function line:567 at ...libsite-packagesaiohttpstreams.py
> #### 2 exception(self) -> Optional[BaseException]:
> kind=method class=DataQueue objtype=function line:570 at ...libsite-packagesaiohttpstreams.py
> #### 3 feed_data(self, data: _T, size: int = 0) -> None:
> kind=method class=DataQueue objtype=function line:582 at ...libsite-packagesaiohttpstreams.py
> #### 4 feed_eof(self) -> None:
> kind=method class=DataQueue objtype=function line:591 at ...libsite-packagesaiohttpstreams.py
> #### 5 is_eof(self) -> bool:
> kind=method class=DataQueue objtype=function line:564 at ...libsite-packagesaiohttpstreams.py
> #### 6 read()
> kind=method class=DataQueue objtype=function
> #### 7 set_exception(self, exc: BaseException) -> None:
> kind=method class=DataQueue objtype=function line:573 at ...libsite-packagesaiohttpstreams.py
### 101 aiohttp.streams.EofStream
> EofStream, aiohttp.streams.EofStream, module=aiohttp.streams, line:26 at site-packagesaiohttpstreams.py
流指示。
### 102 aiohttp.streams.FlowControlDataQueue
> FlowControlDataQueue, aiohttp.streams.FlowControlDataQueue, module=aiohttp.streams, line:623 at site-packagesaiohttpstreams.py
FlowControlDataQueue恢复并暂停底层流。
它是解析数据的目的地。
#### method
> #### 1 feed_data(self, data: _T, size: int = 0) -> None:
> kind=method class=FlowControlDataQueue objtype=function line:636 at ...libsite-packagesaiohttpstreams.py
> #### 2 read()
> kind=method class=FlowControlDataQueue objtype=function
### 103 aiohttp.streams.StreamReader
> StreamReader, aiohttp.streams.StreamReader, module=aiohttp.streams, line:90 at site-packagesaiohttpstreams.py
asyncio.StreamReader的增强。
支持按行、块或可用的异步迭代:
async for line in reader:
…
async for chunk in reader.iter_chunked(1024):
…
async for slice in reader.iter_any():
…
#### data
> 1 total_bytes=0 kind:data type:int class:<class 'aiohttp.streams.StreamReader'>
#### method
> #### 2 at_eof(self) -> bool:
> kind=method class=StreamReader objtype=function line:200 at ...libsite-packagesaiohttpstreams.py
如果缓冲区为空并且调用了’feed_eof’,则返回True。
> #### 3 begin_http_chunk_receiving(self) -> None:
> kind=method class=StreamReader objtype=function line:253 at ...libsite-packagesaiohttpstreams.py
> #### 4 end_http_chunk_receiving(self) -> None:
> kind=method class=StreamReader objtype=function line:261 at ...libsite-packagesaiohttpstreams.py
> #### 5 exception(self) -> Optional[BaseException]:
> kind=method class=StreamReader objtype=function line:149 at ...libsite-packagesaiohttpstreams.py
> #### 6 feed_data(self, data: bytes, size: int = 0) -> None:
> kind=method class=StreamReader objtype=function line:235 at ...libsite-packagesaiohttpstreams.py
> #### 7 feed_eof(self) -> None:
> kind=method class=StreamReader objtype=function line:175 at ...libsite-packagesaiohttpstreams.py
> #### 8 get_read_buffer_limits(self) -> Tuple[int, int]:
> kind=method class=StreamReader objtype=function line:146 at ...libsite-packagesaiohttpstreams.py
> #### 9 is_eof(self) -> bool:
> kind=method class=StreamReader objtype=function line:196 at ...libsite-packagesaiohttpstreams.py
如果调用’feed_eof’返回True。
> #### 10 on_eof(self, callback: Callable[[], None]) -> None:
> kind=method class=StreamReader objtype=function line:166 at ...libsite-packagesaiohttpstreams.py
> #### 11 read()
> kind=method class=StreamReader objtype=function
> #### 12 read_nowait(self, n: int = -1) -> bytes:
> kind=method class=StreamReader objtype=function line:443 at ...libsite-packagesaiohttpstreams.py
> #### 13 readany()
> kind=method class=StreamReader objtype=function
> #### 14 readchunk()
> kind=method class=StreamReader objtype=function
返回一个元组(data, end_of_http_chunk)。
当使用分块传输编码时,http块的结束是一个布尔值,表示数据的结束是否对应于http块的结束,否则始终为False。
> #### 15 readexactly()
> kind=method class=StreamReader objtype=function
> #### 16 readline()
> kind=method class=StreamReader objtype=function
> #### 17 set_exception(self, exc: BaseException) -> None:
> kind=method class=StreamReader objtype=function line:152 at ...libsite-packagesaiohttpstreams.py
> #### 18 unread_data(self, data: bytes) -> None:
> kind=method class=StreamReader objtype=function line:215 at ...libsite-packagesaiohttpstreams.py
回滚从流中读取一些数据,并将其插入缓冲区头。
> #### 19 wait_eof()
> kind=method class=StreamReader objtype=function
### 104 aiohttp.tracing.TraceConfig
> TraceConfig, aiohttp.tracing.TraceConfig, module=aiohttp.tracing, line:48 at site-packagesaiohttp racing.py
第一类,用于跟踪通过ClientSession对象发起的请求。
#### property
> 1 on_connection_create_end=<property object at 0x000001D0B1BBBB88> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 2 on_connection_create_start=<property object at 0x000001D0B1BBBAE8> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 3 on_connection_queued_end=<property object at 0x000001D0B1BBBA48> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 4 on_connection_queued_start=<property object at 0x000001D0B1BBB9A8> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 5 on_connection_reuseconn=<property object at 0x000001D0B1BBBC28> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 6 on_dns_cache_hit=<property object at 0x000001D0B1BBBE08> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 7 on_dns_cache_miss=<property object at 0x000001D0B1BBBEA8> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 8 on_dns_resolvehost_end=<property object at 0x000001D0B1BBBD68> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 9 on_dns_resolvehost_start=<property object at 0x000001D0B1BBBCC8> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 10 on_request_chunk_sent=<property object at 0x000001D0B1BC16D8> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 11 on_request_end=<property object at 0x000001D0B1BC8A98> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 12 on_request_exception=<property object at 0x000001D0B1BBB868> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 13 on_request_redirect=<property object at 0x000001D0B1BBB908> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 14 on_request_start=<property object at 0x000001D0B1BC1638> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
> 15 on_response_chunk_received=<property object at 0x000001D0B1BC8A48> kind:property type:property class:<class 'aiohttp.tracing.TraceConfig'>
#### method
> #### 16 freeze(self) -> None:
> kind=method class=TraceConfig objtype=function line:109 at ...libsite-packagesaiohttp racing.py
> #### 17 trace_config_ctx(
> kind=method class=TraceConfig objtype=function line:103 at ...libsite-packagesaiohttp racing.py
返回一个新的 trace_config_ctx 实例
### 105 aiohttp.tracing.TraceConnectionCreateEndParams
> TraceConnectionCreateEndParams, aiohttp.tracing.TraceConnectionCreateEndParams, module=aiohttp.tracing, line:282 at site-packagesaiohttp racing.py
由 on_connection_create_end
信号发送的参数
### 106 aiohttp.tracing.TraceConnectionCreateStartParams
> TraceConnectionCreateStartParams, aiohttp.tracing.TraceConnectionCreateStartParams, module=aiohttp.tracing, line:277 at site-packagesaiohttp racing.py
由 on_connection_create_start
信号发送的参数
### 107 aiohttp.tracing.TraceConnectionQueuedEndParams
> TraceConnectionQueuedEndParams, aiohttp.tracing.TraceConnectionQueuedEndParams, module=aiohttp.tracing, line:272 at site-packagesaiohttp racing.py
由 on_connection_queued_end
信号发送的参数
### 108 aiohttp.tracing.TraceConnectionQueuedStartParams
> TraceConnectionQueuedStartParams, aiohttp.tracing.TraceConnectionQueuedStartParams, module=aiohttp.tracing, line:267 at site-packagesaiohttp racing.py
由 on_connection_queued_start
信号发送的参数
### 109 aiohttp.tracing.TraceConnectionReuseconnParams
> TraceConnectionReuseconnParams, aiohttp.tracing.TraceConnectionReuseconnParams, module=aiohttp.tracing, line:287 at site-packagesaiohttp racing.py
由on_connection_reuseconn
信号发送的参数
### 110 aiohttp.tracing.TraceDnsCacheHitParams
> TraceDnsCacheHitParams, aiohttp.tracing.TraceDnsCacheHitParams, module=aiohttp.tracing, line:306 at site-packagesaiohttp racing.py
由 on_dns_cache_hit
信号发送的参数
#### data
> 1 host=<member 'host' of 'TraceDnsCacheHitParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceDnsCacheHitParams'>
### 111 aiohttp.tracing.TraceDnsCacheMissParams
> TraceDnsCacheMissParams, aiohttp.tracing.TraceDnsCacheMissParams, module=aiohttp.tracing, line:313 at site-packagesaiohttp racing.py
由 on_dns_cache_miss
信号发送的参数
#### data
> 1 host=<member 'host' of 'TraceDnsCacheMissParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceDnsCacheMissParams'>
### 112 aiohttp.tracing.TraceDnsResolveHostEndParams
> TraceDnsResolveHostEndParams, aiohttp.tracing.TraceDnsResolveHostEndParams, module=aiohttp.tracing, line:299 at site-packagesaiohttp racing.py
由 on_dns_resolvehost_end
信号发送的参数
#### data
> 1 host=<member 'host' of 'TraceDnsResolveHostEndParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceDnsResolveHostEndParams'>
### 113 aiohttp.tracing.TraceDnsResolveHostStartParams
> TraceDnsResolveHostStartParams, aiohttp.tracing.TraceDnsResolveHostStartParams, module=aiohttp.tracing, line:292 at site-packagesaiohttp racing.py
由 on_dns_resolvehost_start
信号发送的参数
#### data
> 1 host=<member 'host' of 'TraceDnsResolveHostStartParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceDnsResolveHostStartParams'>
### 114 aiohttp.tracing.TraceRequestChunkSentParams
> TraceRequestChunkSentParams, aiohttp.tracing.TraceRequestChunkSentParams, module=aiohttp.tracing, line:219 at site-packagesaiohttp racing.py
由 on_request_chunk_sent
信号发送的参数
#### data
> 1 chunk=<member 'chunk' of 'TraceRequestChunkSentParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>
> 2 method=<member 'method' of 'TraceRequestChunkSentParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>
> 3 url=<member 'url' of 'TraceRequestChunkSentParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestChunkSentParams'>
### 115 aiohttp.tracing.TraceRequestEndParams
> TraceRequestEndParams, aiohttp.tracing.TraceRequestEndParams, module=aiohttp.tracing, line:237 at site-packagesaiohttp racing.py
由 on_request_end
信号发送的参数
#### data
> 1 headers=<member 'headers' of 'TraceRequestEndParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestEndParams'>
> 2 method=<member 'method' of 'TraceRequestEndParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestEndParams'>
> 3 response=<member 'response' of 'TraceRequestEndParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestEndParams'>
> 4 url=<member 'url' of 'TraceRequestEndParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestEndParams'>
### 116 aiohttp.tracing.TraceRequestExceptionParams
> TraceRequestExceptionParams, aiohttp.tracing.TraceRequestExceptionParams, module=aiohttp.tracing, line:247 at site-packagesaiohttp racing.py
由 on_request_exception
信号发送的参数
#### data
> 1 exception=<member 'exception' of 'TraceRequestExceptionParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>
> 2 headers=<member 'headers' of 'TraceRequestExceptionParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>
> 3 method=<member 'method' of 'TraceRequestExceptionParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>
> 4 url=<member 'url' of 'TraceRequestExceptionParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestExceptionParams'>
### 117 aiohttp.tracing.TraceRequestRedirectParams
> TraceRequestRedirectParams, aiohttp.tracing.TraceRequestRedirectParams, module=aiohttp.tracing, line:257 at site-packagesaiohttp racing.py
由 on_request_redirect
信号发送的参数
#### data
> 1 headers=<member 'headers' of 'TraceRequestRedirectParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>
> 2 method=<member 'method' of 'TraceRequestRedirectParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>
> 3 response=<member 'response' of 'TraceRequestRedirectParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>
> 4 url=<member 'url' of 'TraceRequestRedirectParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestRedirectParams'>
### 118 aiohttp.tracing.TraceRequestStartParams
> TraceRequestStartParams, aiohttp.tracing.TraceRequestStartParams, module=aiohttp.tracing, line:210 at site-packagesaiohttp racing.py
由 on_request_start
信号发送的参数
#### data
> 1 headers=<member 'headers' of 'TraceRequestStartParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestStartParams'>
> 2 method=<member 'method' of 'TraceRequestStartParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestStartParams'>
> 3 url=<member 'url' of 'TraceRequestStartParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceRequestStartParams'>
### 119 aiohttp.tracing.TraceResponseChunkReceivedParams
> TraceResponseChunkReceivedParams, aiohttp.tracing.TraceResponseChunkReceivedParams, module=aiohttp.tracing, line:228 at site-packagesaiohttp racing.py
由 on_response_chunk_received
信号发送的参数
#### data
> 1 chunk=<member 'chunk' of 'TraceResponseChunkReceivedParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>
> 2 method=<member 'method' of 'TraceResponseChunkReceivedParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>
> 3 url=<member 'url' of 'TraceResponseChunkReceivedParams' objects> kind:data type:member_descriptor class:<class 'aiohttp.tracing.TraceResponseChunkReceivedParams'>
## 私有或局部
> 120 _helpers <module 'aiohttp._helpers' from '...\lib\site-packages\aiohttp\_helpers.cp37-win_amd64.pyd'>
> 121 _http_writer <module 'aiohttp._http_writer' from '...\lib\site-packages\aiohttp\_http_writer.cp37-win_amd64.pyd'>
> 122 _http_parser <module 'aiohttp._http_parser' from '...\lib\site-packages\aiohttp\_http_parser.cp37-win_amd64.pyd'>
> 123 _websocket <module 'aiohttp._websocket' from '...\lib\site-packages\aiohttp\_websocket.cp37-win_amd64.pyd'>
> 124 _frozenlist <module 'aiohttp._frozenlist' from '...\lib\site-packages\aiohttp\_frozenlist.cp37-win_amd64.pyd'>
## 剩余
> 125 __doc__
> 126 __loader__ <_frozen_importlib_external.SourceFileLoader object at 0x000001D0AE095208>
> 127 __spec__ ModuleSpec(name='aiohttp', loader=<_frozen_importlib_external.SourceFileLoader object at 0x000001D0AE095208>, origin='...\lib\site-packages\aiohttp\__init__.py', submodule_search_locations=['...\lib\site-packages\aiohttp'])
> 128 Tuple typing.Tuple
> 129 HttpVersion10 HttpVersion(major=1, minor=0)
> 130 HttpVersion11 HttpVersion(major=1, minor=1)
> 131 PAYLOAD_REGISTRY <aiohttp.payload.PayloadRegistry object at 0x000001D0B12E9648>
> 132 EMPTY_PAYLOAD <aiohttp.streams.EmptyStreamReader object at 0x000001D0B127B2C8>
## 【aiohttp.hdrs】
> hdrs, fullname=aiohttp.hdrs, file=aiohttphdrs.py
## 【aiohttp.typedefs】
> typedefs, fullname=aiohttp.typedefs, file=aiohttp ypedefs.py
## 【aiohttp.http_exceptions】
> http_exceptions, fullname=aiohttp.http_exceptions, file=aiohttphttp_exceptions.py
## 【aiohttp.tcp_helpers】
> tcp_helpers, fullname=aiohttp.tcp_helpers, file=aiohttp cp_helpers.py
## 【aiohttp.base_protocol】
> base_protocol, fullname=aiohttp.base_protocol, file=aiohttpase_protocol.py
## 【aiohttp.log】
> log, fullname=aiohttp.log, file=aiohttplog.py
## 【aiohttp._helpers】
> _helpers, fullname=aiohttp._helpers, file=aiohttp\_helpers.cp37-win_amd64.pyd
## 【aiohttp.helpers】
> helpers, fullname=aiohttp.helpers, file=aiohttphelpers.py
## 【aiohttp.abc】
> abc, fullname=aiohttp.abc, file=aiohttpabc.py
## 【aiohttp._http_writer】
> _http_writer, fullname=aiohttp._http_writer, file=aiohttp\_http_writer.cp37-win_amd64.pyd
## 【aiohttp.http_writer】
> http_writer, fullname=aiohttp.http_writer, file=aiohttphttp_writer.py
## 【aiohttp.streams】
> streams, fullname=aiohttp.streams, file=aiohttpstreams.py
## 【aiohttp._http_parser】
> _http_parser, fullname=aiohttp._http_parser, file=aiohttp\_http_parser.cp37-win_amd64.pyd
## 【aiohttp.http_parser】
> http_parser, fullname=aiohttp.http_parser, file=aiohttphttp_parser.py
## 【aiohttp._websocket】
> _websocket, fullname=aiohttp._websocket, file=aiohttp\_websocket.cp37-win_amd64.pyd
## 【aiohttp.http_websocket】
> http_websocket, fullname=aiohttp.http_websocket, file=aiohttphttp_websocket.py
## 【aiohttp.http】
> http, fullname=aiohttp.http, file=aiohttphttp.py
## 【aiohttp.payload】
> payload, fullname=aiohttp.payload, file=aiohttppayload.py
## 【aiohttp.client_exceptions】
> client_exceptions, fullname=aiohttp.client_exceptions, file=aiohttpclient_exceptions.py
## 【aiohttp.multipart】
> multipart, fullname=aiohttp.multipart, file=aiohttpmultipart.py
## 【aiohttp.formdata】
> formdata, fullname=aiohttp.formdata, file=aiohttpformdata.py
## 【aiohttp.client_reqrep】
> client_reqrep, fullname=aiohttp.client_reqrep, file=aiohttpclient_reqrep.py
## 【aiohttp.client_ws】
> client_ws, fullname=aiohttp.client_ws, file=aiohttpclient_ws.py
## 【aiohttp.client_proto】
> client_proto, fullname=aiohttp.client_proto, file=aiohttpclient_proto.py
## 【aiohttp.locks】
> locks, fullname=aiohttp.locks, file=aiohttplocks.py
## 【aiohttp.resolver】
> resolver, fullname=aiohttp.resolver, file=aiohttp
esolver.py
## 【aiohttp.connector】
> connector, fullname=aiohttp.connector, file=aiohttpconnector.py
## 【aiohttp.cookiejar】
> cookiejar, fullname=aiohttp.cookiejar, file=aiohttpcookiejar.py
## 【aiohttp._frozenlist】
> _frozenlist, fullname=aiohttp._frozenlist, file=aiohttp\_frozenlist.cp37-win_amd64.pyd
## 【aiohttp.frozenlist】
> frozenlist, fullname=aiohttp.frozenlist, file=aiohttpfrozenlist.py
## 【aiohttp.signals】
> signals, fullname=aiohttp.signals, file=aiohttpsignals.py
## 【aiohttp.tracing】
> tracing, fullname=aiohttp.tracing, file=aiohttp racing.py
## 【aiohttp.client】
> client, fullname=aiohttp.client, file=aiohttpclient.py
## 【aiohttp.payload_streamer】
> payload_streamer, fullname=aiohttp.payload_streamer, file=aiohttppayload_streamer.py
## 【json】
> json, fullname=json, file=json\__init__.py
## 【os】
> os, fullname=os, file=os.py
## 【pathlib】
> pathlib, fullname=pathlib, file=pathlib.py
## 【sys】
> sys, fullname=sys, file=
## 【asyncio】
> asyncio, fullname=asyncio, file=asyncio\__init__.py
## 【socket】
> socket, fullname=socket, file=socket.py
## 【logging】
> logging, fullname=logging, file=logging\__init__.py
## 【builtins】
> builtins, fullname=builtins, file=
## 【base64】
> base64, fullname=base64, file=base64.py
## 【binascii】
> binascii, fullname=binascii, file=
## 【cgi】
> cgi, fullname=cgi, file=cgi.py
## 【datetime】
> datetime, fullname=datetime, file=datetime.py
## 【functools】
> functools, fullname=functools, file=functools.py
## 【inspect】
> inspect, fullname=inspect, file=inspect.py
## 【netrc】
> netrc, fullname=netrc, file=netrc.py
## 【platform】
> platform, fullname=platform, file=platform.py
## 【re】
> re, fullname=re, file=re.py
## 【time】
> time, fullname=time, file=
## 【warnings】
> warnings, fullname=warnings, file=warnings.py
## 【weakref】
> weakref, fullname=weakref, file=weakref.py
## 【async_timeout】
> async_timeout, fullname=async_timeout, file=async_timeout\__init__.py
## 【attr】
> attr, fullname=attr, file=attr\__init__.py
## 【collections】
> collections, fullname=collections, file=collections\__init__.py
## 【zlib】
> zlib, fullname=zlib, file=
## 【abc】
> abc, fullname=abc, file=abc.py
## 【string】
> string, fullname=string, file=string.py
## 【random】
> random, fullname=random, file=random.py
## 【http】
> http, fullname=http, file=http\__init__.py
## 【enum】
> enum, fullname=enum, file=enum.py
## 【io】
> io, fullname=io, file=io.py
## 【mimetypes】
> mimetypes, fullname=mimetypes, file=mimetypes.py
## 【ssl】
> ssl, fullname=ssl, file=ssl.py
## 【uuid】
> uuid, fullname=uuid, file=uuid.py
## 【codecs】
> codecs, fullname=codecs, file=codecs.py
## 【traceback】
> traceback, fullname=traceback, file=traceback.py
## 【chardet】
> chardet, fullname=chardet, file=chardet\__init__.py
## 【pickle】
> pickle, fullname=pickle, file=pickle.py
## 【hashlib】
> hashlib, fullname=hashlib, file=hashlib.py
## 【types】
> types, fullname=types, file=types.py