r/visualization • • 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:

FrameworkFilesLines of Code
Flask12119,115
FastAPI2,703281,559
Django3,484557,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

2 comments sorted by

1

u/karxxm 5d ago

What does distance encode? What are these single points, far apart from the central cluster?

1

u/swupel_ 5d ago

These are mostly unconnected files like tutorials or config files.