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

为什么你们比较喜欢 fastapi 而不是 sanic

  •  
  •   MRlaopeng · Aug 1, 2023 · 4589 views
    This topic created in 1191 days ago, the information mentioned may be changed or developed.

    ,,就以为 fastapi 自带 api 文档的功能吗

    12 replies  •  2023-08-07 11:22:23 +08:00
    learningman
    learningman
    Aug 2, 2023 via Android
    1
    还不够吗,不然我为啥不去用 flask
    forelegance
    forelegance
    Aug 2, 2023
    2
    sanic 要比 fastapi 好用吧
    MRlaopeng
    MRlaopeng
    OP
    Aug 2, 2023
    3
    @forelegance 比 fastapi 快点,,就是自带功能少点
    unknowfly
    unknowfly
    Aug 2, 2023
    4
    和 pydantic 结合得比较好
    dextercai
    dextercai
    Aug 2, 2023
    5
    自带功能多一点,开发起来能提升效率
    song135711
    song135711
    Aug 2, 2023
    6
    2023.08.02 stars 比较 fastapi 61k vs sanic 17.2k
    MRlaopeng
    MRlaopeng
    OP
    Aug 2, 2023
    7
    @song135711 ,,我就是来问理由的
    song135711
    song135711
    Aug 2, 2023
    8
    @MRlaopeng stars 代表认可的人数,认可的人数多, 对应的社区,框架后续维护都有保证。都是相差不大的工具, 当然选一个稳定的。
    MRlaopeng
    MRlaopeng
    OP
    Aug 2, 2023
    9
    @song135711 是的,,我最终也是因为稳定 换回 fastapi,,自己弄太累了
    xzm429438709
    xzm429438709
    Aug 3, 2023 via Android
    10
    我用 Django 稳的一批
    MRlaopeng
    MRlaopeng
    OP
    Aug 3, 2023
    11
    @xzm429438709 ,,django 的 orm 的异步方案是什么,,gevent 吗
    roundgis
    roundgis
    Aug 7, 2023 via Android
    12
    @MRlaopeng db call 放線程
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 71ms · UTC 07:15 · PVG 15:15 · LAX 23:15 · JFK 02:15
    ♥ Do have faith in what you're doing.