Repo X-Ray · 05 December 2026, 05:37 · read in 0.8s · nothing was executed
/srv/xela/workspace/.xray-oss/flask
| Language | Files | Lines | |
|---|---|---|---|
| Python | 83 | 18,392 | |
| HTML | 20 | 362 | |
| CSS | 2 | 135 | |
| SQL | 2 | 28 | |
| Shell | 1 | 7 |
The fewest files that are the only import route into 96% of the code — 23 of 24 files. This is not a ranking, it is a cover: nothing in those 23 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/flask/__main__.py where the program starts src/flask/typing.py ← 19 files, 87 lines src/flask/wrappers.py ← 11 files, 255 lines src/flask/globals.py ← 11 files, 77 lines | 23 | 9,375 | no |
Imported by the most files: the load-bearing walls, where a change reaches furthest.
| Module | Imported by | Lines | A test reaches it |
|---|---|---|---|
| src/flask/__init__.py | 52 | 39 | yes |
| src/flask/typing.py | 22 | 87 | yes |
| src/flask/globals.py | 17 | 77 | yes |
| src/flask/wrappers.py | 12 | 255 | yes |
| src/flask/app.py | 11 | 1,686 | yes |
| src/flask/helpers.py | 10 | 679 | yes |
| src/flask/testing.py | 9 | 298 | yes |
| src/flask/json/__init__.py | 8 | 170 | yes |
| examples/tutorial/flaskr/db.py | 7 | 56 | yes |
| src/flask/sansio/app.py | 7 | 1,014 | yes |
| src/flask/cli.py | 6 | 1,126 | yes |
| src/flask/sessions.py | 6 | 385 | 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/flask/app.py | 106 | 1,686 | Author A 65% | yes |
| src/flask/helpers.py | 71 | 679 | Author A 63% | yes |
| src/flask/cli.py | 49 | 1,126 | Author A 65% | yes |
| src/flask/ctx.py | 34 | 540 | Author A 79% | yes |
| src/flask/sansio/app.py | 20 | 1,014 | Author A 65% | yes |
| src/flask/sessions.py | 31 | 385 | Author A 81% | yes |
| src/flask/testing.py | 32 | 298 | Author A 78% | yes |
| src/flask/blueprints.py | 47 | 128 | Author A 45% | yes |
| src/flask/__init__.py | 60 | 39 | Author A 87% | yes |
| src/flask/config.py | 17 | 367 | Author A 59% | yes |
| src/flask/wrappers.py | 20 | 255 | Author A 70% | yes |
| src/flask/templating.py | 20 | 212 | Author A 55% | yes |
The busiest test file is tests/test_basic.py (49 commits) - kept out of the table above so the code that ships comes first.
Active in the last 90 days: Author A (8)
History read: 851 commits, 8 years ago to 35 days ago. Top committer overall: Author A 57%.
23 of 24 shipped modules are reachable from a test file by import (96%).
5 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 |
|---|---|---|
| make_response | src/flask/app.py:1267 | 141 |
| __init__ | src/flask/sansio/scaffold.py:75 | 141 |
| __init__ | src/flask/sansio/app.py:280 | 130 |
| run | src/flask/app.py:641 | 124 |
| send_file | src/flask/helpers.py:417 | 124 |
| url_for | src/flask/app.py:1145 | 121 |
| register | src/flask/sansio/blueprints.py:273 | 105 |
| test_response_types | tests/test_basic.py:1144 | 92 |
| File | Count |
|---|---|
| CHANGES.rst | 7 |
| .github/ISSUE_TEMPLATE/bug-report.md | 3 |
Read from pyproject.toml, celery/pyproject.toml, javascript/pyproject.toml, tutorial/pyproject.toml.
Dead weight in the install, or a tool that is run rather than imported (formatters, type stubs, test plugins). Check before removing.
ruff tox tox-uv sphinx sphinx-tabs sphinxcontrib-log-cabinet sphinx-autobuild gha-update pre-commit pre-commit-uv mypy pyright types-contextvars types-dataclasses amqp async-timeout billiard click-didyoumean click-plugins click-repl kombu prompt-toolkit pytz redis
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.
docutils packaging namespace site_app site_package installed_package config_package_app config_module_app
Imported only inside try: or a TYPE_CHECKING guard, so the code already handles their absence. Not counted as missing.
_typeshed asgiref click codecs cryptography dotenv readline rlcompleter ssl typing_extensions werkzeug
No committed credentials matched the patterns checked.
Patterns covered: AWS keys, private key blocks, GitHub, Slack, Stripe, Google, OpenAI and Anthropic keys, JSON web tokens, and passwords assigned in code. A secret in a format not listed here would not be found, and this does not read the git history.