Skip to content

aiohttp 3.13.3

Version history | Download JSON

  • PyPI https://pypi.org/project/aiohttp/
    Repository https://github.com/aio-libs/aiohttp

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 2731
        "Any" : 185
        "Untyped" : 147
    • 95.2% coverage
    • 89.2% coverage (strict)
    • 3063 typable
      • 2731 typed
      • 147 untyped
      • 185 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 195
        "classes" : 2504
        "other" : 128
    • 54 functions (+0 overloads)
      • 141 parameters
    • 236 classes
      • 888 methods (+9 overloads)
        • 1410 parameters
      • 190 properties
    • 50 modules
      • 128 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
aiohttp 0.0% 0.0% 0 0
aiohttp._websocket.helpers 100.0% 100.0% 8 1
aiohttp._websocket.models 66.7% 55.6% 9 0
aiohttp._websocket.reader_py 93.3% 93.3% 15 0
aiohttp._websocket.writer 82.9% 82.9% 35 0
aiohttp.abc 97.0% 97.0% 67 0
aiohttp.base_protocol 0.0% 0.0% 0 0
aiohttp.client 99.5% 92.8% 221 0
aiohttp.client_exceptions 73.7% 73.7% 57 3
aiohttp.client_middleware_digest_auth 100.0% 100.0% 25 0
aiohttp.client_middlewares 100.0% 100.0% 5 0
aiohttp.client_proto 100.0% 94.7% 38 0
aiohttp.client_reqrep 93.4% 88.5% 182 6
aiohttp.client_ws 95.8% 90.3% 72 0
aiohttp.compression_utils 94.9% 83.3% 78 0
aiohttp.connector 97.6% 93.9% 165 2
aiohttp.cookiejar 87.7% 87.7% 57 0
aiohttp.formdata 100.0% 88.2% 17 0
aiohttp.hdrs 100.0% 100.0% 91 0
aiohttp.helpers 97.1% 88.2% 34 2
aiohttp.http 100.0% 100.0% 2 0
aiohttp.http_exceptions 66.7% 66.7% 9 0
aiohttp.http_parser 78.5% 75.4% 65 0
aiohttp.http_writer 92.3% 92.3% 39 1
aiohttp.log 0.0% 0.0% 6 0
aiohttp.multipart 96.1% 94.1% 102 0
aiohttp.payload 98.2% 84.2% 171 0
aiohttp.payload_streamer 83.3% 50.0% 6 0
aiohttp.pytest_plugin 38.9% 38.9% 36 12
aiohttp.resolver 95.5% 86.4% 22 1
aiohttp.streams 98.5% 98.5% 68 0
aiohttp.tcp_helpers 100.0% 100.0% 5 0
aiohttp.test_utils 96.2% 78.3% 184 0
aiohttp.tracing 100.0% 100.0% 49 0
aiohttp.typedefs 100.0% 100.0% 11 0
aiohttp.web 100.0% 95.0% 20 1
aiohttp.web_app 97.6% 88.0% 83 3
aiohttp.web_exceptions 92.1% 78.9% 38 0
aiohttp.web_fileresponse 100.0% 100.0% 42 0
aiohttp.web_log 96.8% 96.8% 63 0
aiohttp.web_middlewares 100.0% 100.0% 7 0
aiohttp.web_protocol 94.0% 86.6% 67 2
aiohttp.web_request 98.2% 92.9% 113 0
aiohttp.web_response 98.5% 94.7% 133 0
aiohttp.web_routedef 100.0% 79.6% 98 1
aiohttp.web_runner 100.0% 95.9% 74 1
aiohttp.web_server 85.2% 81.5% 27 0
aiohttp.web_urldispatcher 98.6% 95.0% 222 2
aiohttp.web_ws 100.0% 96.1% 103 1
aiohttp.worker 95.5% 81.8% 22 3

Incomplete Annotations

aiohttp._websocket.models (3 missing, 1 any)

Symbol Typable Typed Any
meth WSMessage.json 2 2 1
attr WebSocketError.code 1 0 0
attr WS_CLOSED_MESSAGE 1 0 0
attr WS_CLOSING_MESSAGE 1 0 0

