![13da32b04941c497bb81c49a53634a4f.png](https://i-blog.csdnimg.cn/blog_migrate/c4b3ab6a380ce6ed34217a046e8c2296.jpeg)
英文原文: 11 Python Libraries You Might Not Know
编译:juggd 来源: http://www. cnblogs.com/rrxc/p/4325 365.html
作者:Greg 原文来源: http:// blog.yhat.com/posts/11- python-libraries-you-might-not-know.html
目前,网上已有成千上万个Python包,但几乎没有人能够全部知道它们。单单PyPi上就有超过47000个包列表。现在,越来越多的数据科学家开始使用Python,虽然他们从pandas,scikit-learn,numpy中获得了不少好处,但我仍想向他们介绍一些年长且非常实用的Python库。在本文中,我将列一些不太知名的库,即使你是经验丰富的Python的开发者,也值得过来一看。
1、delorean
Dolorean是一个非常酷的日期/时间库。类似Java的moment,拥有非常完善的技术文档。
![14e60eb78fe300fec394e8e3a846c726.png](https://i-blog.csdnimg.cn/blog_migrate/590512fb58bbbbb1adbaf6588edfdb6d.jpeg)
2、prettytable
你可能从未听过该库,因为它托管在GoogleCode。prettytable主要用于在终端或浏览器端构建很好的输出。
![145aa025bbaba4661526570ddf01b0ea.png](https://i-blog.csdnimg.cn/blog_migrate/b94d37b540b496cba38e6695a839227b.jpeg)
3、snowballstemmer
好吧,我也是首次安装该库。这是一款非常瘦小的语言转换库,支持15种语言。
![c97ab090ce950cc7d18e699fa747a71d.png](https://i-blog.csdnimg.cn/blog_migrate/b9b5d979b7ee8cb30d0f908e31a00712.jpeg)
4、wget
你是否还记得,每一次都会因为某个目的而编写网络爬虫工具,以后再也不用了,因为wget就足够你使用了。wget是Python版的网络爬虫库,简单好用。
![b865032c2df34bf1541299efc4972e9b.png](https://i-blog.csdnimg.cn/blog_migrate/2a88a4012da32f847201bb1ea34eaa5c.jpeg)
5、PyMC
scikit-learn似乎是所有人的宠儿,但在我看来,PyMC更有魅力。PyMC主要用来做Bayesian分析。
![be8a91c73fa9b3ee9571ebcc54807c78.png](https://i-blog.csdnimg.cn/blog_migrate/39e69b0fe443aa95fdecdf089f204555.jpeg)
6、sh
sh库用来将shell命令作为函数导入到Python中。在bash中使用是非常实用的,但是在Python中不容易记住怎么使用(即递归搜索文件)。
![5cc351055f4e526d508b08a5623d4c23.png](https://i-blog.csdnimg.cn/blog_migrate/f5bacb9c3e469a59ac843cb8dfb88dca.jpeg)
7、fuzzywuzzy
Fuzzywuzzy是一个可以对字符串进行模糊匹配的库
![036405ef3ab52163f21a9281153605f3.png](https://i-blog.csdnimg.cn/blog_migrate/53d04ea04d785b8f51b0e4491176ed3a.jpeg)
8、progressbar
progressbar是一个进度条库,该库提供了一个文本模式的progressbar。
![6c648a873b31b2932a7ef68d4eec4143.png](https://i-blog.csdnimg.cn/blog_migrate/57edeca1bc105ab8c74e1a6a37c11679.jpeg)
9、colorama
colorama主要用来给文本添加各种颜色,并且非常简单易用。
![3e2990a7a7e3aa39f42f7eb269df66b4.png](https://i-blog.csdnimg.cn/blog_migrate/1d101f62f8f8f05ece54017432f6a4ab.jpeg)
10、uuid
uuid是基于Python实现的UUID库,它实现了UUID标注的1,3,4和5版本,在确保唯一性上真的非常方便。
![4b9cfb852367f28c96e1728889255923.png](https://i-blog.csdnimg.cn/blog_migrate/a661a5c2d44572c91686a66ce8379edc.jpeg)
11、bashplotlib