encode/httpx
26 findings in 23 Python files · 8,827 lines · scanned in 17.9 s on 2026-11-12
Every number here comes from the same analyzer that runs on your upload, on the tree as it is in the repository. A finding is listed with the function or module it sits in; nothing is matched from text. Tests, examples and benchmarks are excluded from the scan, so "never referenced inside the project" means exactly that.
god_class 2
a class that owns too much
httpx._models.Response39 methods — likely does too muchhttpx._urls.URL28 methods — likely does too much
wide_signature 7
functions that take so many arguments the call sites are unreadable
httpx._client.Client._init_transport7 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 2 call sites (httpx/_client.py:688, httpx/_client.py:1402)httpx._client.Client._init_proxy_transport7 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 2 call sites (httpx/_client.py:700, httpx/_client.py:1415)httpx._client.AsyncClient._init_transport7 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 2 call sites (httpx/_client.py:688, httpx/_client.py:1402)httpx._client.AsyncClient._init_proxy_transport7 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 2 call sites (httpx/_client.py:700, httpx/_client.py:1415)httpx._main.main17 parameters — a call site says nothing about them; group them into one object or split the functionhttpx._transports.default.HTTPTransport.__init__11 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 13 call sites (httpx/_client.py:662, httpx/_client.py:1376, httpx/_exceptions.py:93)
and 1 more of the same check.
complex 3
branchy functions, counted from the AST
httpx._urlparse.urlparsecyclomatic complexity 46httpx._config.Timeout.__init__cyclomatic complexity 18httpx._urls.QueryParams.__init__cyclomatic complexity 16
duplicate 2
the same block in two places
httpx._client.BoundAsyncStream.__init__Identical code in 2 functions (httpx._client.BoundAsyncStream.__init__, httpx._client.BoundSyncStream.__init__) — extract it into one function and call it from eachhttpx._client.AsyncClient._transport_for_urlIdentical code in 2 functions (httpx._client.AsyncClient._transport_for_url, httpx._client.Client._transport_for_url) — extract it into one function and call it from each
wildcard_import 2
a star import that puts unknown names in scope
httpx`from httpx._api import *` at line 2 — no tool can resolve which names this module uses; import the names you needhttpx._transports`from httpx._transports.asgi import *` at line 1 — no tool can resolve which names this module uses; import the names you need
large_module 1
a check from the analyzer
httpx._client2019 lines
unused 8
never called, never imported, never read
httpx._models.Headers.copynever referenced inside the project (dead code or public API)httpx._models.Response.raise_for_statusnever referenced inside the project (dead code or public API)httpx._models.Response.iter_linesnever referenced inside the project (dead code or public API)httpx._models.Response.aiter_linesnever referenced inside the project (dead code or public API)httpx._urls.URL.copy_set_paramnever referenced inside the project (dead code or public API)httpx._urls.URL.copy_add_paramnever referenced inside the project (dead code or public API)
and 2 more of the same check.
bad_name 1
a name that does not say what the thing holds
httpx._auth.DigestAuth._build_auth_headernames say nothing (A1, A2) — rename to what they hold
Five projects free. A .zip or a public GitHub URL.
Other repositories, same treatment
- Textualize/rich 97 findings
- celery/celery 1052 findings
- encode/django-rest-framework 337 findings
- fastapi/fastapi 163 findings
- pallets/click 85 findings
- pallets/flask 45 findings
- psf/requests 47 findings
- pydantic/pydantic 164 findings
- scrapy/scrapy 186 findings