aiohttp._websocket.reader_py (1 missing, 0 any)

Symbol Typable Typed Any
attr WebSocketReader.queue 1 0 0

aiohttp._websocket.writer (6 missing, 0 any)

Symbol Typable Typed Any
attr WebSocketWriter.protocol 1 0 0
attr WebSocketWriter.transport 1 0 0
attr WebSocketWriter.use_mask 1 0 0
attr WebSocketWriter.get_random_bits 1 0 0
attr WebSocketWriter.compress 1 0 0
attr WebSocketWriter.notakeover 1 0 0

aiohttp.abc (2 missing, 0 any)

Symbol Typable Typed Any
attr AbstractAccessLogger.logger 1 0 0
attr AbstractAccessLogger.log_format 1 0 0

aiohttp.client (1 missing, 15 any)

Symbol Typable Typed Any
meth ClientSession.setattr 3 3 1
meth ClientSession.del 2 2 1
meth ClientSession.request 4 4 1
meth ClientSession._request 32 32 2
meth ClientSession.get 4 4 1
meth ClientSession.options 4 4 1
meth ClientSession.head 4 4 1
meth ClientSession.post 4 4 2
meth ClientSession.put 4 4 2
meth ClientSession.patch 4 4 2
meth ClientSession.delete 3 3 1
attr ClientSession.ATTRS 1 0 0

aiohttp.client_exceptions (15 missing, 0 any)

Symbol Typable Typed Any
attr ServerFingerprintMismatch.expected 1 0 0
attr ServerFingerprintMismatch.got 1 0 0
attr ServerFingerprintMismatch.host 1 0 0
attr ServerFingerprintMismatch.port 1 0 0
attr ServerFingerprintMismatch.args 1 0 0
attr ClientResponseError.request_info 1 0 0
attr ClientResponseError.message 1 0 0
attr ClientResponseError.headers 1 0 0
attr ClientResponseError.history 1 0 0
attr ClientResponseError.args 1 0 0
attr ClientResponseError.status 1 0 0
attr ClientConnectorError.args 1 0 0
attr ServerDisconnectedError.args 1 0 0
attr ServerDisconnectedError.message 1 0 0
attr ClientConnectorCertificateError.args 1 0 0

aiohttp.client_proto (0 missing, 2 any)

Symbol Typable Typed Any
meth ResponseHandler.set_parser 3 3 2

aiohttp.client_reqrep (12 missing, 9 any)

Symbol Typable Typed Any
meth ClientResponse.del 2 2 1
meth ClientResponse.release 1 1 1
meth ClientResponse.json 4 4 1
attr ClientResponse.method 1 0 0
meth ClientRequest.init 24 23 1
meth ClientRequest.update_content_encoding 2 2 1
meth ClientRequest.update_body_from_data 3 3 1
meth ClientRequest._update_body 2 2 1
meth ClientRequest.update_body 2 2 1
prop ClientRequest.body 2 2 1
attr ClientRequest.ALL_METHODS 1 0 0
attr ClientRequest.DEFAULT_HEADERS 1 0 0
attr ClientRequest.url 1 0 0
attr ClientRequest.method 1 0 0
attr ClientRequest.original_url 1 0 0
attr ClientRequest.chunked 1 0 0
attr ClientRequest.compress 1 0 0
attr ClientRequest.loop 1 0 0
attr ClientRequest.length 1 0 0
attr ClientRequest.server_hostname 1 0 0

aiohttp.client_ws (3 missing, 4 any)

Symbol Typable Typed Any
meth ClientWebSocketResponse.get_extra_info 3 3 2
meth ClientWebSocketResponse.send_json 4 4 1
meth ClientWebSocketResponse.receive_json 3 3 1
attr ClientWSTimeout.ws_receive 1 0 0
attr ClientWSTimeout.ws_close 1 0 0
attr DEFAULT_WS_CLIENT_TIMEOUT 1 0 0

aiohttp.compression_utils (4 missing, 9 any)

