Skip to content

urllib3 2.6.3

Version history | Download JSON

  • PyPI https://pypi.org/project/urllib3/
    Repository https://github.com/urllib3/urllib3

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 1007
        "Any" : 22
        "Untyped" : 113
    • 90.1% coverage
    • 88.2% coverage (strict)
    • 1142 typable
      • 1007 typed
      • 113 untyped
      • 22 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 152
        "classes" : 816
        "other" : 14
    • 52 functions (+1 overloads)
      • 100 parameters
    • 79 classes
      • 262 methods (+8 overloads)
        • 512 parameters
      • 36 properties
    • 32 modules
      • 14 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
urllib3 100.0% 100.0% 16 0
urllib3._base_connection 0.0% 0.0% 0 0
urllib3._collections 98.4% 98.4% 63 2
urllib3.connection 91.7% 91.7% 120 6
urllib3.connectionpool 81.0% 77.8% 126 1
urllib3.contrib.emscripten 100.0% 100.0% 1 0
urllib3.contrib.emscripten.connection 96.7% 96.7% 92 0
urllib3.contrib.emscripten.fetch 100.0% 100.0% 14 1
urllib3.contrib.emscripten.request 100.0% 100.0% 5 0
urllib3.contrib.emscripten.response 86.7% 83.3% 30 0
urllib3.contrib.pyopenssl 100.0% 100.0% 2 7
urllib3.contrib.socks 78.6% 57.1% 14 2
urllib3.exceptions 82.3% 82.3% 62 1
urllib3.fields 92.1% 92.1% 38 0
urllib3.filepost 85.7% 85.7% 7 0
urllib3.http2 100.0% 100.0% 2 0
urllib3.http2.connection 91.3% 80.4% 46 2
urllib3.http2.probe 0.0% 0.0% 0 0
urllib3.poolmanager 93.0% 85.9% 71 0
urllib3.response 93.0% 92.4% 171 2
urllib3.util.connection 88.9% 88.9% 9 0
urllib3.util.proxy 100.0% 100.0% 4 0
urllib3.util.request 94.4% 88.9% 18 2
urllib3.util.response 100.0% 100.0% 6 0
urllib3.util.retry 72.4% 71.1% 76 0
urllib3.util.ssl_ 93.9% 93.9% 33 9
urllib3.util.ssl_match_hostname 100.0% 100.0% 4 0
urllib3.util.ssltransport 91.4% 89.7% 58 0
urllib3.util.timeout 95.0% 95.0% 20 0
urllib3.util.url 93.8% 93.8% 16 0
urllib3.util.util 100.0% 100.0% 12 0
urllib3.util.wait 100.0% 100.0% 6 0

Incomplete Annotations

urllib3._collections (1 missing, 0 any)

Symbol Typable Typed Any
meth HTTPHeaderDict.init 3 2 0

urllib3.connection (10 missing, 0 any)

Symbol Typable Typed Any
attr HTTPConnection.proxy 1 0 0
attr HTTPConnection.proxy_config 1 0 0
attr log 1 0 0
attr HTTPSConnection.key_file 1 0 0
attr HTTPSConnection.cert_file 1 0 0
attr HTTPSConnection.key_password 1 0 0
attr HTTPSConnection.ssl_context 1 0 0
attr HTTPSConnection.server_hostname 1 0 0
attr HTTPSConnection.assert_hostname 1 0 0
attr RECENT_DATE 1 0 0

urllib3.connectionpool (24 missing, 4 any)

