Repo X-Ray · 05 December 2026, 05:37 · read in 0.6s · nothing was executed
/srv/xela/workspace/.xray-oss/requests
and 21 more.
| Language | Files | Lines | |
|---|---|---|---|
| Python | 37 | 12,032 | |
| HTML | 1 | 33 | |
| CSS | 1 | 12 |
The fewest files that are the only import route into 95% of the code — 19 of 20 files. This is not a ranking, it is a cover: nothing in those 19 files can be reached by an import without passing through one of the entrances below. Each row also names the files the rest of that region depends on most, which is the vocabulary you will be reading it in.
| Read this, then what it leads to | Files it opens | Lines in that region | A test reaches it |
|---|---|---|---|
| 1. src/requests/help.py where the program starts src/requests/models.py ← 10 files, 1,184 lines src/requests/compat.py ← 10 files, 115 lines src/requests/cookies.py ← 7 files, 625 lines | 19 | 6,394 | yes |
Imported by the most files: the load-bearing walls, where a change reaches furthest.
| Module | Imported by | Lines | A test reaches it |
|---|---|---|---|
| src/requests/__init__.py | 14 | 219 | yes |
| src/requests/compat.py | 14 | 115 | yes |
| src/requests/models.py | 11 | 1,184 | yes |
| src/requests/cookies.py | 9 | 625 | yes |
| src/requests/structures.py | 9 | 130 | yes |
| src/requests/_types.py | 7 | 188 | yes |
| src/requests/exceptions.py | 7 | 162 | yes |
| src/requests/_internal_utils.py | 6 | 51 | yes |
| src/requests/utils.py | 6 | 1,155 | yes |
| src/requests/auth.py | 5 | 354 | yes |
| src/requests/__version__.py | 4 | 14 | yes |
| src/requests/adapters.py | 4 | 748 | yes |
Churn multiplied by size. A big file that never changes is usually fine; a big file that changes constantly is where the bugs and the arguments live.
| File | Commits | Lines | Mostly written by | Tested |
|---|---|---|---|---|
| src/requests/utils.py | 18 | 1,155 | Author B 61% | yes |
| src/requests/models.py | 17 | 1,184 | Author B 41% | yes |
| src/requests/adapters.py | 17 | 748 | Author B 47% | yes |
| src/requests/sessions.py | 10 | 920 | Author B 50% | yes |
| docs/conf.py | 14 | 385 | Author A 36% | no |
| setup.py | 53 | 9 | Author B 40% | no |
| src/requests/__init__.py | 8 | 219 | Author B 38% | yes |
| src/requests/_types.py | 7 | 188 | Author B 86% | yes |
| src/requests/auth.py | 4 | 354 | Author B 75% | yes |
| src/requests/compat.py | 6 | 115 | Author B 67% | yes |
| src/requests/cookies.py | 2 | 625 | Author W 50% | yes |
| src/requests/__version__.py | 13 | 14 | Author B 92% | yes |
The busiest test file is tests/test_requests.py (67 commits) - kept out of the table above so the code that ships comes first.
Active in the last 90 days: Author C (3)
History read: 910 commits, 9 years ago to 1 days ago. Top committer overall: Author A 31%.
19 of 20 shipped modules are reachable from a test file by import (95%).
2 further files under examples, docs, scripts or benchmarks are not test-reachable either. They are counted apart from the number above, because demo code dragging a healthy repository down tells you nothing.
Reachable means a test imports it, directly or through another module. It is the floor, not coverage: a module can be reachable and still have none of its behaviour exercised. The modules below are the other case - nothing a test loads can even see them, so a green suite says nothing about them.
Nothing unreachable found.
| Function | File | Lines |
|---|---|---|
| resolve_redirects | src/requests/sessions.py:186 | 122 |
| send | src/requests/adapters.py:634 | 115 |
| build_digest_header | src/requests/auth.py:157 | 110 |
| request | src/requests/sessions.py:557 | 97 |
| prepare_url | src/requests/models.py:483 | 81 |
| send | src/requests/sessions.py:752 | 78 |
| prepare_body | src/requests/models.py:576 | 77 |
| _encode_files | src/requests/models.py:183 | 69 |
| File | Count |
|---|---|
| HISTORY.md | 18 |
| .github/CONTRIBUTING.md | 6 |
| docs/dev/contributing.rst | 5 |
| docs/community/release-process.rst | 3 |
| src/requests/auth.py | 3 |
| src/requests/help.py | 3 |
Read from pyproject.toml, docs/requirements.txt.
Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.
pysocks pytest-httpbin httpbin pytest-cov pytest-mock pytest-xdist pyright pyopenssl wheel sphinx
Nothing in the shipped code imports these, so an install will not break - but a fresh contributor running the tests or building the docs will hit them.
pygments
Imported only inside try: or a TYPE_CHECKING guard, so the code already handles their absence. Not counted as missing.
BaseHTTPServer OpenSSL SimpleHTTPServer StringIO _typeshed cStringIO chardet charset_normalizer cryptography http io json netrc simplejson ssl typing typing_extensions urllib3 winreg
Test certificates and sample keys are committed on purpose, so these are listed rather than raised. Worth a glance only if one of these folders holds something real.
| What | Where |
|---|---|
| private key block | tests/certs/expired/ca/ca-private.key:1 |
| private key block | tests/certs/expired/server/server.key:1 |
| private key block | tests/certs/mtls/client/client.key:1 |
| private key block | tests/certs/valid/server/server.key:1 |
Nothing that looks like a live credential.