V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
ericls
V2EX  ›  分享创造

学习 ASGI,从头撸一个 ASGI web 框架

  •  1
     
  •   ericls ·
    ericls · 2020-06-22 23:09:15 +08:00 · 2389 次点击
    这是一个创建于 1375 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://shenli.dev/2020/06/20/asgi-from-scratch.html

    好久没写东西了,写一个练练手,希望能坚持一段时间。
    谢谢反馈
    希望对有需要的人有帮助
    8 条回复    2020-06-27 19:29:43 +08:00
    Visionhope
        1
    Visionhope  
       2020-06-22 23:27:05 +08:00 via Android
    看了一下,结合最近玩 fastapi 的经历,感觉异步 python 很火的样子,尤其是在 web 这一块
    ericls
        2
    ericls  
    OP
       2020-06-22 23:31:47 +08:00 via iPhone
    @Visionhope 冷静 不要炒作 不要跟风
    ericls
        3
    ericls  
    OP
       2020-06-26 09:14:44 +08:00
    哪个大佬给我放到 hacker news 首页去了
    feiandxs
        4
    feiandxs  
       2020-06-26 10:22:00 +08:00
    一切都像 Flask……

    我指 @route 的写法哈哈哈
    chuanqirenwu
        5
    chuanqirenwu  
       2020-06-26 20:37:56 +08:00
    GitHub 地址呢?
    ericls
        6
    ericls  
    OP
       2020-06-26 21:50:27 +08:00 via iPhone
    @feiandxs 因为 flask 也是用了那个 werkzeug

    不得不感叹 这个 werkzeug 真是坚固耐用。
    ericls
        7
    ericls  
    OP
       2020-06-26 21:51:12 +08:00 via iPhone
    @chuanqirenwu 感觉还没能达到一个开源项目的标准 就是一些代码片段罢了。 不过可以整理整理放 gist
    chuanqirenwu
        8
    chuanqirenwu  
       2020-06-27 19:29:43 +08:00
    @ericls soga, 推荐 index.py ,源码挺值得学习
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5843 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:59 · PVG 09:59 · LAX 18:59 · JFK 21:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.