The Requests vs HTTPX comparison on OctoCounts shows side-by-side source line counts for psf/requests and encode/httpx, counted under the rules and on the dates stated below: files, total lines, code lines, comment lines, blank lines, and per-language totals, pinned to the exact commits listed below.
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-11-08, 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-11-03. encode/httpx has about 1.4x the counted code lines of psf/requests under the same engine and counting rules. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | psf/requests | encode/httpx |
|---|---|---|
| Files | 29 | 36 |
| Total lines | 8,942 | 10,443 |
| Code lines | 5,288 | 7,552 |
| Comment lines | 2,041 | 1,223 |
| Blank lines | 1,613 | 1,668 |
| Languages counted | 9 | 6 |
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 3c7baaa05ab4) on 2026-11-08; encode/httpx was counted at ref ae1b9f66238f75ced3ced5e4485408435de10768 (commit ae1b9f66238f) on 2026-11-03. See the counting methodology for ignored directories and analysis options.
Both reports use the same engine and effective counting rules. Repository declarations, when enabled, are specific to each repository. psf/requests: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed. encode/httpx: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Background observations recorded on 2026-09-16; language descriptions here are historical context, not claims about the current filtered shares. Use this page's measured language breakdown for current counts. Repository layout before counting filters: psf/requests is the Requests repository: the Python HTTP client library, its documentation, and tests. encode/httpx is the HTTPX repository — a Python HTTP client library with both synchronous and asynchronous APIs, plus its docs and tests. Both are single-purpose client-library trees in the Python ecosystem, counted on the dates shown above; HTTPX's lower-level transport dependency lives in a separate repository and is not part of either count.
Line count does not map to API coverage: differences between the libraries (for example sync- and async-style usage) are design properties that a source count cannot express, so read the totals as size, not capability.
Sources: psf/requests repository · encode/httpx repository. Statements verified 2026-09-16.
Evidence and next steps:
Saved reports remain subject to cache cleanup and replacement. Export their JSON for durable citation; live report URLs can change.
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.
As of 2026-11-08, 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-11-03. encode/httpx has about 1.4x the counted code lines of psf/requests under the same engine and counting rules. Code size is not code quality: a larger count only means more source material, not a better or worse project.
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.
Methodology: both counts come from cached OctoCounts reports generated with tokei. psf/requests was counted at ref main (commit 3c7baaa05ab4) on 2026-11-08; encode/httpx was counted at ref ae1b9f66238f75ced3ced5e4485408435de10768 (commit ae1b9f66238f) on 2026-11-03. See the counting methodology for ignored directories and analysis options.
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.