# Python project architecture examples

Interactive architecture diagrams of the 1,000 most-starred open-source Python repositories with a GitDiagram architecture diagram, most stars first. Each diagram shows the project's main components, how they connect, and links every part to its file on GitHub.

Across the 200 most-starred Python projects here, the median diagram has 21 components. 58% draw a data store (most often a cache and a vector store), 37% have a command-line interface and 17% a web interface.

29% have an LLM or AI-model component, 25% speak MCP, 15% have a plugin or extension system and 12% draw a queue or event bus.

The files their components link to most are __init__.py (36), main.py (34), app.py (28), base.py (22) and pipeline.py (19).

Group names that recur: “user interfaces” (24), “agent runtime” (7), “platform services” (7) and “inference runtime” (6).

## Repositories 1 to 50 of 1,000

1. [public-apis/public-apis](https://gitdiagram.com/public-apis/public-apis) (497k stars): This repository is a community-curated catalog of public APIs, not an API execution platform. Markdown: https://gitdiagram.com/public-apis/public-apis.md
2. [ebookfoundation/free-programming-books](https://gitdiagram.com/ebookfoundation/free-programming-books) (401k stars): This repository is a curated, multilingual catalog of free programming-learning resources, not a conventional application. Markdown: https://gitdiagram.com/ebookfoundation/free-programming-books.md
3. [donnemartin/system-design-primer](https://gitdiagram.com/donnemartin/system-design-primer) (377k stars): The System Design Primer is a learning and interview-preparation collection, not a running service. Markdown: https://gitdiagram.com/donnemartin/system-design-primer.md
4. [vinta/awesome-python](https://gitdiagram.com/vinta/awesome-python) (314k stars): This repository maintains Awesome Python: a curated Markdown catalog of Python projects and resources, plus a generated static website for searchable/filterable browsing. Markdown: https://gitdiagram.com/vinta/awesome-python.md
5. [practical-tutorials/project-based-learning](https://gitdiagram.com/practical-tutorials/project-based-learning) (287k stars): Project Based Learning is a curated directory of programming tutorials for aspiring developers, organized primarily by language and spanning multiple technologies. Markdown: https://gitdiagram.com/practical-tutorials/project-based-learning.md
6. [nousresearch/hermes-agent](https://gitdiagram.com/nousresearch/hermes-agent) (261k stars): Hermes Agent is a multi-surface AI agent: users interact through the CLI/TUI or messaging gateway, the agent builds context and runs model/tool turns, and results return through… Markdown: https://gitdiagram.com/nousresearch/hermes-agent.md
7. [thealgorithms/python](https://gitdiagram.com/thealgorithms/python) (226k stars): TheAlgorithms/Python is an educational collection of independent Python algorithm implementations, not a single application with a shared runtime pipeline. Markdown: https://gitdiagram.com/thealgorithms/python.md
8. [yt-dlp/yt-dlp](https://gitdiagram.com/yt-dlp/yt-dlp) (197k stars): yt-dlp is a command-line audio/video downloader. Markdown: https://gitdiagram.com/yt-dlp/yt-dlp.md
9. [microsoft/markitdown](https://gitdiagram.com/microsoft/markitdown) (194k stars): MarkItDown is a Python toolkit that converts local files, streams, and web resources into Markdown for text-analysis and LLM workflows. Markdown: https://gitdiagram.com/microsoft/markitdown.md
10. [significant-gravitas/autogpt](https://gitdiagram.com/significant-gravitas/autogpt) (187k stars): This monorepo contains the AutoGPT Platform: a managed or self-hosted system for building, deploying, triggering, and observing AI-agent workflows. Markdown: https://gitdiagram.com/significant-gravitas/autogpt.md
11. [anthropics/skills](https://gitdiagram.com/anthropics/skills) (186k stars): This repository is a collection of Claude skills: instruction-led, task-specific capabilities, with scripts supporting document editing, PDF forms, skill authoring, MCP… Markdown: https://gitdiagram.com/anthropics/skills.md
12. [521xueweihan/hellogithub](https://gitdiagram.com/521xueweihan/hellogithub) (181k stars): HelloGitHub is a curated monthly publication introducing interesting, beginner-friendly open-source projects, books, practical projects, and enterprise projects. Markdown: https://gitdiagram.com/521xueweihan/hellogithub.md
13. [huggingface/transformers](https://gitdiagram.com/huggingface/transformers) (168k stars): Transformers is a pretrained-model definition framework for inference and training across text, vision, audio, video, and multimodal tasks. Markdown: https://gitdiagram.com/huggingface/transformers.md
14. [automatic1111/stable-diffusion-webui](https://gitdiagram.com/automatic1111/stable-diffusion-webui) (162k stars) Markdown: https://gitdiagram.com/automatic1111/stable-diffusion-webui.md
15. [langgenius/dify](https://gitdiagram.com/langgenius/dify) (160k stars): Dify is an LLM application development platform. Markdown: https://gitdiagram.com/langgenius/dify.md
16. [langflow-ai/langflow](https://gitdiagram.com/langflow-ai/langflow) (155k stars): Langflow is a visual platform for authoring, testing, and deploying AI workflows and agents. Markdown: https://gitdiagram.com/langflow-ai/langflow.md
17. [langchain-ai/langchain](https://gitdiagram.com/langchain-ai/langchain) (148k stars): LangChain is a Python framework for composing interoperable LLM applications and agents. Markdown: https://gitdiagram.com/langchain-ai/langchain.md
18. [github/spec-kit](https://gitdiagram.com/github/spec-kit) (147k stars): Spec Kit is a Python CLI and toolkit for configuring coding-agent projects and supplying reusable development processes. Markdown: https://gitdiagram.com/github/spec-kit.md
19. [nextlevelbuilder/ui-ux-pro-max-skill](https://gitdiagram.com/nextlevelbuilder/ui-ux-pro-max-skill) (142k stars): UI UX Pro Max combines a design-intelligence skill, a multi-assistant installer CLI, and a browsable style gallery. Markdown: https://gitdiagram.com/nextlevelbuilder/ui-ux-pro-max-skill.md
20. [graphify-labs/graphify](https://gitdiagram.com/graphify-labs/graphify) (142k stars): Graphify is a local code and document knowledge-graph builder with CLI and assistant integrations. Markdown: https://gitdiagram.com/graphify-labs/graphify.md
21. [ytdl-org/youtube-dl](https://gitdiagram.com/ytdl-org/youtube-dl) (141k stars): youtube-dl is a command-line and embeddable downloader that turns supplied URLs or search terms into selected media files. Markdown: https://gitdiagram.com/ytdl-org/youtube-dl.md
22. [comfy-org/comfyui](https://gitdiagram.com/comfy-org/comfyui) (141k stars): ComfyUI is a node-graph engine for creating image, video, audio, 3D, and text media. Markdown: https://gitdiagram.com/comfy-org/comfyui.md
23. [shubhamsaboo/awesome-llm-apps](https://gitdiagram.com/shubhamsaboo/awesome-llm-apps) (140k stars): Awesome LLM Apps is a curated collection of independent AI-agent, agent-skill, and RAG applications—not one integrated runtime. Markdown: https://gitdiagram.com/shubhamsaboo/awesome-llm-apps.md
24. [harry0703/moneyprinterturbo](https://gitdiagram.com/harry0703/moneyprinterturbo) (137k stars): MoneyPrinterTurbo is an AI short-video creation application with WebUI and HTTP API entry points. Markdown: https://gitdiagram.com/harry0703/moneyprinterturbo.md
25. [krahets/hello-algo](https://gitdiagram.com/krahets/hello-algo) (131k stars): Hello Algo is an open, beginner-oriented data-structures-and-algorithms tutorial, with animated explanations and runnable examples in multiple languages. Markdown: https://gitdiagram.com/krahets/hello-algo.md
26. [tauricresearch/tradingagents](https://gitdiagram.com/tauricresearch/tradingagents) (121k stars): TradingAgents is a multi-agent financial analysis and trading-decision framework, exposed through a CLI and package API. Markdown: https://gitdiagram.com/tauricresearch/tradingagents.md
27. [browser-use/browser-use](https://gitdiagram.com/browser-use/browser-use) (120k stars): Browser Use is a Python AI browser agent: a user supplies a task and model, the agent plans and invokes registered browser actions, and returns a result with history. Markdown: https://gitdiagram.com/browser-use/browser-use.md
28. [openai/whisper](https://gitdiagram.com/openai/whisper) (110k stars): Whisper is a speech-recognition and speech-translation package. Markdown: https://gitdiagram.com/openai/whisper.md
29. [panniantong/agent-reach](https://gitdiagram.com/panniantong/agent-reach) (110k stars): Agent Reach is a command-line bridge that lets AI agents search and read supported web platforms through normalized channel actions. Markdown: https://gitdiagram.com/panniantong/agent-reach.md
30. [comfyanonymous/comfyui](https://gitdiagram.com/comfyanonymous/comfyui) (107k stars): ComfyUI is a full-stack, modular, graph-based AI engine and application for designing and executing Stable Diffusion pipelines. Markdown: https://gitdiagram.com/comfyanonymous/comfyui.md
31. [pytorch/pytorch](https://gitdiagram.com/pytorch/pytorch) (105k stars): PyTorch is a Python-first tensor and deep-learning framework spanning tensor computation, automatic differentiation, neural-network layers, compilation, and distributed utilities. Markdown: https://gitdiagram.com/pytorch/pytorch.md
32. [deepseek-ai/deepseek-v3](https://gitdiagram.com/deepseek-ai/deepseek-v3) (105k stars): This repository provides a local inference and checkpoint-preparation toolkit for DeepSeek-V3. Markdown: https://gitdiagram.com/deepseek-ai/deepseek-v3.md
33. [tiangolo/fastapi](https://gitdiagram.com/tiangolo/fastapi) (103k stars): FastAPI is a Python web framework for building typed APIs on Starlette and Pydantic. Markdown: https://gitdiagram.com/tiangolo/fastapi.md
34. [fastapi/fastapi](https://gitdiagram.com/fastapi/fastapi) (103k stars): FastAPI is a Python ASGI framework for declaring typed API routes and serving validated requests with serialized responses. Markdown: https://gitdiagram.com/fastapi/fastapi.md
35. [debpalash/voicestudio](https://gitdiagram.com/debpalash/voicestudio) (100k stars): VoiceStudio is an on-device AI voice studio, exposed through a desktop app and backend, with support for local models and API/MCP automation. Markdown: https://gitdiagram.com/debpalash/voicestudio.md
36. [hacksider/deep-live-cam](https://gitdiagram.com/hacksider/deep-live-cam) (96.8k stars): Deep-Live-Cam is a desktop face-swapping application for live camera feeds and image/video targets. Markdown: https://gitdiagram.com/hacksider/deep-live-cam.md
37. [karpathy/autoresearch](https://gitdiagram.com/karpathy/autoresearch) (96.4k stars): Autoresearch is a single-GPU autonomous LLM pretraining loop. Markdown: https://gitdiagram.com/karpathy/autoresearch.md
38. [3b1b/manim](https://gitdiagram.com/3b1b/manim) (96.3k stars): ManimGL is a Python engine for programmatic explanatory animations. Markdown: https://gitdiagram.com/3b1b/manim.md
39. [vllm-project/vllm](https://gitdiagram.com/vllm-project/vllm) (96.1k stars): vLLM is an LLM inference and serving system. Markdown: https://gitdiagram.com/vllm-project/vllm.md
40. [nvbn/thefuck](https://gitdiagram.com/nvbn/thefuck) (95.8k stars): This is a Python-based command‑line tool that “corrects” mistyped or erroneous console commands. Markdown: https://gitdiagram.com/nvbn/thefuck.md
41. [odysseus-dev/odysseus](https://gitdiagram.com/odysseus-dev/odysseus) (94.9k stars): Odysseus is a self-hosted AI workspace. Markdown: https://gitdiagram.com/odysseus-dev/odysseus.md
42. [sherlock-project/sherlock](https://gitdiagram.com/sherlock-project/sherlock) (94.6k stars): Sherlock is a username-discovery CLI that checks usernames across hundreds of social networks. Markdown: https://gitdiagram.com/sherlock-project/sherlock.md
43. [d4vinci/scrapling](https://gitdiagram.com/d4vinci/scrapling) (93.8k stars): Scrapling is a web-scraping framework: users fetch static or browser-rendered pages, parse and extract content, or scale the same work into concurrent spiders with session… Markdown: https://gitdiagram.com/d4vinci/scrapling.md
44. [django/django](https://gitdiagram.com/django/django) (91.5k stars): Django is a general-purpose Python web framework. Markdown: https://gitdiagram.com/django/django.md
45. [home-assistant/core](https://gitdiagram.com/home-assistant/core) (91.2k stars): Home Assistant is a locally operated home-automation platform: users configure integrations, which expose device capabilities as entities and let the system observe state and… Markdown: https://gitdiagram.com/home-assistant/core.md
46. [paddlepaddle/paddleocr](https://gitdiagram.com/paddlepaddle/paddleocr) (90.7k stars): PaddleOCR is a broad OCR and document-AI toolkit: users submit images or PDFs through its Python interfaces, run text recognition or document-parsing pipelines, and receive… Markdown: https://gitdiagram.com/paddlepaddle/paddleocr.md
47. [unclecode/crawl4ai](https://gitdiagram.com/unclecode/crawl4ai) (85.2k stars): Crawl4AI is a Python web-crawling and scraping product that turns pages into Markdown and structured results, with both a self-hosted Docker API and a hosted-cloud access path… Markdown: https://gitdiagram.com/unclecode/crawl4ai.md
48. [gregpr07/browser-use](https://gitdiagram.com/gregpr07/browser-use) (84.9k stars) Markdown: https://gitdiagram.com/gregpr07/browser-use.md
49. [bregman-arie/devops-exercises](https://gitdiagram.com/bregman-arie/devops-exercises) (84.6k stars): This repository is a community-maintained collection of DevOps/SRE and broader technical interview questions, exercises, solutions, and study material—not a single application. Markdown: https://gitdiagram.com/bregman-arie/devops-exercises.md
50. [666ghj/mirofish](https://gitdiagram.com/666ghj/mirofish) (84.2k stars): MiroFish is a web application for running LLM-powered, multi-agent social simulations from uploaded source material. Markdown: https://gitdiagram.com/666ghj/mirofish.md

Next page: https://gitdiagram.com/architecture-examples/python/2

More hubs: https://gitdiagram.com/architecture-examples

Counted over GitDiagram's stored diagrams of public repositories, from the names their components and groups carry and the files they link to; the rules are the ones in the [2026 open-source architecture report](https://gitdiagram.com/open-source-architecture-2026). Stars are GitHub's when the diagram was last made. Rebuilt daily: hubs grow as more repositories' languages are known.
