V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
talentsnail
V2EX  ›  Tornado

大家帮忙推荐一个优秀的tornado开源项目给我学习吧

  •  
  •   talentsnail · 2013-03-12 19:46:11 +08:00 · 15711 次点击
    这是一个创建于 4060 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前段时间用tornado写了一个web应用,主要功能已经基本完成。

    因为之前没有任何编程和项目的经验,所以代码写得很差。

    在等备案的这段时间里面,希望可以看看经典项目学习一下,把程序改进改进。
    12 条回复    2016-03-22 00:16:11 +08:00
    reorx
        1
    reorx  
       2013-03-13 12:53:29 +08:00   ❤️ 5
    先写几个我印象比较深刻的:

    June: https://github.com/pythoncn/june/tree/tornado-master
    @lepture 写的论坛,代码结构严谨优美,非常适合初学者借鉴,其中也用到了他自己写的框架 July

    PoweredSites: https://bitbucket.org/felinx/poweredsites
    @felinx 写的一个收集网站架构信息的站。作为国内使用 Tornado 的先驱,这个项目曾使包括我和 lepture 在内的很多人受益匪浅,不容错过。

    F2E.im: https://github.com/PaulGuo/F2E.im
    @paulguo 写的访 v2ex 论坛,虽然没有用 ORM,但数据库的处理方面很干净利落,也非常值得借鉴。

    Pypress: https://github.com/laoqiu/pypress-tornado
    挺出名的博客系统,不过很久没有更新了

    另外,我向你推荐我写的 Tornado 框架,Torext: https://github.com/reorx/torext
    如果你是一个有做单元测试习惯的开发者,他是你最好的选择 :)

    ps. 其实 Tornado 官方的 wiki 就已经汇集了大部分已知的与 Tornado 有关的项目: https://github.com/facebook/tornado/wiki/Links
    talentsnail
        2
    talentsnail  
    OP
       2013-03-13 14:40:05 +08:00
    @reorx 哇,非常感谢!先看您的作品吧!
    kernel1983
        3
    kernel1983  
       2013-03-13 18:09:53 +08:00
    还有这个东西
    F2E.im: https://github.com/PaulGuo/F2E.im

    强烈顶不用ORM的东西, 我经常将 tornado.database 拿出来单独用
    swulling
        4
    swulling  
       2013-03-13 19:17:45 +08:00   ❤️ 1
    @kernel1983 已经没有tornado.database这个东西了。。成第三方包了
    dbwnb
        5
    dbwnb  
       2013-03-13 20:02:27 +08:00
    @swulling 原来如此,我就说怎么从github上下下来的代码怎么也找不到tornado.database这个文件了,那这个第三方包应该去哪里下啊?
    jerry22yu
        6
    jerry22yu  
       2013-03-13 21:14:24 +08:00
    @reorx F2E.im看上去不错。谢谢!
    swulling
        7
    swulling  
       2013-03-13 21:34:33 +08:00
    kernel1983
        8
    kernel1983  
       2013-03-14 09:41:02 +08:00
    @swulling 看来我的项目会停留在2.4.1一段时间 :)
    ninq
        9
    ninq  
       2013-03-16 11:38:21 +08:00
    看看
    icewalker
        10
    icewalker  
       2013-05-18 15:13:14 +08:00
    下载了poweredsites在研究,这个项目难道没有用tornado 3? 初哥我一阵乱改才在tornado3上面跑起来了。 还好改的地方不多。

    后面依然不顺,唯一能用的一个websites的module吧,在渲染的时候被加了引号括起来, "<div> xxx </div>" 这个该死的引号不知道是哪里来的,整个module的内容被赤裸裸的放到content-body里面了。

    百思不得姐啊!

    求助!
    ynf
        11
    ynf  
       2016-03-22 00:15:00 +08:00
    上面的项目都不是异步的么
    ynf
        12
    ynf  
       2016-03-22 00:16:11 +08:00
    我要被 tornado 的异步搞疯了 感觉好麻烦的异步啊
    ----大概看了一下上面的源代码 都没发现是异步的
    这样的话 性能不是不行么 根本就没用到 tornado 的特性
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   959 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:23 · PVG 05:23 · LAX 14:23 · JFK 17:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.