V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 17 小时 8 分钟前 · 599 次点击

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

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

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

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

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

    3 条回复    2025-10-03 11:35:19 +08:00
    fudanglp
        1
    fudanglp  
       15 小时 34 分钟前
    生成 mermaid-js 吧,方便放到 readme 里
    tangkikodo
        2
    tangkikodo  
    OP
       4 小时 13 分钟前
    支持生成 dot 文件, 转换成 mermaid 语法的话要找一些 dot2mermaid 的小工具
    yb2313
        3
    yb2313  
       1 小时 50 分钟前
    我觉得 fastapi 没 litestar 好用
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2009 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 18ms · UTC 05:25 · PVG 13:25 · LAX 22:25 · JFK 01:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.