Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

FastAPI architecture

Changing exceptions.py in FastAPI reaches 28 modules. 14 files call it directly. Snapshot a3260d4.

The first file to open in FastAPI is exceptions.py. A change there reaches 28 of 52 modules.

This lead file reaches 54% of the graph. The median published proof reaches 60%.

exceptions.py28 · 14 fan-in
types.py24 · 8 fan-in
_compat/__init__.py22 · 10 fan-in
__init__.py22 · 8 fan-in
openapi/models.py22 · 8 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: FastAPI (fastapi) · Score: 92.8/100 (Excellent architecture) · 52 modules · 123 edges · Python · 5 of 54 · Language score median 78.9

Cycles
12
Duplicate authorities
0
God modules
1
Layer violations
0
arc impact exceptions.py

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for FastAPI
[![ArcSight architecture proof for FastAPI](https://arcsight.ai/badge/proof/fastapi/)](https://arcsight.ai/repositories/fastapi/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

FastAPI · a3260d4

RankFileFan-inBlastShare
1exceptions.py

concentrates too many responsibilities, shared utility hub

142854%
2types.py82446%
3_compat/__init__.py

concentrates too many responsibilities, shared utility hub, sits on a dependency cycle

102242%
4__init__.py82242%
5openapi/models.py82242%
All ranked files
RankFileFan-inBlastShare
6datastructures.py72242%

Circular dependencies

This snapshot records 12 dependency cycles.

Nearby proofs

Snapshot notes

In fastapi fastapi, a change that begins in exceptions.py keeps traveling until it reaches types.py, with _compat __init__.py as the third file on that walk and the _compat-v2.py group as the group around them, snapshot mark feccabaabd.

__init__.py is worth opening beside exceptions.py because openapi models.py still participates when __init__.py moves, and datastructures.py stays in view for fastapi fastapi, snapshot mark feccabaabd.

Review telemetry _api.py only after types.py and exceptions.py are both on the table, since the link from _compat __init__.py back to __init__.py belongs to fastapi fastapi under snapshot mark feccabaabd.

_compat __init__.py and __init__.py are later stops, and a reviewer who has already seen exceptions.py should still look at openapi models.py before treating the _compat-v2.py group as understood for fastapi fastapi, snapshot mark feccabaabd.

datastructures.py closes the file list after telemetry _api.py and exceptions.py, which keeps the fastapi fastapi note tied to snapshot mark feccabaabd, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • _compat-v2.py (21 modules)
  • param_functions.py (17 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in fastapi fastapi: exceptions.py?
Start with exceptions.py, because the rest of the fastapi fastapi walk leaves from that file and types.py is the next file in the same review. Commit feccabaabd records it.
What else is on the fastapi fastapi walk besides exceptions.py and _compat __init__.py?
_compat __init__.py and __init__.py stay on the walk with openapi models.py, which are different files from exceptions.py inside the _compat-v2.py group for fastapi fastapi. Commit feccabaabd records it.
How should a reviewer use datastructures.py in the fastapi fastapi snapshot?
Keep datastructures.py, telemetry _api.py, and exceptions.py open together, then check types.py before merging the fastapi fastapi change. Commit feccabaabd records it.
Where does the fastapi fastapi review stop after _compat __init__.py?
Stop after _compat __init__.py, __init__.py, and openapi models.py have been compared with exceptions.py, leaving the _compat-v2.py group until those fastapi fastapi files are clear. Commit feccabaabd records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/fastapi/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo