类似 Gevent 这样的协程库,并且有类似 Monkey Patch 这样的功能。。。。。
还没有,不过取决于你怎么定义“用于生产环境”。
- 有人在生产环境中用了我的 https://github.com/fantix/gevent
另外,还有一些未成熟的:
- Victor 写的 aioeventlet 和还不支持 Python 3 的 aiogevent
- 我的 tulipcore
最后关于 Monkey Patch:如果不是必须,我还是建议尽量不使用它,甚至不使用 Gevent 系的隐式异步库;可以考虑 asyncio。原因参考以下两篇文章:
- https://glyph.twistedmatrix.com/2014/02/unyielding.html
- http://python-notes.curiousefficiency.org/en/latest/pep_ideas/async_programming.html