Requests vs HTTPX: source lines of code compared

This page compares the source lines of code (SLOC) of psf/requests and encode/httpx using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.

As of 2026-08-26, psf/requests contains 8,942 total lines (5,288 code) across 29 files, while encode/httpx contains 10,443 total lines (7,552 code) across 36 files as of 2026-08-26. encode/httpx is about 1.4x the size of psf/requests by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

Metricpsf/requestsencode/httpx
Files2936
Total lines8,94210,443
Code lines5,2887,552
Comment lines2,0411,223
Blank lines1,6131,668
Languages counted96

Top languages in psf/requests: Python (93.6% of code), ReStructuredText (3.6% of code), TOML (2.0% of code). Top languages in encode/httpx: Python (96.8% of code), TOML (1.5% of code), Shell (1.0% of code). Python, TOML appear in both top language lists; ReStructuredText, Makefile, INI appear only in psf/requests's top languages; Shell, YAML, Markdown appear only in encode/httpx's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. psf/requests was counted at ref main (commit 5460f467b02e) on 2026-08-26; encode/httpx was counted at ref master (commit b5addb64f016) on 2026-08-26. See the counting methodology for ignored directories and analysis options.

Evidence and next steps:

Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.

Compare FAQ

Which has more lines of code, psf/requests or encode/httpx?

encode/httpx has more code: 7,552 code lines versus 5,288 for psf/requests, about 1.4x as much, based on cached OctoCounts reports as of 2026-08-26.

Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for psf/requests, encode/httpx, or any repository.

How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. psf/requests was counted at ref main (commit 5460f467b02e) on 2026-08-26; encode/httpx was counted at ref master (commit b5addb64f016) on 2026-08-26. See the counting methodology for ignored directories and analysis options.

Can I compare a different branch, tag, or commit?

Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.