后台小程序开发的全方位指南
626
2022-10-24
diesel:基于Greenlet 的事件 I/O python框架
Why Diesel?
You should write your next network application using diesel.
Thanks to Python the syntax is clean and the development pace is rapid. Thanks to non-blocking I/O it's fast and scalable. Thanks to greenlets there's unwind(to(callbacks(no))). Thanks to nose it's trivial to test. Thanks to Flask you don't need to write a new web framework using it.
It provides a clean API for writing network clients and servers. TCP and UDP supported. It bundles battle-tested clients for HTTP, DNS, Redis, Riak and MongoDB. It makes writing network applications fun.
Read the documentation, browse the API and join the community in #diesel on freenode.
Prerequisites
You'll need the python-dev package as well as libffi-dev, or your platform's equivalents.
Installation
Diesel is an active project. Your best bet to stay up with the latest at this point is to clone from github.:
git clone git://github.com/jamwt/diesel.git
Once you have a clone, cd to the diesel directory and install it.:
pip install .
or:
python setup.py install
or:
python setup.py develop
For More Information
Documentation and more can be found on the diesel website.
Python 3?
Not yet. Here are dependencies blocking the transition:
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~