Symbol Typable Typed Any
func connection_from_url 3 3 1
meth HTTPSConnectionPool.init 22 22 1
attr HTTPSConnectionPool.key_file 1 0 0
attr HTTPSConnectionPool.cert_file 1 0 0
attr HTTPSConnectionPool.cert_reqs 1 0 0
attr HTTPSConnectionPool.key_password 1 0 0
attr HTTPSConnectionPool.ca_certs 1 0 0
attr HTTPSConnectionPool.ca_cert_dir 1 0 0
attr HTTPSConnectionPool.ssl_version 1 0 0
attr HTTPSConnectionPool.ssl_minimum_version 1 0 0
attr HTTPSConnectionPool.ssl_maximum_version 1 0 0
attr HTTPSConnectionPool.assert_hostname 1 0 0
attr HTTPSConnectionPool.assert_fingerprint 1 0 0
meth HTTPConnectionPool.init 12 11 1
meth HTTPConnectionPool.urlopen 16 16 1
attr HTTPConnectionPool.timeout 1 0 0
attr HTTPConnectionPool.retries 1 0 0
attr HTTPConnectionPool.block 1 0 0
attr HTTPConnectionPool.proxy 1 0 0
attr HTTPConnectionPool.proxy_headers 1 0 0
attr HTTPConnectionPool.proxy_config 1 0 0
attr HTTPConnectionPool.num_connections 1 0 0
attr HTTPConnectionPool.num_requests 1 0 0
attr HTTPConnectionPool.conn_kw 1 0 0
attr ConnectionPool.host 1 0 0
attr ConnectionPool.port 1 0 0
attr log 1 0 0

urllib3.contrib.emscripten.connection (3 missing, 0 any)

Symbol Typable Typed Any
attr EmscriptenHTTPConnection.scheme 1 0 0
attr EmscriptenHTTPSConnection.scheme 1 0 0
attr EmscriptenHTTPSConnection.server_hostname 1 0 0

urllib3.contrib.emscripten.response (4 missing, 1 any)

Symbol Typable Typed Any
attr log 1 0 0
meth EmscriptenHttpResponseWrapper.init 4 3 0
meth EmscriptenHttpResponseWrapper.json 1 1 1
attr EmscriptenHttpResponseWrapper.length_remaining 1 0 0
attr EmscriptenHttpResponseWrapper.length_is_certain 1 0 0

urllib3.contrib.socks (3 missing, 3 any)

Symbol Typable Typed Any
meth SOCKSProxyManager.init 7 6 1
attr SOCKSProxyManager.pool_classes_by_scheme 1 0 0
attr SOCKSProxyManager.proxy_url 1 0 0
meth SOCKSConnection.init 4 4 2

urllib3.exceptions (11 missing, 0 any)

Symbol Typable Typed Any
attr InvalidChunkLength.response 1 0 0
attr InvalidChunkLength.length 1 0 0
attr RequestError.url 1 0 0
attr LocationParseError.location 1 0 0
meth NameResolutionError.init 4 3 0
attr NewConnectionError.conn 1 0 0
attr PoolError.pool 1 0 0
attr MaxRetryError.reason 1 0 0
meth URLSchemeUnknown.init 2 1 0
attr URLSchemeUnknown.scheme 1 0 0
attr HostChangedError.retries 1 0 0

urllib3.fields (3 missing, 0 any)

Symbol Typable Typed Any
meth RequestField.init 6 5 0
attr RequestField.data 1 0 0
attr RequestField.header_formatter 1 0 0

urllib3.filepost (1 missing, 0 any)

Symbol Typable Typed Any
attr writer 1 0 0

urllib3.http2.connection (4 missing, 5 any)

Symbol Typable Typed Any
attr RE_IS_ILLEGAL_HEADER_VALUE 1 0 0
attr RE_IS_LEGAL_HEADER_NAME 1 0 0
attr HTTP2Response.length_remaining 1 0 0
attr log 1 0 0
meth HTTP2Connection.init 4 4 1
meth HTTP2Connection.putrequest 4 4 1
meth HTTP2Connection.endheaders 2 2 1
meth HTTP2Connection.send 2 2 1
meth HTTP2Connection.request 9 9 1

urllib3.poolmanager (5 missing, 5 any)

