BOOKING

2019年5月7日星期二

Python 资源常用分享




### 环境管理

管理 Python 版本和环境的工具

* p:非常简单的交互式 python 版本管理工具。[官网](https://github.com/qw3rtman/p)
* pyenv:简单的 Python 版本管理工具。[官网](https://github.com/yyuu/pyenv)
* Vex:可以在虚拟环境中执行命令。[官网](https://github.com/sashahart/vex)
* virtualenv:创建独立 Python 环境的工具。[官网](https://pypi.python.org/pypi/virtualenv)
* virtualenvwrapper:virtualenv 的一组扩展。[官网](https://pypi.python.org/pypi/virtualenvwrapper)

### 包管理

管理包和依赖的工具。

* pip:Python 包和依赖关系管理工具。[官网](https://pip.pypa.io/)
* pip-tools:保证 Python 包依赖关系更新的一组工具。[官网](https://github.com/nvie/pip-tools)
* pipenv:Pyhton 官方推荐的新一代包管理工具。[官网](https://github.com/pypa/pipenv)
* conda:跨平台,Python 二进制包管理工具。[官网](https://github.com/conda/conda/)
* Curdling:管理 Python 包的命令行工具。[官网](http://clarete.li/curdling/)
* wheel:Python 分发的新标准,意在取代 eggs。[官网](http://pythonwheels.com/)

### 包仓库

本地 PyPI 仓库服务和代理。

* [warehouse](https://pypi.org/):下一代 PyPI。[官网](https://github.com/pypa/warehouse)
* bandersnatch:PyPA 提供的 PyPI 镜像工具。[官网](https://bitbucket.org/pypa/bandersnatch)
* devpi:PyPI 服务和打包/测试/分发工具。[官网](http://doc.devpi.net/)
* localshop:本地 PyPI 服务(自定义包并且自动对 PyPI 镜像)。[官网](https://github.com/mvantellingen/localshop)


### Web 框架

全栈 Web 框架。

* [Django](http://hao.jobbole.com/django/):Python 界最流行的 web 框架。[官网](https://www.djangoproject.com/)
* [awesome-django](https://gitlab.com/rosarior/awesome-django) 系列
* [Flask](http://hao.jobbole.com/flask/):一个 Python 微型框架。[官网](http://flask.pocoo.org/)
* [awesome-flask](https://github.com/humiaozuzu/awesome-flask) 系列
* pyramid:一个小巧,快速,接地气的开源 Python web 框架。
* [awesome-pyramid](https://github.com/uralbash/awesome-pyramid) 系列
* [Bottle](http://hao.jobbole.com/bottle/):一个快速小巧,轻量级的 WSGI 微型 web 框架。[官网](http://bottlepy.org/docs/dev/index.html)
* CherryPy:一个极简的 Python web 框架,服从 HTTP/1.1 协议且具有 WSGI 线程池。[官网](http://www.cherrypy.org/)
* TurboGears:一个可以扩展为全栈解决方案的微型框架。[官网](http://www.turbogears.org/)
* [web.py](http://hao.jobbole.com/python-webpy/):一个 Python 的 web 框架,既简单,又强大。[官网](http://webpy.org/)
* web2py:一个全栈 web 框架和平台,专注于简单易用。[官网](http://www.web2py.com/)
* [Tornado](http://hao.jobbole.com/tornado/):一个 web 框架和异步网络库。[官网](http://www.tornadoweb.org/en/latest/)
* sanic:基于 Python3.5+ 的异步网络框架。[官网](https://github.com/channelcat/sanic/)


爬取网络站点的库

* Scrapy:一个快速高级的屏幕爬取及网页采集框架。[官网](http://scrapy.org/)
* cola:一个分布式爬虫框架。[官网](https://github.com/chineking/cola)
* Demiurge:基于 PyQuery 的爬虫微型框架。[官网](https://github.com/matiasb/demiurge)
* feedparser:通用 feed 解析器。[官网](http://pythonhosted.org/feedparser/)
* Grab:站点爬取框架。[官网](http://grablib.org/)
* MechanicalSoup:用于自动和网络站点交互的 Python 库。[官网](https://github.com/hickford/MechanicalSoup)
* portia:Scrapy 可视化爬取。[官网](https://github.com/scrapinghub/portia)
* pyspider:一个强大的爬虫系统。[官网](https://github.com/binux/pyspider)
* RoboBrowser:一个简单的,Python 风格的库,用来浏览网站,而不需要一个独立安装的浏览器。[官网](https://github.com/jmcarp/robobrowser)

### 网页内容提取

用于进行网页内容提取的库。

* Haul:一个可以扩展的图像爬取工具。[官网](https://github.com/vinta/Haul)
* html2text:将 HTML 转换为 Markdown 格式文本。[官网](https://github.com/Alir3z4/html2text)
* lassie:人性化的网页内容检索库。[官网](https://github.com/michaelhelmick/lassie)
* micawber:一个小型网页内容提取库,用来从 URLs 提取富内容。[官网](https://github.com/coleifer/micawber)
* [newspaper](http://hao.jobbole.com/python-newspaper/):使用 Python 进行新闻提取,文章提取以及内容策展。[官网](https://github.com/codelucas/newspaper)
* opengraph:一个用来解析开放内容协议(Open Graph Protocol)的 Python 模块。[官网](https://github.com/erikriver/opengraph)
* [python-goose](http://hao.jobbole.com/python-goose/):HTML 内容/文章提取器。[官网](https://github.com/grangier/python-goose)
* python-readability:arc90 公司 readability 工具的 Python 高速端口。[官网](https://github.com/buriy/python-readability)
* sanitize:为杂乱的数据世界带来调理性。[官网](https://github.com/Alir3z4/python-sanitize)
* sumy:一个为文本文件和 HTML 页面进行自动摘要的模块。[官网](https://github.com/miso-belica/sumy)
* textract:从任何格式的文档中提取文本,Word,PowerPoint,PDFs 等等。[官网](https://github.com/deanmalmgren/textract)



### CMS

内容管理系统

* odoo-cms: 一个开源的,企业级 CMS,基于 odoo。[官网](http://www.odoo.com)
* django-cms:一个开源的,企业级 CMS,基于 Django。[官网](http://www.django-cms.org/en/)
* djedi-cms:一个轻量级但却非常强大的 Django CMS ,考虑到了插件,内联编辑以及性能。[官网](http://djedi-cms.org/)
* FeinCMS:基于 Django 构建的最先进的内容管理系统之一。[官网](http://www.feincms.org/)
* Kotti:一个高级的,Python 范的 web 应用框架,基于 Pyramid 构建。[官网](http://kotti.pylonsproject.org/)
* Mezzanine:一个强大的,持续的,灵活的内容管理平台。[官网](http://mezzanine.jupo.org/)
* Opps:一个为杂志,报纸网站以及大流量门户网站设计的 CMS 平台,基于 Django。[官网](http://opps.github.io/opps/)
* Plone:一个构建于开源应用服务器 Zope 之上的 CMS。[官网](https://plone.org/)
* Quokka:灵活,可扩展的小型 CMS,基于 Flask 和 MongoDB。[官网](http://quokkaproject.org/)
* [Wagtail](http://hao.jobbole.com/wagtail/):一个 Django 内容管理系统。[官网](https://wagtail.io/)
* Widgy:最新的 CMS 框架,基于 Django。[官网](https://wid.gy/)


### 表单

进行表单操作的库。

* Deform:Python HTML 表单生成库,受到了 formish 表单生成库的启发。[官网](http://deform.readthedocs.org/en/latest/)
* django-bootstrap3:集成了 Bootstrap 3 的 Django。[官网](https://github.com/dyve/django-bootstrap3)
* django-crispy-forms:一个 Django 应用,他可以让你以一种非常优雅且 DRY(Don't repeat yourself) 的方式来创建美观的表单。[官网](http://django-crispy-forms.readthedocs.org/en/latest/)
* django-remote-forms:一个平台独立的 Django 表单序列化工具。[官网](https://github.com/WiserTogether/django-remote-forms)
* WTForms:一个灵活的表单验证和呈现库。[官网](http://wtforms.readthedocs.org/en/latest/)
* WTForms-JSON:一个 WTForms 扩展,用来处理 JSON 数据。[官网](http://wtforms-json.readthedocs.org/en/latest/)

### 数据验证

数据验证库。多用于表单验证。

* Cerberus:一个映射验证器(mappings-validator)。支持多种规则,提供归一化功能,可以方便地定制为 Python 风格的 schema 定义。[官网](http://docs.python-cerberus.org/en/stable/)
* colander:一个用于对从 XML, JSON,HTML 表单获取的数据或其他同样简单的序列化数据进行验证和反序列化的系统。[官网](http://docs.pylonsproject.org/projects/colander/en/latest/)
* kmatch:一种用于匹配/验证/筛选 Python 字典的语言。[官网](https://github.com/ambitioninc/kmatch)
* schema:一个用于对 Python 数据结构进行验证的库。[官网](https://github.com/keleshev/schema) 
* Schematics:数据结构验证。[官网](https://github.com/schematics/schematics)
* valideer:轻量级可扩展的数据验证和适配库。[官网](https://github.com/podio/valideer)
* voluptuous:一个 Python 数据验证库。主要是为了验证传入 Python 的 JSON,YAML 等数据。[官网](https://github.com/alecthomas/voluptuous)
* jsonschema:[JSON Schema](http://json-schema.org/)的 python 实现,用于 JSON 数据的验证。[官网](https://github.com/Julian/jsonschema)




### 电子商务

用于电子商务以及支付的框架和库。

* django-oscar:一个用于 Django 的开源的电子商务框架。[官网](http://oscarcommerce.com/)
* django-shop:一个基于 Django 的店铺系统。[官网](https://github.com/awesto/django-shop)
* Cartridge:一个基于 Mezzanine 构建的购物车应用。[官网](https://github.com/stephenmcd/cartridge)
* shoop:一个基于 Django 的开源电子商务平台。[官网](https://www.shoop.io/en/)
* alipay:非官方的 Python 支付宝 API。[官网](https://github.com/lxneng/alipay)
* merchant:一个可以接收来自多种支付平台支付的 Django 应用。[官网](https://github.com/agiliq/merchant)
* money:一个货币类库。带有可选的 CLDR 后端本地化格式,提供可扩展的货币兑换解决方案。[官网](https://github.com/carlospalol/money)
* python-currencies:显示货币格式以及它的数值。[官网](https://github.com/Alir3z4/python-currencies)



### 分发

打包为可执行文件以便分发。

* PyInstaller:将 Python 程序转换成独立的执行文件(跨平台)。[官网](https://github.com/pyinstaller/pyinstaller)
* dh-virtualenv:构建并将 virtualenv 虚拟环境作为一个 Debian 包来发布。[官网](http://dh-virtualenv.readthedocs.org/)
* Nuitka:将脚本、模块、包编译成可执行文件或扩展模块。[官网](http://nuitka.net/)
* py2app:将 Python 脚本变为独立软件包(Mac OS X)。[官网](http://pythonhosted.org/py2app/)
* py2exe:将 Python 脚本变为独立软件包(Windows)。[官网](http://www.py2exe.org/)
* pynsist:一个用来创建 Windows 安装程序的工具,可以在安装程序中打包 Python 本身。[官网](http://pynsist.readthedocs.org/)



### 并发和并行

用以进行并发和并行操作的库。

* multiprocessing:(Python 标准库) 基于进程的“线程”接口。[官网](https://docs.python.org/2/library/multiprocessing.html)
* threading:(Python 标准库)更高层的线程接口。[官网](https://docs.python.org/2/library/threading.html)
* eventlet:支持 WSGI 的异步框架。[官网](http://eventlet.net/)
* gevent:一个基于协程的 Python 网络库,使用 [greenlet](https://github.com/python-greenlet/greenlet)。[官网](http://www.gevent.org/)
* Tomorrow:用于产生异步代码的神奇的装饰器语法实现。[官网](https://github.com/madisonmay/Tomorrow)
* uvloop:在 libuv 之上超快速实现 asyncio 事件循环。[官网](https://github.com/MagicStack/uvloop)

### 网络

用于网络编程的库。

* asyncio:(Python 标准库) 异步 I/O, 事件循环, 协程以及任务。[官网](https://docs.python.org/3/library/asyncio.html)
* [Twisted](http://hao.jobbole.com/twisted/):一个事件驱动的网络引擎。[官网](https://twistedmatrix.com/trac/)
* pulsar:事件驱动的并发框架。[官网](https://github.com/quantmind/pulsar)
* diesel:基于 Greenlet 的事件 I/O 框架。[官网](https://github.com/dieseldev/diesel)
* pyzmq:一个 ZeroMQ 消息库的 Python 封装。[官网](http://zeromq.github.io/pyzmq/)
* Toapi:一个轻巧,简单,快速的 Flask 库,致力于为所有网站提供 API 服务。[官网](https://github.com/gaojiuli/toapi)
* txZMQ:基于 Twisted 的 ZeroMQ 消息库的 Python 封装。[官网](https://github.com/smira/txZMQ)



### 构建工具

将源码编译成软件。

* buildout:一个构建系统,从多个组件来创建,组装和部署应用。[官网](http://www.buildout.org/)
* BitBake:针对嵌入式 Linux 的类似 make 的构建工具。[官网](http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html)
* fabricate:对任何语言自动找到依赖关系的构建工具。[官网](https://code.google.com/archive/p/fabricate)
* PlatformIO:多平台命令行构建工具。[官网](https://github.com/platformio/platformio)
* PyBuilder:纯 Python 实现的持续化构建工具。[官网](https://github.com/pybuilder/pybuilder)
* SCons:软件构建工具。[官网](http://www.scons.org/)


### 密码学

* cryptography:这个软件包意在提供密码学基本内容和方法提供给 Python 开发者。[官网](https://cryptography.io/en/latest/)
* hashids:在 Python 中实现 [hashids](http://hashids.org/) 。[官网](https://github.com/davidaurelio/hashids-python)
* Paramiko:SSHv2 协议的 Python (2.6+, 3.3+) ,提供客户端和服务端的功能。[官网](http://www.paramiko.org/)
* Passlib:安全密码存储/哈希库,[官网](https://pythonhosted.org/passlib/)
* PyCrypto:Python 密码学工具箱。[官网](https://www.dlitz.net/software/pycrypto/)
* PyNacl:网络和密码学(NaCl) 库的 Python 绑定。[官网](https://github.com/pyca/pynacl)

### 图形用户界面

用来创建图形用户界面程序的库。

* curses:内建的 [ncurses](http://www.gnu.org/software/ncurses/) 封装,用来创建终端图形用户界面。[官网](https://docs.python.org/2/library/curses.html#module-curses)
* enaml:使用类似 QML 的 Declaratic 语法来创建美观的用户界面。[官网](https://github.com/nucleic/enaml)
* [kivy](http://hao.jobbole.com/kivy/):一个用来创建自然用户交互(NUI)应用程序的库,可以运行在 Windows, Linux, Mac OS X, Android 以及 iOS 平台上。[官网](https://kivy.org/)
* pyglet:一个 Python 的跨平台窗口及多媒体库。[官网](https://bitbucket.org/pyglet/pyglet/wiki/Home)
* PyQt:跨平台用户界面框架 [Qt](http://www.qt.io/) 的 Python 绑定 ,支持 Qt v4 和 Qt v5。[官网](https://riverbankcomputing.com/software/pyqt/intro)
* PySide:跨平台用户界面框架 [Qt](http://www.qt.io/) 的 Python 绑定 ,支持 Qt v4。[官网](https://wiki.qt.io/PySide)
* Tkinter:Tkinter 是 Python GUI 的一个事实标准库。[官网](https://wiki.python.org/moin/TkInter)
* Toga:一个 Python 原生的, 操作系统原生的 GUI 工具包。[官网](https://github.com/pybee/toga)
* urwid:一个用来创建终端 GUI 应用的库,支持组件,事件和丰富的色彩等。[官网](http://urwid.org/)
* wxPython:wxPython 是 wxWidgets C++ 类库和 Python 语言混合的产物。[官网](http://wxpython.org/)
* PyGObject:GLib/GObject/GIO/GTK+ (GTK+3) 的 Python 绑定。[官网](https://wiki.gnome.org/Projects/PyGObject)
* Flexx:Flexx 是一个纯 Python 语言编写的用来创建 GUI 程序的工具集,它使用 web 技术进行界面的展示。[官网](https://github.com/zoofIO/flexx)




### 文件

文件管理和 MIME(多用途的网际邮件扩充协议)类型检测。

* aiofiles:基于 asyncio,提供文件异步操作。[官网](https://github.com/Tinche/aiofiles)
* imghdr:(Python 标准库)检测图片类型。[官网](https://docs.python.org/2/library/imghdr.html)
* mimetypes:(Python 标准库)将文件名映射为 MIME 类型。[官网](https://docs.python.org/2/library/mimetypes.html)
* path.py:对 os.path 进行封装的模块。[官网](https://github.com/jaraco/path.py)
* pathlib:(Python3.4+ 标准库)跨平台的、面向对象的路径操作库。[官网](https://pathlib.readthedocs.org/en/pep428/)
* python-magic:文件类型检测的第三方库 libmagic 的 Python 接口。[官网](https://github.com/ahupp/python-magic)
* Unipath:用面向对象的方式操作文件和目录。[官网](https://github.com/mikeorr/Unipath)
* watchdog:管理文件系统事件的 API 和 shell 工具。[官网](https://github.com/gorakhargosh/watchdog)

### 日期和时间

操作日期和时间的类库。

* arrow:更好的 Python 日期时间操作类库。[官网](https://github.com/crsmithdev/arrow)
* Chronyk:Python 3 的类库,用于解析手写格式的时间和日期。[官网](https://github.com/KoffeinFlummi/Chronyk)
* dateutil:Python datetime 模块的扩展。[官网](https://pypi.python.org/pypi/python-dateutil)
* delorean:解决 Python 中有关日期处理的棘手问题的库。[官网](https://github.com/myusuf3/delorean/)
* maya:人性化的时间处理库。[官网](https://github.com/kennethreitz/maya)
* moment:一个用来处理时间和日期的 Python 库。灵感来自于 Moment.js。[官网](https://github.com/zachwill/moment)
* pendulum:一个比 arrow 更具有明确的,可预测的行为的时间操作库。[官网](https://github.com/sdispater/pendulum)
* PyTime:一个简单易用的 Python 模块,用于通过字符串来操作日期/时间。[官网](https://github.com/shinux/PyTime)
* pytz:现代以及历史版本的世界时区定义。将时区数据库引入 Python。[官网](https://launchpad.net/pytz)
* when.py:提供用户友好的函数来帮助用户进行常用的日期和时间操作。[官网](https://github.com/dirn/When.py)


### 文本处理

用于解析和操作文本的库。

* 通用
* [chardet](http://hao.jobbole.com/chardet/):字符编码检测器,兼容 Python2 和 Python3。[官网](https://github.com/chardet/chardet)
* difflib:(Python 标准库)帮助我们进行差异化比较。[官网](https://docs.python.org/2/library/difflib.html)
* ftfy:让 Unicode 文本更完整更连贯。[官网](https://github.com/LuminosoInsight/python-ftfy)
* fuzzywuzzy:模糊字符串匹配。[官网](https://github.com/seatgeek/fuzzywuzzy)
* Levenshtein:快速计算编辑距离以及字符串的相似度。[官网](https://github.com/ztane/python-Levenshtein/)
* pangu.py:在中日韩语字符和数字字母之间添加空格。[官网](https://github.com/vinta/pangu.py)
* pypinyin:汉字拼音转换工具 Python 版。[官网](https://github.com/mozillazg/python-pinyin)
* shortuuid:一个生成器库,用以生成简洁的,明白的,URL 安全的 UUID。[官网](https://github.com/stochastic-technologies/shortuuid)
* [simplejson](https://github.com/simplejson/simplejson):Python 的 JSON 编码、解码器。[官网](https://simplejson.readthedocs.io/en/latest/)
* unidecode:Unicode 文本的 ASCII 转换形式 。[官网](https://pypi.python.org/pypi/Unidecode)
* uniout:打印可读的字符,而不是转义的字符串。[官网](https://github.com/moskytw/uniout)
* xpinyin:一个用于把汉字转换为拼音的库。[官网](https://github.com/lxneng/xpinyin)
* yfiglet-figlet:[pyfiglet -figlet](https://github.com/pwaller/pyfiglet) 的 Python 实现。
* flashtext: 一个高效的文本查找替换库。[官网](https://github.com/vi3k6i5/flashtext)
* Slug 化
* awesome-slugify:一个 Python slug 化库,可以保持 Unicode。[官网](https://github.com/dimka665/awesome-slugify)
* python-slugify:Python slug 化库,可以把 unicode 转化为 ASCII。[官网](https://github.com/un33k/python-slugify)
* unicode-slugify:一个 slug 工具,可以生成 unicode slugs ,需要依赖 Django 。[官网](https://github.com/mozilla/unicode-slugify)
* 解析器
* phonenumbers:解析,格式化,储存,验证电话号码。[官网](https://github.com/daviddrysdale/python-phonenumbers)
* PLY:lex 和 yacc 解析工具的 Python 实现。[官网](http://www.dabeaz.com/ply/)
* Pygments:通用语法高亮工具。[官网](http://pygments.org/)
* pyparsing:生成通用解析器的框架。[官网](http://pyparsing.wikispaces.com/)
* python-nameparser:把一个人名分解为几个独立的部分。[官网](https://github.com/derek73/python-nameparser)
* python-user-agents:浏览器 user agent 解析器。[官网](https://github.com/selwin/python-user-agents)
* sqlparse:一个无验证的 SQL 解析器。[官网](https://sqlparse.readthedocs.org/en/latest/)



### 数据可视化

进行数据可视化的库。 参见: [awesome-javascript](https://github.com/sorrycc/awesome-javascript#data-visualization)。

* matplotlib:一个 Python 2D 绘图库。[官网](http://matplotlib.org/)
* bokeh:用 Python 进行交互式 web 绘图。[官网](https://github.com/bokeh/bokeh)
* ggplot:ggplot2 给 R 提供的 API 的 Python 版本。[官网](https://github.com/yhat/ggplot)
* plotly:协同 Python 和 matplotlib 工作的 web 绘图库。[官网](https://plot.ly/python/)
* pyecharts:基于百度 Echarts 的数据可视化库。[官网](https://github.com/chenjiandongx/pyecharts)
* pygal:一个 Python SVG 图表创建工具。[官网](http://www.pygal.org/en/latest/)
* pygraphviz:Graphviz 的 Python 接口。[官网](https://pypi.python.org/pypi/pygraphviz)
* PyQtGraph:交互式实时 2D/3D/ 图像绘制及科学/工程学组件。[官网](http://www.pyqtgraph.org/)
* SnakeViz:一个基于浏览器的 Python's cProfile 模块输出结果查看工具。[官网](http://jiffyclub.github.io/snakeviz/)
* vincent:把 Python 转换为 Vega 语法的转换工具。[官网](https://github.com/wrobstory/vincent)
* VisPy:基于 OpenGL 的高性能科学可视化工具。[官网](http://vispy.org/)




### 计算机视觉

计算机视觉库。

* OpenCV:开源计算机视觉库。[官网](http://opencv.org/)
* pyocr:Tesseract 和 Cuneiform 的包装库。[官网](https://github.com/jflesch/pyocr)
* pytesseract:[Google Tesseract OCR](https://github.com/tesseract-ocr) 的另一包装库。[官网](https://github.com/madmaze/pytesseract)
* [SimpleCV](http://hao.jobbole.com/simplecv/):一个用来创建计算机视觉应用的开源框架。[官网](http://simplecv.org/)

### 机器学习

机器学习库。 参见: [awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning#python).

* Caffe: 一个 [Caffe](https://github.com/BVLC/caffe) 的 python 接口。[官网](http://caffe.berkeleyvision.org)
* [Caffe2](https://github.com/caffe2/caffe2/):一个轻量级的,模块化的,可扩展的深度学习框架。[官网](https://caffe2.ai/)
* Crab:灵活、快速的推荐引擎。[官网](https://github.com/muricoca/crab)
* gensim:人性化的话题建模库。[官网](https://github.com/piskvorky/gensim)
* hebel:GPU 加速的深度学习库。[官网](https://github.com/hannes-brt/hebel)
* [keras](https://github.com/keras-team/keras): 以 tensorflow/theano/CNTK 为后端的深度学习封装库,快速上手神经网络。[官网](https://keras.io/)
* [MXNet](https://github.com/apache/incubator-mxnet):一个高效和灵活的深度学习框架。[官网](http://mxnet.incubator.apache.org/)
* NuPIC:智能计算 Numenta 平台。[官网](https://github.com/numenta/nupic)
* pattern:Python 网络挖掘模块。[官网](https://github.com/clips/pattern)
* [PyBrain](http://hao.jobbole.com/pybrain/):另一个 Python 机器学习库。[官网](https://github.com/pybrain/pybrain)
* pydeep:Python 深度学习库。[官网](https://github.com/andersbll/deeppy)
* [Pylearn2](http://hao.jobbole.com/pylearn2/):一个基于 [Theano](https://github.com/Theano/Theano) 的机器学习库。[官网](https://github.com/lisa-lab/pylearn2)
* [python-recsys](http://hao.jobbole.com/python-recsys/):一个用来实现推荐系统的 Python 库。[官网](https://github.com/ocelma/python-recsys)
* [Pytorch](https://github.com/pytorch/pytorch):一个具有张量和动态神经网络,并有强大 GPU 加速能力的深度学习框架。[官网](http://pytorch.org/)
* scikit-learn:基于 SciPy 构建的机器学习 Python 模块。[官网](http://scikit-learn.org/)
* skflow:一个 [TensorFlow](https://github.com/tensorflow/tensorflow) 的简化接口(模仿 scikit-learn)。[官网](https://github.com/tensorflow/skflow)
* [TensorFlow](https://github.com/tensorflow/tensorflow):谷歌开源的最受欢迎的深度学习框架。[官网](http://tensorflow.org/)
* Theano:一个快速数值计算库。[官网](https://github.com/Theano/Theano)
* vowpalporpoise:轻量级 [Vowpal Wabbit](https://github.com/JohnLangford/vowpalwabbit/) 的 Python 封装。[官网](https://github.com/josephreisinger/vowpalporpoise)







### 特殊文本格式处理

一些用来解析和操作特殊文本格式的库。

* 通用
* tablib:一个用来处理中表格数据的模块。[官网](https://github.com/kennethreitz/tablib)
* Office
* Marmir:把输入的 Python 数据结构转换为电子表单。[官网](https://github.com/brianray/mm)
* openpyxl:一个用来读写 Excel 2010 xlsx/xlsm/xltx/xltm 文件的库。[官网](https://openpyxl.readthedocs.org/en/latest/)
* pyexcel:一个提供统一 API,用来读写,操作 Excel 文件的库。[官网](https://github.com/pyexcel/pyexcel)
* python-docx:读取,查询以及修改 Microsoft Word 2007/2008 docx 文件。[官网](https://github.com/python-openxml/python-docx)
* relatorio:模板化 OpenDocument 文件。[官网](http://relatorio.tryton.org/)
* unoconv:在 LibreOffice/OpenOffice 支持的任意文件格式之间进行转换。[官网](https://github.com/dagwieers/unoconv)
* XlsxWriter:一个用于创建 Excel .xlsx 文件的 Python 模块。[官网](https://xlsxwriter.readthedocs.org/en/latest/)
* xlwings:一个使得在 Excel 中方便调用 Python 的库(反之亦然),基于 BSD 协议。[官网](http://xlwings.org/)
* [xlwt](http://hao.jobbole.com/xlwt/):读写 Excel 文件的数据和格式信息。[官网](https://github.com/python-excel/xlwt) / [xlrd](https://github.com/python-excel/xlrd)
* PDF
* PDFMiner:一个用于从 PDF 文档中抽取信息的工具。[官网](https://github.com/euske/pdfminer)
* PyPDF2:一个可以分割,合并和转换 PDF 页面的库。[官网](https://github.com/mstamy2/PyPDF2)
* ReportLab:快速创建富文本 PDF 文档。[官网](http://www.reportlab.com/opensource/)
* Markdown
* Mistune:快速并且功能齐全的纯 Python 实现的 Markdown 解析器。[官网](https://github.com/lepture/mistune)
* Python-Markdown:John Gruber’s Markdown 的 Python 版实现。[官网](https://github.com/waylan/Python-Markdown)
* Python-Markdown2:纯 Python 实现的 Markdown 解析器,比 Python-Markdown 更快,更准确,可扩展。[官网](https://github.com/trentm/python-markdown2)
* YAML
* PyYAML:Python 版本的 YAML 解析器。[官网](http://pyyaml.org/)
* CSV
* csvkit:用于转换和操作 CSV 的工具。[官网](https://github.com/wireservice/csvkit)
* Archive
* unp:一个用来方便解包归档文件的命令行工具。[官网](https://github.com/mitsuhiko/unp)


### 自然语言处理

用来处理人类语言的库。

* [NLTK](http://hao.jobbole.com/nltk/):一个先进的平台,用以构建处理人类语言数据的 Python 程序。[官网](http://www.nltk.org/)
* jieba:中文分词工具。[官网](https://github.com/fxsjy/jieba)
* langid.py:独立的语言识别系统。[官网](https://github.com/saffsd/langid.py)
* Pattern:Python 网络信息挖掘模块。[官网](http://www.clips.ua.ac.be/pattern)
* SnowNLP:一个用来处理中文文本的库。[官网](https://github.com/isnowfy/snownlp)
* TextBlob:为进行普通自然语言处理任务提供一致的 API。[官网](http://textblob.readthedocs.org/en/latest/)
* TextGrocery:一简单高效的短文本分类工具,基于 LibLinear 和 Jieba。[官网](https://github.com/2shou/TextGrocery)
*   thulac:清华大学自然语言处理与社会人文计算实验室研制推出的一套中文词法分析工具包[官网](https://github.com/thunlp/THULAC-Python)


### 文档

用以生成项目文档的库。

* [Sphinx](http://hao.jobbole.com/sphinx/):Python 文档生成器。[官网](http://www.sphinx-doc.org/en/latest/)
* awesome-sphinxdoc:[官网](https://github.com/yoloseem/awesome-sphinxdoc)
* MkDocs:对 Markdown 友好的文档生成器。[官网](http://www.mkdocs.org/)
* pdoc:一个可以替换 Epydoc 的库,可以自动生成 Python 库的 API 文档。[官网](https://github.com/BurntSushi/pdoc)
* Pycco:文学编程(literate-programming)风格的文档生成器。[官网](https://github.com/pycco-docs/pycco)
* readthedocs:一个基于 Sphinx/MkDocs 的在线文档托管系统,对开源项目免费开放使用。[官网](https://github.com/rtfd/readthedocs.org/)




### 第三方 API

用来访问第三方 API 的库。 参见: [List of Python API Wrappers and Libraries](https://github.com/realpython/list-of-python-api-wrappers)。

* apache-libcloud:一个为各种云设计的 Python 库。[官网](https://libcloud.apache.org/)
* boto:Amazon Web Services 的 Python 接口。[官网](https://github.com/boto/boto)
* django-wordpress:WordPress models and views for Django.[官网](https://github.com/sunlightlabs/django-wordpress/)
* facebook-sdk:Facebook 平台的 Python SDK.[官网](https://github.com/mobolic/facebook-sdk)
* facepy:Facepy 让和 Facebook's Graph API 的交互变得更容易。[官网](https://github.com/jgorset/facepy)
* gmail:Gmail 的 Python 接口。[官网](https://github.com/charlierguo/gmail)
* google-api-python-client:Python 用的 Google APIs 客户端库。[官网](https://github.com/google/google-api-python-client)
* gspread:Google 电子表格的 Python API.[官网](https://github.com/burnash/gspread)
* twython:Twitter API 的封装。[官网](https://github.com/ryanmcgrath/twython)





### 配置

用来保存和解析配置的库。

* config:[logging](https://docs.python.org/2/library/logging.html) 模块作者写的分级配置模块。[官网](https://www.red-dove.com/config-doc/)
* ConfigObj:INI 文件解析器,带验证功能。[官网](http://www.voidspace.org.uk/python/configobj.html)
* ConfigParser:(Python 标准库) INI 文件解析器。[官网](https://docs.python.org/2/library/configparser.html)
* profig:通过多种格式进行配置,具有数值转换功能。[官网](http://profig.readthedocs.org/en/default/)
* python-decouple:将设置和代码完全隔离。[官网](https://github.com/henriquebastos/python-decouple)

### 命令行工具

用于创建命令行程序的库。

* 命令行程序开发
* asciimatics:跨平台,全屏终端包(即鼠标/键盘输入和彩色,定位文本输出),完整的复杂动画和特殊效果的高级 API。[官网](https://github.com/peterbrittain/asciimatics)
* cement:Python 的命令行程序框架。[官网](http://builtoncement.com/)
* click:一个通过组合的方式来创建精美命令行界面的包。[官网](http://click.pocoo.org/dev/)
* cliff:一个用于创建命令行程序的框架,可以创建具有多层命令的命令行程序。[官网](http://docs.openstack.org/developer/cliff/)
* clint:Python 命令行程序工具。[官网](https://github.com/kennethreitz/clint)
* colorama:跨平台彩色终端文本。[官网](https://pypi.python.org/pypi/colorama)
* docopt:Python 风格的命令行参数解析器。[官网](http://docopt.org/)
* Gooey:一条命令,将命令行程序变成一个 GUI 程序。[官网](https://github.com/chriskiehl/Gooey)
* python-prompt-toolkit:一个用于构建强大的交互式命令行程序的库。[官网](https://github.com/jonathanslenders/python-prompt-toolkit)
* python-fire:Google 出品的一个基于 Python 类的构建命令行界面的库。[官网](https://github.com/google/python-fire)
* [Pythonpy](http://hao.jobbole.com/pythonpy/):在命令行中直接执行任何 Python 指令。[官网](https://github.com/Russell91/pythonpy/wiki)
* 生产力工具
* aws-cli:Amazon Web Services 的通用命令行界面。[官网](https://github.com/aws/aws-cli)
* bashplotlib:在终端中进行基本绘图。[官网](https://github.com/glamp/bashplotlib)
* caniusepython3:判断是哪个项目妨碍你你移植到 Python3。[官网](https://github.com/brettcannon/caniusepython3)
* cookiecutter:从 cookiecutters(项目模板)创建项目的一个命令行工具。[官网](https://github.com/audreyr/cookiecutter)
* doitlive:一个用来在终端中进行现场演示的工具。[官网](https://github.com/sloria/doitlive)
* pyftpdlib:一个速度极快和可扩展的 Python FTP 服务库。[官网](https://github.com/giampaolo/pyftpdlib)
* howdoi:通过命令行获取即时的编程问题解答。[官网](https://github.com/gleitz/howdoi)
* httpie:一个命令行 HTTP 客户端,cURL 的替代品,易用性更好。[官网](https://github.com/jkbrzt/httpie)
* PathPicker:从 bash 输出中选出文件。[官网](https://github.com/facebook/PathPicker)
* percol:向 UNIX shell 传统管道概念中加入交互式选择功能。[官网](https://github.com/mooz/percol)
* SAWS:一个加强版的 AWS 命令行。[官网](https://github.com/donnemartin/saws)
* thefuck:修正你之前的命令行指令。[官网](https://github.com/nvbn/thefuck)
* mycli:一个 MySQL 命令行客户端,具有自动补全和语法高亮功能。[官网](https://github.com/dbcli/mycli)
* pgcli:Postgres 命令行工具,具有自动补全和语法高亮功能。[官网](https://github.com/dbcli/pgcli)
* try:一个从来没有更简单的命令行工具,用来试用 python 库。[官网](https://github.com/timofurrer/try)

### 下载器

用来进行下载的库.

* s3cmd:一个用来管理 Amazon S3 和 CloudFront 的命令行工具。[官网](https://github.com/s3tools/s3cmd)
* s4cmd:超级 S3 命令行工具,性能更加强劲。[官网](https://github.com/bloomreach/s4cmd)
* you-get:一个 YouTube/Youku/Niconico 视频下载器,使用 Python3 编写。[官网](https://www.soimort.org/you-get/)
* youtube-dl:一个小巧的命令行程序,用来下载 YouTube 视频。[官网](http://rg3.github.io/youtube-dl/)

### 图像处理

用来操作图像的库.

* [pillow](http://hao.jobbole.com/pillow/):Pillow 是一个更加易用版的 [PIL](http://www.pythonware.com/products/pil/)。[官网](http://pillow.readthedocs.org/en/latest/)
* hmap:图像直方图映射。[官网](https://github.com/rossgoodwin/hmap)
* imgSeek:一个使用视觉相似性搜索一组图片集合的项目。[官网](https://sourceforge.net/projects/imgseek/)
* nude.py:裸体检测。[官网](https://github.com/hhatto/nude.py)
* pyBarcode:不借助 PIL 库在 Python 程序中生成条形码。[官网](https://pythonhosted.org/pyBarcode/)
* pygram:类似 Instagram 的图像滤镜。[官网](https://github.com/ajkumar25/pygram)
* python-qrcode:一个纯 Python 实现的二维码生成器。[官网](https://github.com/lincolnloop/python-qrcode)
* Quads:基于四叉树的计算机艺术。[官网](https://github.com/fogleman/Quads)
* scikit-image:一个用于(科学)图像处理的 Python 库。[官网](http://scikit-image.org/)
* thumbor:一个小型图像服务,具有剪裁,尺寸重设和翻转功能。[官网](https://github.com/thumbor/thumbor)
* wand:[MagickWand](http://www.imagemagick.org/script/magick-wand.php)的 Python 绑定。MagickWand 是 ImageMagick 的 C API 。[官网](https://github.com/dahlia/wand)
* face_recognition:简单易用的 python 人脸识别库。[官网](https://github.com/ageitgey/face_recognition)

### OCR

光学字符识别库。

* pyocr:Tesseract 和 Cuneiform 的一个封装(wrapper)。[官网](https://github.com/jflesch/pyocr)
* [pytesseract](http://hao.jobbole.com/pytesseract/):[Google Tesseract OCR](https://github.com/tesseract-ocr) 的另一个封装(wrapper)。[官网](https://github.com/madmaze/pytesseract)
* python-tesseract:[Google Tesseract OCR](https://github.com/tesseract-ocr) 的一个包装类。

### 音频

用来操作音频的库

* audiolazy:Python 的数字信号处理包。[官网](https://github.com/danilobellini/audiolazy) 
* audioread:交叉库 (GStreamer + Core Audio + MAD + FFmpeg) 音频解码。[官网](https://github.com/beetbox/audioread)
* beets:一个音乐库管理工具及 [MusicBrainz](https://musicbrainz.org/) 标签添加工具。[官网](http://beets.io/)
* dejavu:音频指纹提取和识别。[官网](https://github.com/worldveil/dejavu)
* [django-elastic-transcoder](http://hao.jobbole.com/django-elastic-transcoder/):Django + [Amazon Elastic Transcoder](http://aws.amazon.com/elastictranscoder/)。[官网](https://github.com/StreetVoice/django-elastic-transcoder)
* eyeD3:一个用来操作音频文件的工具,具体来讲就是包含 ID3 元信息的 MP3 文件。[官网](http://eyed3.nicfit.net/)
* id3reader:一个用来读取 MP3 元数据的 Python 模块。[官网](http://nedbatchelder.com/code/modules/id3reader.py)
* m3u8:一个用来解析 m3u8 文件的模块。[官网](https://github.com/globocom/m3u8)
* mutagen:一个用来处理音频元数据的 Python 模块。[官网](https://bitbucket.org/lazka/mutagen)
* pydub:通过简单、简洁的高层接口来操作音频文件。[官网](https://github.com/jiaaro/pydub)
* pyechonest:[Echo Nest](http://developer.echonest.com/) API 的 Python 客户端。[官网](https://github.com/echonest/pyechonest)
* talkbox:一个用来处理演讲/信号的 Python 库。[官网](http://scikits.appspot.com/talkbox)
* TimeSide:开源 web 音频处理框架。[官网](https://github.com/Parisson/TimeSide)
* tinytag:一个用来读取 MP3, OGG, FLAC 以及 Wave 文件音乐元数据的库。[官网](https://github.com/devsnd/tinytag)
* mingus:一个高级音乐理论和曲谱包,支持 MIDI 文件和回放功能。[官网](http://bspaans.github.io/python-mingus/)


### 网络可视化和 SDN

用来进行网络可视化和 SDN(软件定义网络)的工具和库。

* Mininet:一款流行的网络模拟器以及用 Python 编写的 API。[官网](http://mininet.org/)
* POX:一个针对基于 Python 的软件定义网络应用(例如 OpenFlow SDN 控制器)的开源开发平台。[官网](https://github.com/noxrepo/pox)
* Pyretic:火热的 SDN 编程语言中的一员,为网络交换机和模拟器提供强大的抽象能力。[官网](http://frenetic-lang.org/pyretic/)
*   SDX Platform:基于 SDN 的 IXP 实现,影响了 Mininet, POX 和 Pyretic。[官网](https://github.com/sdn-ixp/internet2award)
*   NRU:一个基于组件的软件定义网络框架。[官网](http://ryu.readthedocs.io/en/latest/)




### Video

用来操作视频和 GIF 的库。

* moviepy:一个用来进行基于脚本的视频编辑模块,适用于多种格式,包括动图 GIFs。[官网](http://zulko.github.io/moviepy/)
* scikit-video:SciPy 视频处理常用程序。[官网](https://github.com/aizvorski/scikit-video)


### 地理位置

地理编码地址以及用来处理经纬度的库。

* GeoDjango:世界级地理图形 web 框架。[官网](https://docs.djangoproject.com/en/dev/ref/contrib/gis/)
* GeoIP:MaxMind GeoIP Legacy 数据库的 Python API。[官网](https://github.com/maxmind/geoip-api-python)
* geojson:GeoJSON 的 Python 绑定及工具。[官网](https://github.com/frewsxcv/python-geojson)
* geopy:Python 地址编码工具箱。[官网](https://github.com/geopy/geopy)
* pygeoip:纯 Python GeoIP API。[官网](https://github.com/appliedsec/pygeoip)
* django-countries:一个 Django 应用程序,提供用于表格的国家选择功能,国旗图标静态文件以及模型中的国家字段。[官网](https://github.com/SmileyChris/django-countries)


### HTTP

使用 HTTP 的库。
* aiohttp:基于 asyncio 的异步 HTTP 网络库。[官网](https://github.com/aio-libs/aiohttp)
* requests:人性化的 HTTP 请求库。[官网](http://docs.python-requests.org/en/latest/)
* grequests:requests 库 + gevent ,用于异步 HTTP 请求.[官网](https://github.com/kennethreitz/grequests)
* httplib2:全面的 HTTP 客户端库。[官网](https://github.com/jcgregorio/httplib2)
* treq:类似 requests 的 Python API 构建于 Twisted HTTP 客户端之上。[官网](https://github.com/twisted/treq)
* urllib3:一个具有线程安全连接池,支持文件 post,清晰友好的 HTTP 库。[官网](https://github.com/shazow/urllib3)

### 数据库驱动

用来连接和操作数据库的库。

* MySQL:[awesome-mysql](http://shlomi-noach.github.io/awesome-mysql/) 系列
* aiomysql:基于 asyncio 的异步 MySQL 数据库操作库。[官网](https://github.com/aio-libs/aiomysql)
* mysql-python:Python 的 MySQL 数据库连接器。[官网](https://sourceforge.net/projects/mysql-python/)
* ysqlclient:[mysql-python](https://github.com/PyMySQL/mysqlclient-python) 分支,支持 Python 3。
* oursql:一个更好的 MySQL 连接器,支持原生预编译指令和 BLOBs。[官网](https://pythonhosted.org/oursql/)
* PyMySQL:纯 Python MySQL 驱动,兼容 mysql-python。[官网](https://github.com/PyMySQL/PyMySQL)
* PostgreSQL
* psycopg2:Python 中最流行的 PostgreSQL 适配器。[官网](http://initd.org/psycopg/)
* queries:psycopg2 库的封装,用来和 PostgreSQL 进行交互。[官网](https://github.com/gmr/queries)
* txpostgres:基于 Twisted 的异步 PostgreSQL 驱动。[官网](http://txpostgres.readthedocs.org/en/latest/)
* 其他关系型数据库
* apsw:另一个 Python SQLite 封装。[官网](http://rogerbinns.github.io/apsw/)
* dataset:在数据库中存储 Python 字典
* pymssql:一个简单的 Microsoft SQL Server 数据库接口。[官网](http://www.pymssql.org/en/latest/)
* NoSQL 数据库
* asyncio-redis:基于 asyncio 的 redis 客户端 (PEP 3156)。[官网](https://github.com/jonathanslenders/asyncio-redis)
* cassandra-python-driver:Cassandra 的 Python 驱动。[官网](https://github.com/datastax/python-driver)
* HappyBase:一个为 Apache HBase 设计的,对开发者友好的库。[官网](http://happybase.readthedocs.org/en/latest/)
* Plyvel:一个快速且功能丰富的 LevelDB 的 Python 接口。[官网](https://plyvel.readthedocs.org/en/latest/)
* py2neo:Neo4j restful 接口的 Python 封装客户端。[官网](http://py2neo.org/2.0/)
* pycassa:Cassandra 的 Python Thrift 驱动。[官网](https://github.com/pycassa/pycassa)
* PyMongo:MongoDB 的官方 Python 客户端。[官网](https://docs.mongodb.org/ecosystem/drivers/python/)
* redis-py:Redis 的 Python 客户端。[官网](https://github.com/andymccurdy/redis-py)
* telephus:基于 Twisted 的 Cassandra 客户端。[官网](https://github.com/driftx/Telephus)
* txRedis:基于 Twisted 的 Redis 客户端。[官网](https://github.com/deldotdr/txRedis)


### 权限

允许或拒绝用户访问数据或功能的库。

* Carteblanche:站在用户和设计者角度开发的一个代码对齐模块,很好地处理了代码导航及权限。[官网](https://github.com/neuman/python-carteblanche/)
* django-guardian:Django 1.2+ 实现了单个对象权限。[官网](https://github.com/django-guardian/django-guardian)
* django-rules:一个小巧但是强大的应用,提供对象级别的权限管理,且不需要使用数据库。[官网](https://github.com/dfunckt/django-rules)



### RESTful API

用来开发 RESTful APIs 的库

* Django
* [django-rest-framework](http://hao.jobbole.com/django-rest-framework/):一个强大灵活的工具,用来构建 web API。[官网](http://www.django-rest-framework.org/)
* django-tastypie:为 Django 应用开发 API。[官网](http://tastypieapi.org/)
* django-formapi:为 Django 的表单验证,创建 JSON APIs 。[官网](https://github.com/5monkeys/django-formapi)
* Flask
* flask-api:为 flask 开发的,可浏览 Web APIs 。[官网](http://www.flaskapi.org/)
* flask-restful:为 flask 快速创建 REST APIs 。[官网](http://flask-restful.readthedocs.org/en/latest/)
* flask-restless:为 SQLAlchemy 定义的数据库模型创建 RESTful APIs 。[官网](https://flask-restless.readthedocs.org/en/latest/)
* flask-api-utils:为 Flask 处理 API 表示和验证。[官网](https://github.com/marselester/flask-api-utils)
* eve:REST API 框架,由 Flask, MongoDB 等驱动。[官网](https://github.com/nicolaiarocci/eve)
* Pyramid
* cornice:一个 Pyramid 的 REST 框架 。[官网](https://cornice.readthedocs.org/en/latest/)
* 与框架无关的
* falcon:一个用来建立云 API 和 web app 后端的高性能框架。[官网](http://falconframework.org/)
* sandman:为现存的数据库驱动系统自动创建 REST APIs 。[官网](https://github.com/jeffknupp/sandman)
* restless:框架无关的 REST 框架 ,基于从 Tastypie 学到的知识。[官网](http://restless.readthedocs.org/en/latest/)
* ripozo:快速创建 REST/HATEOAS/Hypermedia APIs。[官网](https://github.com/vertical-knowledge/ripozo)


### 验证

实现验证方案的库。

* OAuth
* Authomatic:简单但是强大的框架,身份验证/授权客户端。[官网](http://peterhudec.github.io/authomatic/)
* django-allauth:Django 的验证应用。[官网](https://github.com/pennersr/django-allauth)
* django-oauth-toolkit:为 Django 用户准备的 OAuth2。[官网](https://github.com/evonove/django-oauth-toolkit)
* django-oauth2-provider:为 Django 应用提供 OAuth2 接入。[官网](https://github.com/caffeinehit/django-oauth2-provider)
* Flask-OAuthlib:OAuth 1.0/a, 2.0 客户端实现,供 Flask 使用。[官网](https://github.com/lepture/flask-oauthlib)
* OAuthLib:一个 OAuth 请求-签名逻辑通用、 完整的实现。[官网](https://github.com/idan/oauthlib)
* python-oauth2:一个完全测试的抽象接口。用来创建 OAuth 客户端和服务端。[官网](https://github.com/joestump/python-oauth2)
* python-social-auth:一个设置简单的社会化验证方式。[官网](https://github.com/omab/python-social-auth)
* rauth:OAuth 1.0/a, 2.0, 和 Ofly 的 Python 库。[官网](https://github.com/litl/rauth)
* sanction:一个超级简单的 OAuth2 客户端实现。[官网](https://github.com/demianbrecht/sanction)
* 其他
* jose:JavaScript 对象签名和加密草案的实现。[官网](https://github.com/demonware/jose)
* PyJWT:JSON Web 令牌草案 01。[官网](https://github.com/jpadilla/pyjwt)
* python-jws:JSON Web 签名草案 02 的实现。[官网](https://github.com/brianloveswords/python-jws)
* python-jwt:一个用来生成和验证 JSON Web 令牌的模块。[官网](https://github.com/davedoesdev/python-jwt)


### 模板引擎

模板生成和词法解析的库和工具。

* [Jinja2](http://hao.jobbole.com/jinja2/):一个现代的,对设计师友好的模板引擎。[官网](https://github.com/pallets/jinja)
* Chameleon:一个 HTML/XML 模板引擎。 模仿了 ZPT(Zope Page Templates), 进行了速度上的优化。[官网](https://chameleon.readthedocs.org/en/latest/)
* Genshi:Python 模板工具,用以生成 web 感知的结果。[官网](https://genshi.edgewall.org/)
* Mako:Python 平台的超高速轻量级模板。[官网](http://www.makotemplates.org/)


### 队列

处理事件以及任务队列的库。

* celery:一个异步任务队列/作业队列,基于分布式消息传递。[官网](http://www.celeryproject.org/)
* huey:小型多线程任务队列。[官网](https://github.com/coleifer/huey)
* [mrq](http://hao.jobbole.com/mrq/):Mr. Queue -一个 Python 的分布式 worker 任务队列, 使用 Redis 和 gevent。[官网](https://github.com/pricingassistant/mrq)
* rq:简单的 Python 作业队列。[官网](http://python-rq.org/)
* simpleq:一个简单的,可无限扩张的,基于亚马逊 SQS 的队列。[官网](https://github.com/rdegges/simpleq)


### 搜索

对数据进行索引和执行搜索查询的库和软件。

* django-haystack:Django 模块化搜索。[官网](https://github.com/django-haystack/django-haystack)
* elasticsearch-py:Elasticsearch 的官方底层 Python 客户端。[官网](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html)
* elasticsearch-dsl-py:Elasticsearch 的官方高级 Python 客户端。[官网](https://github.com/elastic/elasticsearch-dsl-py) 
* solrpy:[solr](http://lucene.apache.org/solr/) 的 Python 客户端。[官网](https://github.com/edsu/solrpy)
* Whoosh:一个快速的纯 Python 搜索引擎库。[官网](http://whoosh.readthedocs.org/en/latest/)


### 动态消息

用来创建用户活动的库。

* django-activity-stream:从你的站点行为中生成通用活动信息流。[官网](https://github.com/justquick/django-activity-stream)
* Stream-Framework:使用 Cassandra 和 Redis 创建动态消息和通知系统。[官网](https://github.com/tschellenbach/Stream-Framework)



### 资源管理

管理、压缩、缩小网站资源的工具。

* django-compressor:将链接和内联的 JavaScript 或 CSS 压缩到一个单独的缓存文件中。[官网](https://github.com/django-compressor/django-compressor)
* django-storages:一个针对 Django 的自定义存储后端的工具集合。[官网](http://django-storages.readthedocs.org/en/latest/)
* fanstatic:打包、优化,并且把静态文件依赖作为 Python 的包来提供。[官网](http://www.fanstatic.org/en/latest/)
* File Conveyor:一个后台驻留的程序,用来发现和同步文件到 CDNs, S3 和 FTP。[官网](http://fileconveyor.org/)
* Flask-Assets:帮你将 web 资源整合到你的 Flask app 中。[官网](http://flask-assets.readthedocs.org/en/latest/)
* jinja-assets-compressor:一个 Jinja 扩展,用来编译和压缩你的资源。[官网](https://github.com/jaysonsantos/jinja-assets-compressor)
* webassets:为你的静态资源打包、优化和管理生成独一无二的缓存 URL。[官网](http://webassets.readthedocs.org/en/latest/)



### 缓存

缓存数据的库。

* Beaker:一个缓存和会话库,可以用在 web 应用和独立 Python 脚本和应用上。[官网](http://beaker.readthedocs.org/en/latest/)
* django-cache-machine:Django 模型的自动缓存和失效。[官网](https://github.com/django-cache-machine/django-cache-machine)
* django-cacheops:具有自动颗粒化事件驱动失效功能的 ORM。[官网](https://github.com/Suor/django-cacheops)
* django-viewlet:渲染模板,同时具有额外的缓存控制功能。[官网](https://github.com/5monkeys/django-viewlet)
* dogpile.cache:dogpile.cache 是 Beaker 的下一代替代品,由同一作者开发。[官网](http://dogpilecache.readthedocs.org/en/latest/)
* HermesCache:Python 缓存库,具有基于标签的失效和 dogpile effect 保护功能。[官网](https://pypi.python.org/pypi/HermesCache)
* johnny-cache:django 应用缓存框架。[官网](https://github.com/jmoiron/johnny-cache)
* pylibmc:[libmemcached](http://libmemcached.org/libMemcached.html) 接口的 Python 封装。[官网](https://github.com/lericson/pylibmc)




### 电子邮件

用来发送和解析电子邮件的库。

* django-celery-ses:带有 AWS SES 和 Celery 的 Django email 后端。[官网](https://github.com/StreetVoice/django-celery-ses)
* envelopes:供人类使用的电子邮件库。[官网](http://tomekwojcik.github.io/envelopes/)
* flanker:一个 email 地址和 Mime 解析库。[官网](https://github.com/mailgun/flanker)
* imbox:Python IMAP 库。[官网](https://github.com/martinrusev/imbox)
* inbox.py:Python SMTP 服务器。[官网](https://github.com/kennethreitz/inbox.py)
* inbox:一个开源电子邮件工具箱。[官网](https://github.com/nylas/sync-engine)
* lamson:Python 风格的 SMTP 应用服务器。[官网](https://github.com/zedshaw/lamson)
* mailjet:Mailjet API 实现,用来提供批量发送邮件,统计等功能。[官网](https://github.com/WoLpH/mailjet)
* marrow.mailer:高性能可扩展邮件分发框架。[官网](https://github.com/marrow/mailer)
* modoboa:一个邮件托管和管理平台,具有现代的、简约的 Web UI。[官网](https://github.com/tonioo/modoboa)
* pyzmail:创建,发送和解析电子邮件。[官网](http://www.magiksys.net/pyzmail/)
* Talon:Mailgun 库,用来抽取信息和签名。[官网](https://github.com/mailgun/talon)
* yagmail:yagmail是一个GMAIL / SMTP客户端,旨在使其尽可能简单地发送电子邮件。[官网](https://pypi.org/project/yagmail/)


### URL 处理

解析 URLs 的库

* furl:一个让处理 URL 更简单小型 Python 库。[官网](https://github.com/gruns/furl)
* purl:一个简单的,不可变的 URL 类,具有简洁的 API 来进行询问和处理。[官网](https://github.com/codeinthehole/purl)
* pyshorteners:一个纯 Python URL 缩短库。[官网](https://github.com/ellisonleao/pyshorteners)
* shorturl:生成短小 URL 和类似 bit.ly 短链的 Python 实现。[官网](https://github.com/Alir3z4/python-shorturl)
* webargs:一个解析 HTTP 请求参数的库,内置对流行 web 框架的支持,包括 Flask, Django, Bottle, Tornado 和 Pyramid。[官网](https://github.com/sloria/webargs)


处理 HTML 和 XML 的库。

* BeautifulSoup:以 Python 风格的方式来对 HTML 或 XML 进行迭代,搜索和修改。[官网](http://www.crummy.com/software/BeautifulSoup/bs4/doc/)
* bleach:一个基于白名单的 HTML 清理和文本链接库。[官网](http://bleach.readthedocs.org/en/latest/)
* cssutils:一个 Python 的 CSS 库。[官网](https://pypi.python.org/pypi/cssutils/)
* html5lib:一个兼容标准的 HTML 文档和片段解析及序列化库。[官网](https://github.com/html5lib/html5lib-python)
* lxml:一个非常快速,简单易用,功能齐全的库,用来处理 HTML 和 XML。[官网](http://lxml.de/)
* MarkupSafe:为 Python 实现 XML/HTML/XHTML 标记安全字符串。[官网](https://github.com/pallets/markupsafe)
* pyquery:一个解析 HTML 的库,类似 jQuery。[官网](https://github.com/gawel/pyquery)
* requests-html:人性化的,Pythonic 的 HTML 解析库。[官网](https://github.com/kennethreitz/requests-html)
* untangle:将 XML 文档转换为 Python 对象,使其可以方便的访问。[官网](https://github.com/stchris/untangle)
* xhtml2pdf:HTML/CSS 转 PDF 工具。[官网](https://github.com/xhtml2pdf/xhtml2pdf)
* xmltodict:像处理 JSON 一样处理 XML。[官网](https://github.com/martinblech/xmltodict)



### 硬件

用来对硬件进行编程的库。

* ino:操作 [Arduino](https://www.arduino.cc/) 的命令行工具。[官网](http://inotool.org/) 
* Pyro:Python 机器人编程库。[官网](http://pyrorobotics.com/)
* PyUserInput:跨平台的,控制鼠标和键盘的模块。[官网](https://github.com/SavinaRoja/PyUserInput)
* scapy:一个非常棒的操作数据包的库。[官网](https://github.com/secdev/scapy)
* wifi:一个 Python 库和命令行工具用来在 Linux 平台上操作 WiFi。[官网](https://wifi.readthedocs.org/en/latest/)
* Pingo:Pingo 为类似 Raspberry Pi,pcDuino, Intel Galileo 等设备提供统一的 API 用以编程。[官网](http://www.pingo.io/)



编辑器和 IDE 的插件

* Emacs
* Elpy:Emacs Python 开发环境。[官网](https://github.com/jorgenschaefer/elpy)
* Sublime Text
* SublimeJEDI:一个 Sublime Text 插件,用来使用超赞的自动补全库 Jedi。[官网](https://github.com/srusskih/SublimeJEDI)
* Anaconda:Anaconda 把你的 Sublime Text 3 变成一个功能齐全的 Python IDE。[官网](https://github.com/DamnWidget/anaconda)
* Vim
* [YouCompleteMe](http://hao.jobbole.com/youcompleteme/):引入基于 [Jedi](https://github.com/davidhalter/jedi) 的 Python 自动补全引擎。[官网](https://github.com/Valloric/YouCompleteMe)
* Jedi-vim:绑定 Vim 和 Jedi 自动补全库对 Python 进行自动补全。[官网](https://github.com/davidhalter/jedi-vim)
* Python-mode:将 Vim 变成 Python IDE 的一款多合一插件。[官网](https://github.com/klen/python-mode)
* Visual Studio
* PTVS:Visual Studio 的 Python 工具。[官网](https://github.com/Microsoft/PTVS)




### 学习指南
* [Scipy-lecture-notes](http://hao.jobbole.com/scipy-lecture-notes/):如何用 Python 来做学术?[官网](https://github.com/scipy-lectures/scipy-lecture-notes)
* [SScientific-python-lectures](http://hao.jobbole.com/scientific-python-lectures/):Python 科学计算的资料。[官网](https://github.com/jrjohansson/scientific-python-lectures)
* [Mario-Level-1](http://hao.jobbole.com/mario-level-1/):用 Python 和 Pygame 写的超级马里奥第一关。[官网](https://github.com/justinmeister/Mario-Level-1)
* [Python Koans](http://hao.jobbole.com/python-koans/):Python 的交互式学习工具。[官网](https://github.com/gregmalcolm/python_koans)
* [Minecraft](http://hao.jobbole.com/minecraft-python/):用 python 写的 Minecraft 游戏。[官网](https://github.com/fogleman/Minecraft)
* [pycrumbs](http://hao.jobbole.com/python-pycrumbs/):Python 资源大全。[官网](https://github.com/kirang89/pycrumbs/blob/master/pycrumbs.md)
* [python-patterns](http://hao.jobbole.com/python-patterns/):使用 python 实现设计模式。[官网](https://github.com/faif/python-patterns)
* [Projects](http://hao.jobbole.com/python-projects/):Python 项目大集合。[官网](https://github.com/karan/Projects)
* [The Hitchhiker’s Guide to Python](http://hao.jobbole.com/the-hitchhikers-guide-to-python/):旅行者的 Python 学习指南。[官网](http://docs.python-guide.org/en/latest/)
* [Code Like a Pythonista: Idiomatic Python](http://top.jobbole.com/18767/):如何像 Python 高手(Pythonista)一样编程。[官网](http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html)




### 网站

* [r/Python](https://www.reddit.com/r/python)
* [CoolGithubProjects](https://www.coolgithubprojects.com/)
* [Django Packages](https://www.djangopackages.com/)
* [Full Stack Python](http://www.fullstackpython.com/)
* [Python 3 Wall of Superpowers](http://python3wos.appspot.com/)
* [Python Hackers](http://pythonhackers.com/open-source/)
* [Python ZEEF](https://python.zeef.com/alan.richmond)
* [Trending Python repositories on GitHub today](https://github.com/trending?l=python)
* [PyPI Ranking](http://pypi-ranking.info/alltime)



### 代码质量

* Codacy:自动化代码审查,更加快速的发布高质量代码。对于开源项目是免费的。[官网](https://www.codacy.com/)
* QuantifiedCode:一个数据驱动、自动、持续的代码审查工具。[官网](https://www.quantifiedcode.com/)



### 自动聊天工具

用于开发聊天机器人的库

*   Errbot:最简单和最流行的聊天机器人用来实现自动聊天工具。[官网](http://errbot.io/en/latest/)

没有评论:

发表评论