r/visualization • u/swupel_ • 6d ago
Popular Python Framework FAST-API
Hey everyone,
I have created a quick comparison of Flask vs. FastAPI vs. Django repository sizes. (As they are pythons most popular web frameworks)
First of all, the numbers:
| Framework | Files | Lines of Code |
|---|---|---|
| Flask | 121 | 19,115 |
| FastAPI | 2,703 | 281,559 |
| Django | 3,484 | 557,865 |
Then the images:
Each node on the graph represents a file. Imports are marked by a line connecting the files. Colours signify complexity (cyclomatic complexity) with green being low and red being high complexity.
Besides the crazy size differences FastAPI also shows some nice import structures whilst Django looks extremely interconnected.
Hope someone finds it interesting.
1
Upvotes



1
u/karxxm 5d ago
What does distance encode? What are these single points, far apart from the central cluster?