常用Python第三方库 简介
2016-03-08 13:31
519 查看
如果说强大的标准库奠定了python发展的基石,丰富的第三方库则是python不断发展的保证,随着python的发展一些稳定的第三库被加入到了标准库里面,这里有6000多个第三方库的介绍:点这里或者访问:http://pypi.python.org/pypi?%3Aaction=index。下表中加粗并且标红的都是我平时使用较多的一些第三方库。(P.S.CSDN的这个表格功能太难用了,改HTML代码调整了好半天啊,才见得人!)
standard libs:
itertools http://docs.python.org/2/library/itertools.html
functools http://docs.python.org/2/library/functools.html 学好python有必要掌握上面这两个库吧,
re 正则
subprocess http://docs.python.org/2/library/subprocess.html 调用shell命令的神器
pdb 调试
traceback 调试
pprint 漂亮的输出
logging 日志
threading和multiprocessing 多线程
urllib/urllib2/httplib http库,httplib底层一点,推荐第三方的库requests
os/sys 系统,环境相关
Queue 队列
pickle/cPickle 序列化工具
hashlib md5, sha等hash算法
cvs
json/simplejson python的json库,据so上的讨论和benchmark,simplejson的性能要高于json
timeit 计算代码运行的时间等等
cProfile python性能测量模块
glob 类似与listfile,可以用来查找文件
atexit 有一个注册函数,可用于正好在脚本退出运行前执行一些代码
dis python 反汇编,当对某条语句不理解原理时,可以用dis.dis 函数来查看代码对应的python 解释器指令等等。
3th libs:
paramiko https://github.com/paramiko/paramiko ssh python 库
selenium https://pypi.python.org/pypi/selenium 浏览器自动化测试工具selenium的python 接口
lxml http://lxml.de/ python 解析html,xml 的神器
mechanize https://pypi.python.org/pypi/mechanize/ Stateful programmatic web browsing
pycurl https://pypi.python.org/pypi/pycurl cURL library module for Python
Fabric http://docs.fabfile.org/en/1.8/ Fabric is a Python (2.5 or higher) library
and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
xmltodict https://github.com/martinblech/xmltodict xml 转 dict,真心好用
urllib3 和 requests: 当然其实requests就够了
Requests: HTTP for Humans
flask http://flask.pocoo.org/python web 微框架
ipdb 调试神器,同时推荐ipython!结合ipython使用
redis redis python接口
pymongo mongodbpython接口
PIL http://www.pythonware.com/products/pil/ python图像处理
mako http://www.makotemplates.org/ python模版引擎
numpy , scipy 科学计算
matplotlib 画图
scrapy 爬虫
django/tornado/web.py/web2py/uliweb/flask/twisted/bottle/cherrypy.等等 python web框架/服务器
sh 1.08 — sh v1.08 documentation 用来运行shell 模块的 极佳选择
暂时记得这么多吧,不过都是我自己常用的库 :) 。。欢迎补充
UPDATE:
A curated list of awesome Python frameworks, libraries and software.
vinta/awesome-python · GitHub
几乎所有很赞的 python 库,和框架都在这个列表里。
其他的 awesome list:
bayandin/awesome-awesomeness · GitHub
作者:atupal
链接:http://www.zhihu.com/question/20501628/answer/19542741
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
常用Python第三方库 | ||
分类 | 库名称 | 库用途 |
Web框架 | Django | 开源web开发框架,它鼓励快速开发,并遵循MVC设计,我以前用过很多次,比较好用,开发周期短 |
ActiveGrid | 企业级的Web2.0解决方案 | |
Karrigell | 简单的Web框架,自身包含了Web服务,py脚本引擎和纯python的数据库PyDBLite | |
webpy | 一个小巧灵活的Web框架,虽然简单但是功能强大 | |
CherryPy | 基于Python的Web应用程序开发框架 | |
Pylons | 基于Python的一个极其高效和可靠的Web开发框架 | |
Zope | 开源的Web应用服务器 | |
TurboGears | 基于Python的MVC风格的Web应用程序框架 | |
Twisted | 流行的网络编程库,大型Web框架 | |
Quixote | Web开发框架 | |
科学计算 | Matplotlib | 用Python实现的类matlab的第三方库,用以绘制一些高质量的数学二维图形 |
SciPy | 基于Python的matlab实现,旨在实现matlab的所有功能 | |
NumPy | 基于Python的科学计算第三方库,提供了矩阵,线性代数,傅立叶变换等等的解决方案 | |
GUI | PyGtk | 基于Python的GUI程序开发GTK+库 |
PyQt | 用于Python的QT开发库 | |
WxPython | Python下的GUI编程框架,与MFC的架构相似 | |
Tkinter | Python下标准的界面编程包,因此不算是第三方库了o(∩_∩)o | |
其它 | BeautifulSoup | 基于Python的HTML/XML解析器,简单易用 |
PIL | 基于Python的图像处理库,功能强大,对图形文件的格式支持广泛 | |
MySQLdb | 用于连接MySQL数据库 | |
cElementTree | 高性能XML解析库,Py2.5应该已经包含了该模块,因此不算一个第三方库了 | |
PyGame | 基于Python的多媒体开发和游戏软件开发模块 | |
Py2exe | 将python脚本转换为windows上可以独立运行的可执行程序 | |
pefile | Windows PE文件解析器 |
itertools http://docs.python.org/2/library/itertools.html
functools http://docs.python.org/2/library/functools.html 学好python有必要掌握上面这两个库吧,
re 正则
subprocess http://docs.python.org/2/library/subprocess.html 调用shell命令的神器
pdb 调试
traceback 调试
pprint 漂亮的输出
logging 日志
threading和multiprocessing 多线程
urllib/urllib2/httplib http库,httplib底层一点,推荐第三方的库requests
os/sys 系统,环境相关
Queue 队列
pickle/cPickle 序列化工具
hashlib md5, sha等hash算法
cvs
json/simplejson python的json库,据so上的讨论和benchmark,simplejson的性能要高于json
timeit 计算代码运行的时间等等
cProfile python性能测量模块
glob 类似与listfile,可以用来查找文件
atexit 有一个注册函数,可用于正好在脚本退出运行前执行一些代码
dis python 反汇编,当对某条语句不理解原理时,可以用dis.dis 函数来查看代码对应的python 解释器指令等等。
3th libs:
paramiko https://github.com/paramiko/paramiko ssh python 库
selenium https://pypi.python.org/pypi/selenium 浏览器自动化测试工具selenium的python 接口
lxml http://lxml.de/ python 解析html,xml 的神器
mechanize https://pypi.python.org/pypi/mechanize/ Stateful programmatic web browsing
pycurl https://pypi.python.org/pypi/pycurl cURL library module for Python
Fabric http://docs.fabfile.org/en/1.8/ Fabric is a Python (2.5 or higher) library
and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
xmltodict https://github.com/martinblech/xmltodict xml 转 dict,真心好用
urllib3 和 requests: 当然其实requests就够了
Requests: HTTP for Humans
flask http://flask.pocoo.org/python web 微框架
ipdb 调试神器,同时推荐ipython!结合ipython使用
redis redis python接口
pymongo mongodbpython接口
PIL http://www.pythonware.com/products/pil/ python图像处理
mako http://www.makotemplates.org/ python模版引擎
numpy , scipy 科学计算
matplotlib 画图
scrapy 爬虫
django/tornado/web.py/web2py/uliweb/flask/twisted/bottle/cherrypy.等等 python web框架/服务器
sh 1.08 — sh v1.08 documentation 用来运行shell 模块的 极佳选择
暂时记得这么多吧,不过都是我自己常用的库 :) 。。欢迎补充
UPDATE:
A curated list of awesome Python frameworks, libraries and software.
vinta/awesome-python · GitHub
几乎所有很赞的 python 库,和框架都在这个列表里。
其他的 awesome list:
bayandin/awesome-awesomeness · GitHub
作者:atupal
链接:http://www.zhihu.com/question/20501628/answer/19542741
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
相关文章推荐
- python 模拟web网页登录过程
- Python对字母字符(串)中大小写转换函数--upper() 和 lower()
- python 文件保存 出错
- 将爬取到的数据(用Python)写入PostgreSQL数据库
- Python——管理属性(1)
- python 系列之 - 多线程
- python学习日记-01
- python 类属性初始化
- python基础(正则表达式)
- python descriptor
- Python Selenium环境配置
- python 切片
- Python hashmap
- Python Singleton
- Python实现单例类
- python3 查找文章中的高频词汇
- python中.py和.pyw文件的区别
- Numpy使用2
- Python自动化开发基础 函数-模块-正则-迭代器 笔记
- 使用monkeyrunner实现手机自动转账功能