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

想在 Tornado 的 RequestHandler 中异步使用 Django ORM?来来来,这里有

  •  
  •   zhu327 · Sep 25, 2016 · 3572 views
    This topic created in 3558 days ago, the information mentioned may be changed or developed.

    https://github.com/zhu327/greentor/tree/master/demo

    1. 给 pymysql 打补丁以支持在 Tornado 中异步调用,基于 greenlet
    2. 实现了 mysql 连接池
    3. 实现了支持连接池的 Django mysql backend

    通过连接池实现了连接在 Django 中的复用,在 socket 读写操作时,切换 greenlet ,实现异步

    Supplement 1  ·  Sep 25, 2016
    http://zhu327.github.io/tags/#greentor

    补充一些实现上的分析与说明
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5650 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 06:28 · PVG 14:28 · LAX 23:28 · JFK 02:28
    ♥ Do have faith in what you're doing.