Symbol Typable Typed Any
meth ZLibDecompressor.init 5 4 0
meth ZLibCompressor.init 8 7 0
meth DecompressionBaseHandler.init 3 2 0
meth ZLibBackendWrapper.init 2 1 0
meth ZLibBackendWrapper.compressobj 3 3 2
meth ZLibBackendWrapper.decompressobj 3 3 2
meth ZLibBackendWrapper.compress 4 4 2
meth ZLibBackendWrapper.decompress 4 4 2
meth ZLibBackendWrapper.getattr 2 2 1

aiohttp.connector (4 missing, 6 any)

Symbol Typable Typed Any
meth BaseConnector.del 2 2 1
meth BaseConnector.exit 2 2 1
attr UnixConnector.allowed_protocol_schema_set 1 0 0
attr NamedPipeConnector.allowed_protocol_schema_set 1 0 0
meth TCPConnector.init 21 20 0
meth TCPConnector._wrap_create_connection 7 7 2
meth TCPConnector._wrap_existing_connection 6 6 2
attr TCPConnector.allowed_protocol_schema_set 1 0 0

aiohttp.cookiejar (7 missing, 0 any)

Symbol Typable Typed Any
attr CookieJar.DATE_TOKENS_RE 1 0 0
attr CookieJar.DATE_HMS_TIME_RE 1 0 0
attr CookieJar.DATE_DAY_OF_MONTH_RE 1 0 0
attr CookieJar.DATE_MONTH_RE 1 0 0
attr CookieJar.DATE_YEAR_RE 1 0 0
attr CookieJar.MAX_TIME 1 0 0
attr CookieJar.MAX_TIME 1 0 0

aiohttp.formdata (0 missing, 2 any)

Symbol Typable Typed Any
meth FormData.add_field 6 6 1
meth FormData.add_fields 2 2 1

aiohttp.helpers (1 missing, 3 any)

Symbol Typable Typed Any
meth ChainMapProxy.getitem 2 2 1
meth ChainMapProxy.get 3 3 2
meth AppKey.init 3 2 0

aiohttp.http_exceptions (3 missing, 0 any)

Symbol Typable Typed Any
attr HttpProcessingError.code 1 0 0
attr HttpProcessingError.message 1 0 0
attr HttpProcessingError.headers 1 0 0

aiohttp.http_parser (14 missing, 2 any)

Symbol Typable Typed Any
meth HttpResponseParser.feed_data 5 5 2
attr HeadersParser.max_line_size 1 0 0
attr HeadersParser.max_headers 1 0 0
attr HeadersParser.max_field_size 1 0 0
attr HttpParser.protocol 1 0 0
attr HttpParser.loop 1 0 0
attr HttpParser.max_line_size 1 0 0
attr HttpParser.max_headers 1 0 0
attr HttpParser.max_field_size 1 0 0
attr HttpParser.timer 1 0 0
attr HttpParser.code 1 0 0
attr HttpParser.method 1 0 0
attr HttpParser.payload_exception 1 0 0
attr HttpParser.response_with_body 1 0 0
attr HttpParser.read_until_eof 1 0 0

aiohttp.http_writer (3 missing, 0 any)

Symbol Typable Typed Any
attr HttpVersion10 1 0 0
attr HttpVersion11 1 0 0
attr StreamWriter.loop 1 0 0

aiohttp.log (6 missing, 0 any)

Symbol Typable Typed Any
attr server_logger 1 0 0
attr ws_logger 1 0 0
attr web_logger 1 0 0
attr internal_logger 1 0 0
attr client_logger 1 0 0
attr access_logger 1 0 0

aiohttp.multipart (4 missing, 2 any)

Symbol Typable Typed Any
attr MultipartReader.headers 1 0 0
meth MultipartWriter.append 3 3 1
meth MultipartWriter.append_json 3 3 1
attr MultipartWriter._valid_tchar_regex 1 0 0
attr MultipartWriter._invalid_qdtext_char_regex 1 0 0
attr BodyPartReader.headers 1 0 0

aiohttp.payload (3 missing, 24 any)