Symbol Typable Typed Any
meth ProxyManager.init 10 10 1
meth ProxyManager.urlopen 5 5 1
attr ProxyManager.proxy_headers 1 0 0
attr ProxyManager.proxy_ssl_context 1 0 0
func proxy_from_url 3 3 1
meth PoolManager.init 4 4 1
meth PoolManager.urlopen 5 5 1
attr PoolManager.connection_pool_kw 1 0 0
attr PoolManager.pool_classes_by_scheme 1 0 0
attr PoolManager.key_fn_by_scheme 1 0 0

urllib3.response (12 missing, 1 any)

Symbol Typable Typed Any
meth BaseHTTPResponse.json 1 1 1
attr BaseHTTPResponse.status 1 0 0
attr BaseHTTPResponse.version 1 0 0
attr BaseHTTPResponse.version_string 1 0 0
attr BaseHTTPResponse.reason 1 0 0
attr BaseHTTPResponse.decode_content 1 0 0
attr BaseHTTPResponse.retries 1 0 0
attr BaseHTTPResponse.chunked 1 0 0
attr BaseHTTPResponse.headers 1 0 0
attr HTTPResponse.enforce_content_length 1 0 0
attr HTTPResponse.auto_close 1 0 0
attr HTTPResponse.msg 1 0 0
attr log 1 0 0

urllib3.util.connection (1 missing, 0 any)

Symbol Typable Typed Any
attr HAS_IPV6 1 0 0

urllib3.util.request (1 missing, 1 any)

Symbol Typable Typed Any
attr SKIPPABLE_HEADERS 1 0 0
func set_file_position 3 3 1

urllib3.util.retry (21 missing, 1 any)

Symbol Typable Typed Any
meth Retry.new 2 2 1
attr Retry.DEFAULT_ALLOWED_METHODS 1 0 0
attr Retry.RETRY_AFTER_STATUS_CODES 1 0 0
attr Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT 1 0 0
attr Retry.total 1 0 0
attr Retry.connect 1 0 0
attr Retry.read 1 0 0
attr Retry.status 1 0 0
attr Retry.other 1 0 0
attr Retry.redirect 1 0 0
attr Retry.status_forcelist 1 0 0
attr Retry.allowed_methods 1 0 0
attr Retry.backoff_factor 1 0 0
attr Retry.backoff_max 1 0 0
attr Retry.retry_after_max 1 0 0
attr Retry.raise_on_redirect 1 0 0
attr Retry.raise_on_status 1 0 0
attr Retry.history 1 0 0
attr Retry.respect_retry_after_header 1 0 0
attr Retry.remove_headers_on_redirect 1 0 0
attr Retry.backoff_jitter 1 0 0
attr log 1 0 0

urllib3.util.ssl_ (2 missing, 0 any)

Symbol Typable Typed Any
attr VERIFY_X509_PARTIAL_CHAIN 1 0 0
attr HASHFUNC_MAP 1 0 0

urllib3.util.ssltransport (5 missing, 1 any)

Symbol Typable Typed Any
meth SSLTransport.exit 2 2 1
attr SSLTransport.incoming 1 0 0
attr SSLTransport.outgoing 1 0 0
attr SSLTransport.suppress_ragged_eofs 1 0 0
attr SSLTransport.socket 1 0 0
attr SSLTransport.sslobj 1 0 0

urllib3.util.timeout (1 missing, 0 any)

Symbol Typable Typed Any
attr Timeout.total 1 0 0

urllib3.util.url (1 missing, 0 any)

Symbol Typable Typed Any
meth Url.new 8 7 0

Type-Ignore Comments

Flavor Count
type: ignore[assignment, misc] 8
type: ignore[import-not-found] 7
type: ignore[override] 6
type: ignore[attr-defined] 5
type: ignore[assignment] 4
type: ignore[misc] 2
type: ignore[no-redef] 2
type: ignore[import-untyped] 1