推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
tangkikodo
V2EX  ›  Python

fastapi-router-viz, 可视化你的 API 内依赖关系

  •  
  •   tangkikodo · Oct 2, 2025 · 3942 views
    This topic created in 397 days ago, the information mentioned may be changed or developed.

    https://github.com/allmonday/fastapi-router-viz

    对于遵循 er 模型来构建视图数据的项目,fastapi-router-viz 可以为了解 api 返回类型间的关系提供快速,直接,可交互的图效果。

    可以通过点击节点高亮全部上下游链路, 了解 pydantic class 的上下游依赖情况

    alt 点击查看节点的源代码,或者直接在 vscode 中打开

    根据 class + field name 来精准定位数据被哪些页面/ 接口使用

    Supplement 1  ·  Oct 4, 2025
    原来的名字容易被认为和路由可视化相关,引起误解

    因此项目更名:fastapi-voyager

    表示在 fastapi 的项目中漫游
    8 replies  •  2025-11-06 14:52:21 +08:00
    fudanglp
    fudanglp
    Oct 2, 2025
    1
    生成 mermaid-js 吧,方便放到 readme 里
    tangkikodo
    tangkikodo
    OP
    Oct 3, 2025
    2
    支持生成 dot 文件, 转换成 mermaid 语法的话要找一些 dot2mermaid 的小工具
    user1284
    user1284
    Oct 3, 2025
    3
    我觉得 fastapi 没 litestar 好用
    tangkikodo
    tangkikodo
    OP
    Oct 3, 2025
    4
    @yb2313 fastapi 现在迭代进度明显减慢了, 确实相比之下 litestar 功能相当丰富

    回头如果有需要, 去移植个 litestar-router-viz ~
    UB
    UB
    Oct 4, 2025
    5
    项目名称让人误以为是 fastapi 路由可视化
    tangkikodo
    tangkikodo
    OP
    Oct 4, 2025
    6
    @3085570450tt 确实, 当局者迷了
    tangkikodo
    tangkikodo
    OP
    Oct 4, 2025
    7
    改了个名字:fastapi-voyager
    workshop
    workshop
    Nov 6, 2025
    8
    哪我问一下 ,有没有 fastapi 路由可视化项目,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1391 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:54 · PVG 05:54 · LAX 13:54 · JFK 16:54
    ♥ Do have faith in what you're doing.