Symbol Typable Typed Any
meth IOBasePayload.init 5 5 2
meth TextIOPayload.init 6 6 2
attr PAYLOAD_REGISTRY 1 0 0
func get_payload 4 4 3
meth AsyncIterablePayload.init 4 4 2
meth StringIOPayload.init 4 4 2
meth Payload.init 7 7 2
meth Payload.set_content_disposition 5 5 1
meth BytesPayload.init 4 4 2
meth payload_type.init 3 3 1
attr payload_type.type 1 0 0
attr payload_type.order 1 0 0
meth JsonPayload.init 7 7 3
meth BytesIOPayload.init 4 4 2
meth StringPayload.init 6 6 2

aiohttp.payload_streamer (1 missing, 2 any)

Symbol Typable Typed Any
meth streamer.call 3 3 2
attr streamer.coro 1 0 0

aiohttp.pytest_plugin (22 missing, 0 any)

Symbol Typable Typed Any
func test_server 2 0 0
func test_client 2 0 0
func pytest_pycollect_makeitem 4 0 0
func raw_test_server 2 0 0
func pytest_pyfunc_call 2 0 0
func pytest_addoption 2 0 0
func loop_debug 2 0 0
func pytest_generate_tests 2 0 0
func pytest_fixture_setup 2 0 0
func fast 2 0 0

aiohttp.resolver (1 missing, 2 any)

Symbol Typable Typed Any
meth AsyncResolver.init 4 4 2
attr AsyncResolver.resolve 1 0 0

aiohttp.streams (1 missing, 0 any)

Symbol Typable Typed Any
attr StreamReader.total_bytes 1 0 0

aiohttp.test_utils (7 missing, 33 any)

Symbol Typable Typed Any
meth TestServer.init 6 5 1
meth TestServer._make_runner 2 2 1
attr TestServer.app 1 0 0
func make_mocked_request 15 15 7
func unittest_run_loop 4 4 4
meth RawTestServer.init 6 6 1
meth RawTestServer._make_runner 3 3 1
func make_mocked_coro 3 3 3
meth BaseTestServer.init 8 8 1
meth BaseTestServer.start_server 3 3 1
meth BaseTestServer._make_runner 2 2 1
attr BaseTestServer.host 1 0 0
attr BaseTestServer.port 1 0 0
attr BaseTestServer.scheme 1 0 0
attr BaseTestServer.skip_url_asserts 1 0 0
attr BaseTestServer.socket_factory 1 0 0
meth TestClient.init 4 4 1
meth TestClient._request 4 4 1
meth TestClient.request 4 4 1
meth TestClient.get 3 3 1
meth TestClient.post 3 3 1
meth TestClient.options 3 3 1
meth TestClient.head 3 3 1
meth TestClient.put 3 3 1
meth TestClient.patch 3 3 1
meth TestClient.delete 3 3 1
meth TestClient.ws_connect 3 3 1
meth TestClient._ws_connect 3 3 1

aiohttp.web (0 missing, 1 any)

Symbol Typable Typed Any
func run_app 20 20 1

aiohttp.web_app (2 missing, 8 any)

Symbol Typable Typed Any
meth Application.init 8 8 1
meth Application.setattr 3 3 1
meth Application.getitem 2 2 1
meth Application.setitem 3 3 1
meth Application.get 3 3 2
meth Application._make_handler 4 4 1
meth Application.make_handler 4 4 1
attr Application.ATTRS 1 0 0
attr Application.logger 1 0 0

aiohttp.web_exceptions (3 missing, 5 any)

Symbol Typable Typed Any
meth HTTPMethodNotAllowed.init 8 8 1
attr HTTPMethodNotAllowed.method 1 0 0
meth HTTPException.init 6 6 1
attr HTTPException.text 1 0 0
meth HTTPMove.init 7 7 1
attr HTTPMove.location 1 0 0
meth HTTPUnavailableForLegalReasons.init 7 7 1
meth HTTPRequestEntityTooLarge.init 4 4 1

aiohttp.web_log (2 missing, 0 any)

Symbol Typable Typed Any
attr AccessLogger.FORMAT_RE 1 0 0
attr AccessLogger.CLEANUP_RE 1 0 0

