Observatory reports / 2026
State of Python Architecture 2026
State of Python Architecture 2026 covers 54 published proofs and 17,456 modules in this Observatory snapshot. Counts come from frozen snapshots.
Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).
Trust path: Homepage → Validation → Repositories → Report
Snapshot window: 2026-11-15 – 2026-11-15 · 54 Python proofs · 17,456 modules · 66,553 edges
Executive summary
Findings below are computed at build time from frozen Observatory analysis snapshots. No estimates or synthetic statistics.
- 54 indexable Python proofs with a complete structural snapshot (module count and edge count both greater than zero).
- 17,456 modules and 66,553 dependency edges traced across included snapshots.
- Architecture scores in this edition range from 59.9 to 95.8 on the 0–100 snapshot scale. The median is 78.9.
- Highest recorded fan-in: 897 dependents on `yt_dlp/extractor/common.py` in yt-dlp.
- Largest blast radius: 1334 downstream modules from `config/constants/billing.py` in opensre.
- 52 of 54 snapshots report one or more dependency cycles.
Corpus findings (v2)
Computed from the 54 indexable Python proofs in this edition. Each figure is read from those snapshots.
100% of proofs in this edition have a god-module as the primary gravity center.
Primary gravity center role is "god-module" in 54 of 54 snapshots.
yt-dlp `yt_dlp/extractor/common.py` is a 8.6× fan-in outlier.
Fan-in 897 against the 90th percentile of 104 across the fan-in values recorded in this edition.
library proofs score highest; framework proofs score lowest in this edition.
Category averages: library 79.2 (45 proofs) vs framework 79.2 (5 proofs).
Dataset
The 54 indexable Python proofs in this edition. Each one passes the Proof Density Rule and links to its public proof page. The findings above use this same set.
| Repository | Score | Modules | Edges | Cycles |
|---|---|---|---|---|
| Django REST framework Django REST framework (rest_framework) | 95.8 | 73 | 137 | 2 |
| Gunicorn Gunicorn | 95.7 | 72 | 198 | 3 |
| HTTPie HTTPie | 94.6 | 86 | 216 | 6 |
| aider aider | 93.3 | 104 | 226 | 4 |
| FastAPI FastAPI (fastapi) | 92.8 | 52 | 123 | 12 |
| MkDocs MkDocs | 92.7 | 79 | 107 | 14 |
| holehe holehe | 92 | 152 | 247 | |
| seaborn seaborn | 91.8 | 64 | 164 | 14 |
| IPython IPython | 90.8 | 177 | 428 | 16 |
| bbot bbot (bbot) | 89.7 | 255 | 521 | 4 |
| pipx pipx | 89 | 56 | 394 | |
| yt-dlp yt-dlp | 87.1 | 1,066 | 3,230 | 12 |
| MinerU MinerU | 86.6 | 436 | 1,349 | 18 |
| Luigi Luigi | 86.5 | 102 | 275 | 20 |
| opensre opensre | 85.2 | 2,279 | 7,907 | 55 |
| streamlink streamlink | 84.5 | 258 | 1,119 | 11 |
| DeerFlow DeerFlow | 84.3 | 1,703 | 4,390 | 88 |
| autogen autogen | 83.6 | 456 | 1,248 | 33 |
| artemis artemis | 83.3 | 377 | 1,487 | 15 |
| Celery Celery (celery) | 83.3 | 142 | 523 | 26 |
| Material for MkDocs Material for MkDocs | 82.7 | 204 | 502 | 46 |
| typer typer | 82.6 | 339 | 388 | 38 |
| Sanic Sanic | 82 | 180 | 534 | 44 |
| spaCy spaCy | 81.8 | 601 | 1,238 | 65 |
| Poetry Poetry (src) | 81.1 | 193 | 513 | 60 |
| apprise apprise | 80.1 | 280 | 1,366 | 33 |
| NumPy NumPy (numpy) | 79.4 | 192 | 525 | 55 |
| django CMS django CMS | 78.3 | 373 | 782 | 76 |
| Soup Soup | 77.7 | 628 | 2,191 | 55 |
| pypdf pypdf (pypdf) | 76.5 | 59 | 238 | 59 |
| django-allauth django-allauth | 76.4 | 859 | 2,604 | 100+ |
| Agent-Reach Agent-Reach | 76.4 | 52 | 231 | 55 |
| SymPy SymPy | 74.8 | 871 | 7,411 | 100+ |
| Gensim Gensim | 74.8 | 89 | 266 | 65 |
| iFixAi iFixAi | 73.9 | 382 | 1,661 | 72 |
| aiohttp aiohttp (aiohttp) | 73.6 | 51 | 303 | 63 |
| pip pip | 73.5 | 434 | 1,805 | 100+ |
| NetworkX NetworkX (networkx) | 73 | 290 | 778 | 100+ |
| redis-py redis-py | 71.8 | 162 | 642 | 100+ |
| Optuna Optuna | 70.9 | 239 | 1,012 | 100+ |
| mypy mypy | 70.6 | 354 | 1,644 | 80 |
| Gradio Gradio (gradio) | 70.5 | 183 | 782 | 100+ |
| Rich Rich | 70.4 | 105 | 424 | 92 |
| prompt_toolkit prompt_toolkit | 70.1 | 145 | 684 | 100+ |
| robotframework robotframework | 70 | 284 | 1,195 | 100+ |
| beets beets | 69.4 | 164 | 887 | 80 |
| Scrapy Scrapy (scrapy) | 67.9 | 201 | 958 | 100+ |
| scikit-learn scikit-learn (sklearn) | 67.6 | 353 | 2,020 | 100+ |
| pytest pytest (src) | 67.6 | 81 | 476 | 85 |
| openai-agents-python openai-agents-python | 67.4 | 317 | 1,939 | 100+ |
| python-telegram-bot python-telegram-bot | 67 | 234 | 1,463 | 97 |
| Dask Dask (dask) | 65.9 | 182 | 1,116 | 100+ |
| discord.py discord.py | 61 | 146 | 1,341 | 100+ |
| SQLAlchemy SQLAlchemy (lib) | 59.9 | 240 | 2,345 | 100+ |
Fan-in analysis
Highest fan-in modules across all included snapshots (from highRiskModules fields). Fan-in counts direct dependents in each repository's traced subgraph.
- yt-dlp · yt_dlp/extractor/common.py897 dependents
- yt-dlp · yt_dlp/utils/__init__.py894 dependents
- yt-dlp · yt_dlp/utils/traversal.py261 dependents
- NetworkX · __init__.py255 dependents
- typer · typer/__init__.py244 dependents
- SymPy · sympy/core/sympify.py231 dependents
- SymPy · sympy/core/symbol.py217 dependents
- apprise · apprise/common.py213 dependents
| Module | Fan-in | Repository | Risk |
|---|---|---|---|
| yt_dlp/extractor/common.py | 897 | yt-dlp | CRITICAL |
| yt_dlp/utils/__init__.py | 894 | yt-dlp | CRITICAL |
| yt_dlp/utils/traversal.py | 261 | yt-dlp | CRITICAL |
| __init__.py | 255 | NetworkX | CRITICAL |
| typer/__init__.py | 244 | typer | CRITICAL |
| sympy/core/sympify.py | 231 | SymPy | CRITICAL |
| sympy/core/symbol.py | 217 | SymPy | CRITICAL |
| apprise/common.py | 213 | apprise | CRITICAL |
| sympy/core/numbers.py | 208 | SymPy | CRITICAL |
| ifixai/core/types.py | 207 | iFixAi | CRITICAL |
| externals/array_api_compat/numpy/__init__.py | 201 | scikit-learn | CRITICAL |
| apprise/exception.py | 198 | apprise | CRITICAL |
Blast radius analysis
Largest blast-radius modules (from hotspots fields) — downstream modules reachable when a node changes.
- opensre · config/constants/billing.py1,334 modules
- opensre · config/principal.py1,332 modules
- opensre · config/constants/organization.py1,329 modules
- opensre · config/scope_context.py1,327 modules
- opensre · config/constants/paths.py1,323 modules
- opensre · config/constants/account.py1,267 modules
- opensre · config/constants/llm.py1,264 modules
- opensre · config/constants/skills.py1,254 modules
| Module | Blast | Fan-in | Repository |
|---|---|---|---|
| config/constants/billing.py | 1,334 | 15 | opensre |
| config/principal.py | 1,332 | 26 | opensre |
| config/constants/organization.py | 1,329 | 16 | opensre |
| config/scope_context.py | 1,327 | 20 | opensre |
| config/constants/paths.py | 1,323 | 44 | opensre |
| config/constants/account.py | 1,267 | 22 | opensre |
| config/constants/llm.py | 1,264 | 35 | opensre |
| config/constants/skills.py | 1,254 | 29 | opensre |
| yt_dlp/compat/compat_utils.py | 1,034 | 9 | yt-dlp |
| yt_dlp/globals.py | 1,033 | 11 | yt-dlp |
| yt_dlp/dependencies/__init__.py | 1,031 | 20 | yt-dlp |
| yt_dlp/version.py | 1,031 | 7 | yt-dlp |
Architecture score distribution
Score spread across the 54 Python proofs (arc analyze snapshot, 0–100). Range: 59.9 – 95.8. The dataset table lists every proof. The bars are the twelve highest scores.
- 95.8
- 95.7
- 94.6
- 93.3
- 92.8
- 92.7
- 92
- 91.8
- 90.8
- 89.7
- 89
- 87.1
Common structural patterns
Recurring hotspots and shared characteristics counted from snapshot fields — not inferred from industry samples.
Documented change-risk zones
Every snapshot with structural proof lists at least one change-risk zone (54 of 54).
- Django REST framework · __init__.py
- Gunicorn · gunicorn/util.py
- HTTPie · httpie/compat.py
- aider · aider/dump.py
- FastAPI · exceptions.py
God-module gravity centers
Primary gravity center role is "god-module" in 54 of 54 snapshots.
- Django REST framework · __init__.py
- Gunicorn · gunicorn/util.py
- HTTPie · httpie/compat.py
- aider · aider/dump.py
- FastAPI · exceptions.py
Utils modules as top fan-in signal
Highest fan-in module path contains "utils" or "util" in 12 of 54 snapshots.
Types modules as top fan-in signal
Highest fan-in module path contains "types" in 4 of 54 snapshots.
- MinerU · mineru/types.py
- iFixAi · ifixai/core/types.py
- python-telegram-bot · src/telegram/_utils/types.py
- discord.py · discord/types/snowflake.py
Key takeaways
- High fan-in modules are change-risk signals — inspect impact paths before refactoring shared types, utils, or config modules surfaced in this dataset.
- 54 of 54 snapshots label the primary gravity center as a god-module — a single module carrying disproportionate structural pull.
- 2 of 54 snapshots report layer violations — boundary crossings worth mapping before large moves.
- Each row in this report links to a frozen repository proof page — rerun arc impact locally on the module you plan to change before merge.
Methodology
Proof Density Rule. A repository enters this report only when its analysis snapshot has moduleCount > 0 and edgeCount > 0. Incomplete graphs are refused — same gate as public repository proof pages.
Inclusion. This edition includes every indexable Python proof. The findings and the dataset table use that same set of 54 repositories. A later edition changes the snapshot set and keeps this builder.
Source of truth. Every metric is read from web/analysis-data/[slug].json files produced by npm run generate-analysis. Claims without snapshot backing are listed under excluded findings below.
Excluded findings (no snapshot evidence)
- Cross-repository break-path analysis omitted — riskChains appear in fewer than two snapshots.
- A claim that every snapshot records seo.language as python is omitted — it matches on 53 of 54.
- Industry-wide rankings omitted — this report describes the proofs in this edition.
- architectureClassification field omitted — not populated in any included snapshot.
- First-pass ingestion rate omitted — that figure belongs to the June expansion log.
- Framework-versus-application blast comparison omitted — one of those categories has fewer than 3 proofs in this edition.
Source repository proofs
- Django REST framework
- Gunicorn
- HTTPie
- aider
- FastAPI
- MkDocs
- holehe
- seaborn
- IPython
- bbot
- pipx
- yt-dlp
- MinerU
- Luigi
- opensre
- streamlink
- DeerFlow
- autogen
- artemis
- Celery
- Material for MkDocs
- typer
- Sanic
- spaCy
- Poetry
- apprise
- NumPy
- django CMS
- Soup
- pypdf
- django-allauth
- Agent-Reach
- SymPy
- Gensim
- iFixAi
- aiohttp
- pip
- NetworkX
- redis-py
- Optuna
- mypy
- Gradio
- Rich
- prompt_toolkit
- robotframework
- beets
- Scrapy
- scikit-learn
- pytest
- openai-agents-python
- python-telegram-bot
- Dask
- discord.py
- SQLAlchemy