git: https://github.com/PeterDing/mugen
文档: https://peterding.github.io/mugen-docs
Mugen 是一个运行在 Python3.4+ 的 HTTP 异步请求库。
现在支持以下特性:
- Keep-Alive & Connection Pooling
- DNS cache
- Sessions with Cookie Persistence
- Automatic Decompression
- Automatic Content Decoding
- HTTP(S) Proxy Support
- Connection Timeouts
Mugen 的 api 设计参考了 requests ,如果对 requests 熟悉,使用 Mugen 就基本没有障碍。
目前 Mugen 只提供 GET, POST, HEAD 三个基本请求,以后会不断增加其他请求方法。
如果所有的请求只用到 IO ,计算比较少,相对于多线程和多进程,异步 IO 处理是更好的方法。
Enjoy!
9 条回复 • 2016-10-21 16:36:51 +08:00
|
1
Dowding 2016 年 10 月 21 日
这名字让我一惊
|
|
2
lcx412 2016 年 10 月 21 日 via iPhone
小芳,早
|
|
3
Shared 2016 年 10 月 21 日
文档写的好,支持一记
|
|
5
Shared 2016 年 10 月 21 日
@PeterD 在 https://peterding.github.io/mugen-docs/#install-from-source-code 这段有 bug ,代码还是 requests 的 XD
|
|
6
doubleflower 2016 年 10 月 21 日
又一个轮子啊
|
|
7
cheetah 2016 年 10 月 21 日
可以和 aiohttp 对比一下?
|
|
9
johnhosimple 2016 年 10 月 21 日
支持一下
|
爱意满满的作品展示区。