Python的常用第三方库
2016-01-27 本文已影响307人
三千万星辰
最全的在这里
https://github.com/vinta/awesome-python
some
1.sh-可以在python中直接调用shell命令,之前一直通过os活着commands来实现,现在也可以用这个,简单一点
from sh import ifconfig
print ifconfig("eth0")
2.request, HTTP常用库
>>> r = requests.get('https://api.github.com', auth=('user', 'pass'))
>>> r.status_code
204
>>> r.headers['content-type']
'application/json'
>>> r.text
3.pelican-貌似可以通过md格式快速生成博客网站,并且能够托管在S3、github上,还没用过,等有需要时可以看看
- Pygments--很有名的语法高亮的库了