推荐学习书目
› 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
xhawk
V2EX  ›  Python

请教 Python 下生成 swagger 的接口文档的最佳姿势

  •  
  •   xhawk · May 1, 2024 via Android · 5117 views
    This topic created in 876 days ago, the information mentioned may be changed or developed.

    我有个 python 项目,有什么办法能快速的生成某几个目录的 Python 文件的接口文档的不,最好能指定生成的规则,有些接口不用生成。

    7 replies  •  2024-05-03 11:10:33 +08:00
    zyxbcde
        1
    zyxbcde  
       May 1, 2024 via iPhone
    找个带 swagger 的 web 框架
    byaiu
        2
    byaiu  
       May 1, 2024
    sphinx 吧?
    django 有 drf-spectacular ,至于 flask 应该也有
    FYFX
        3
    FYFX  
       May 1, 2024
    用支持 openAPI 的框架吧,我知道 litestar 是默认支持的
    xhawk
        4
    xhawk  
    OP
       May 1, 2024 via Android
    我是一个原有的 python 项目中,需要能针对某几个目录生成 swagger json. 方便导入 yapi 调试。
    mikaelson
        5
    mikaelson  
       May 1, 2024
    最近刚用了 fastapi 写了个小项目,挺好的生成文档这一块
    Vcide
        6
    Vcide  
       May 2, 2024
    Pydantic+FastAPI
    zeusho871
        7
    zeusho871  
       May 3, 2024
    django+ninja 或者直接 fastapi 自带的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 22:22 · PVG 06:22 · LAX 15:22 · JFK 18:22
    ♥ Do have faith in what you're doing.