aiohttp.web_protocol (4 missing, 5 any)

Symbol Typable Typed Any
meth RequestHandler.init 17 16 0
meth RequestHandler.set_parser 2 2 1
meth RequestHandler.log_debug 3 3 2
meth RequestHandler.log_exception 3 3 2
attr RequestHandler.logger 1 0 0
attr RequestHandler.debug 1 0 0
attr RequestHandler.access_log 1 0 0

aiohttp.web_request (2 missing, 6 any)

Symbol Typable Typed Any
meth Request.setattr 3 3 1
attr Request.ATTRS 1 0 0
meth BaseRequest.getitem 2 2 1
meth BaseRequest.setitem 3 3 1
meth BaseRequest.json 2 2 1
meth BaseRequest.get_extra_info 3 3 2
attr BaseRequest.ATTRS 1 0 0

aiohttp.web_response (2 missing, 5 any)

Symbol Typable Typed Any
func json_response 9 9 1
meth StreamResponse.getitem 2 2 1
meth StreamResponse.setitem 3 3 1
meth Response.init 10 10 1
prop Response.body 2 2 1
attr Response.text 1 0 0
attr Response.body 1 0 0

aiohttp.web_routedef (0 missing, 20 any)

Symbol Typable Typed Any
func delete 4 4 1
func get 6 6 1
func head 4 4 1
func put 4 4 1
func post 4 4 1
meth RouteTableDef.route 4 4 1
meth RouteTableDef.head 3 3 1
meth RouteTableDef.get 3 3 1
meth RouteTableDef.post 3 3 1
meth RouteTableDef.put 3 3 1
meth RouteTableDef.patch 3 3 1
meth RouteTableDef.delete 3 3 1
meth RouteTableDef.options 3 3 1
meth RouteTableDef.view 3 3 1
meth RouteTableDef.static 4 4 1
func view 4 4 1
func options 4 4 1
func route 5 5 1
func static 4 4 1
func patch 4 4 1

aiohttp.web_runner (0 missing, 3 any)

Symbol Typable Typed Any
meth BaseRunner.init 4 4 1
meth ServerRunner.init 4 4 1
meth AppRunner.init 4 4 1

aiohttp.web_server (4 missing, 1 any)

Symbol Typable Typed Any
meth Server.init 6 6 1
attr Server.requests_count 1 0 0
attr Server.request_handler 1 0 0
attr Server.request_factory 1 0 0
attr Server.handler_cancellation 1 0 0

aiohttp.web_urldispatcher (3 missing, 8 any)

Symbol Typable Typed Any
attr DynamicResource.DYN 1 0 0
attr DynamicResource.DYN_WITH_RE 1 0 0
meth UrlDispatcher.add_head 4 4 1
meth UrlDispatcher.add_options 4 4 1
meth UrlDispatcher.add_get 6 6 1
meth UrlDispatcher.add_post 4 4 1
meth UrlDispatcher.add_put 4 4 1
meth UrlDispatcher.add_patch 4 4 1
meth UrlDispatcher.add_delete 4 4 1
meth UrlDispatcher.add_view 4 4 1
attr UrlDispatcher.NAME_SPLIT_RE 1 0 0

aiohttp.web_ws (0 missing, 4 any)

Symbol Typable Typed Any
meth WebSocketResponse.get_extra_info 3 3 2
meth WebSocketResponse.send_json 4 4 1
meth WebSocketResponse.receive_json 3 3 1

aiohttp.worker (1 missing, 3 any)

Symbol Typable Typed Any
meth GunicornWebWorker.init 3 3 2
meth GunicornWebWorker._create_ssl_context 2 2 1
attr GunicornWebWorker.exit_code 1 0 0

Type-Ignore Comments

Flavor Count
type: ignore[no-untyped-def] 12
type: ignore[assignment] 10
type: ignore[override] 8
type: ignore[assignment, misc] 5
type: ignore[arg-type] 2
type: ignore[import-not-found] 2
type: ignore[misc] 2
type: ignore[misc, no-any-unimported] 1