2016-03-15 10:38:17 +00:00
# Python 资源大全中文版
2015-11-03 09:53:25 +00:00
2016-03-15 10:38:17 +00:00
我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列的资源整理。[awesome-python](https://github.com/vinta/awesome-python) 是 vinta 发起维护的 Python 资源列表, 内容包括: Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日志、代码分析等。由伯乐在线持续更新。
2015-11-03 09:53:25 +00:00
2016-03-15 10:38:17 +00:00
Awesome 系列虽然挺全,但基本只对收录的资源做了极为简要的介绍,如果有更详细的中文介绍,对相应开发者的帮助会更大。这也是我们发起这个开源项目的初衷。
* * *
### 我们要做什么?
- 基于 awesome-python 列表,我们将对其中的各个资源项进行编译整理。此外还将从其他来源补充好资源。
- 整理后的内容,将收录在[伯乐在线资源频道](http://hao.jobbole.com/)。可参考已整理的内容:
- 《[Scrapy: Python的爬虫框架](http://hao.jobbole.com/python-scrapy/)》
- 《[Flask: 一个使用Python编写的轻量级Web应用框架](http://hao.jobbole.com/flask/)》
* * *
### 如何参与本项目?
从下面的目录来看,本项目的工作量小不了,所以非常期待能有更多程序员一起来参与。
不过加入前,有几个小要求:
* 英文还不错,能读懂英文并用自己的话复述;
* 在用 Python;
如有兴趣,请加 QQ: 50872495。加 Q 时请注明「Python大全」
* * *
### 本项目的参与者
- 维护者:
2016-04-02 07:08:25 +00:00
- 贡献者:[艾凌风](https://github.com/hanxiaomax)、Namco、[Daetalus](https://github.com/Daetalus)、[黄利民](http://www.jobbole.com/members/huanglimin/)、[atupal](http://www.jobbole.com/members/atupal/)、[rainbow](http://www.jobbole.com/members/rainbow/)
2016-03-15 10:38:17 +00:00
注:名单不分排名,不定期补充更新
* * *
### 环境管理
管理 Python 版本和环境的工具
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 包管理
管理包和依赖的工具。
2016-04-02 06:58:05 +00:00
* pip: Python 包和依赖关系管理工具。[官网](https://pip.pypa.io/)
* pip-tools: 保证 Python 包依赖关系更新的一组工具。[官网](https://github.com/nvie/pip-tools)
* conda: 跨平台, Python 二进制包管理工具。[官网](https://github.com/conda/conda/)
* Curdling: 管理 Python 包的命令行工具。[官网](http://clarete.li/curdling/)
* wheel: Python 分发的新标准,意在取代 eggs。[官网](http://pythonwheels.com/)
2016-03-15 10:38:17 +00:00
### 包仓库
本地 PyPI 仓库服务和代理。
2016-04-02 06:58:05 +00:00
* warehouse: 下一代 PyPI。[官网](https://github.com/pypa/warehouse)
* Warehouse: PyPA 提供的 PyPI 镜像工具。[官网](https://warehouse.python.org/) [bandersnatch](https://bitbucket.org/pypa/bandersnatch)
* devpi: PyPI 服务和打包/测试/分发工具。[官网](http://doc.devpi.net/)
* localshop: 本地 PyPI 服务(自定义包并且自动对 PyPI 镜像)。[官网](https://github.com/mvantellingen/localshop)
2016-03-15 10:38:17 +00:00
### 分发
打包为可执行文件以便分发。
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 构建工具
将源码编译成软件。
2016-04-02 06:58:05 +00:00
* 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/p/fabricate/)
* PlatformIO: 多平台命令行构建工具。[官网](https://github.com/ivankravets/platformio)
* PyBuilder: 纯 Python 实现的持续化构建工具。[官网](https://github.com/pybuilder/pybuilder)
* SCons: 软件构建工具。[官网](http://www.scons.org/)
2016-03-15 10:38:17 +00:00
### 交互式解析器
交互式 Python 解析器。
2016-04-02 06:58:05 +00:00
* IPython: 功能丰富的工具, 非常有效的使用交互式 Python。[官网](https://github.com/ipython/ipython)
* bpython: 界面丰富的 Python 解析器。[官网](http://bpython-interpreter.org/)
* ptpython: 高级交互式Python解析器, 构建于[python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit) 之上。[官网](https://github.com/jonathanslenders/ptpython)
2016-03-15 10:38:17 +00:00
### 文件
文件管理和 MIME( 多用途的网际邮件扩充协议) 类型检测。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 日期和时间
操作日期和时间的类库。
2016-04-02 06:58:05 +00:00
* 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/)
* moment: 一个用来处理时间和日期的Python库。灵感来自于Moment.js。[官网](https://github.com/zachwill/moment)
* PyTime: 一个简单易用的Python模块, 用于通过字符串来操作日期/时间。[官网](https://github.com/shnode/PyTime)
* pytz: 现代以及历史版本的世界时区定义。将时区数据库引入Python。[官网](https://launchpad.net/pytz)
* when.py: 提供用户友好的函数来帮助用户进行常用的日期和时间操作。[官网](https://github.com/dirn/When.py)
2016-03-15 10:38:17 +00:00
### 文本处理
用于解析和操作文本的库。
* 通用
2016-04-02 06:58:05 +00:00
* 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)
* yfiglet-figlet: [pyfiglet -figlet](https://github.com/pwaller/pyfiglet) 的 Python实现。
* shortuuid: 一个生成器库, 用以生成简洁的, 明白的, URL 安全的 UUID。[官网](https://github.com/stochastic-technologies/shortuuid)
* unidecode: Unicode 文本的 ASCII 转换形式 。[官网](https://pypi.python.org/pypi/Unidecode)
* uniout: 打印可读的字符, 而不是转义的字符串。[官网](https://github.com/moskytw/uniout)
* xpinyin: 一个用于把汉字转换为拼音的库。[官网](https://github.com/lxneng/xpinyin)
2016-03-15 10:38:17 +00:00
* Slug化
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* 解析器
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 特殊文本格式处理
一些用来解析和操作特殊文本格式的库。
* 通用
2016-04-02 06:58:05 +00:00
* tablib: 一个用来处理中表格数据的模块。[官网](https://github.com/kennethreitz/tablib)
2016-03-15 10:38:17 +00:00
* Office
2016-04-02 06:58:05 +00:00
* Marmir: 把输入的Python 数据结构转换为电子表单。[官网](https://github.com/brianray/mm)
* openpyxl: 一个用来读写 Excel 2010 xlsx/xlsm/xltx/xltm 文件的库。[官网](https://openpyxl.readthedocs.org/en/latest/)
* python-docx: 读取, 查询以及修改 Microsoft Word 2007/2008 docx 文件。[官网](https://github.com/python-openxml/python-docx)
* 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: 读写 Excel 文件的数据和格式信息。[官网](https://github.com/python-excel/xlwt) / [xlrd ](https://github.com/python-excel/xlrd )
* relatorio: 模板化OpenDocument 文件。[官网](http://relatorio.tryton.org/)
2016-03-15 10:38:17 +00:00
* PDF
2016-04-02 06:58:05 +00:00
* PDFMiner: 一个用于从PDF文档中抽取信息的工具。[官网](https://github.com/euske/pdfminer)
* PyPDF2: 一个可以分割, 合并和转换 PDF 页面的库。[官网](https://github.com/mstamy2/PyPDF2)
* ReportLab: 快速创建富文本 PDF 文档。[官网](http://www.reportlab.com/opensource/)
2016-03-15 10:38:17 +00:00
* Markdown
2016-04-02 06:58:05 +00:00
* Mistune: 快速并且功能齐全的纯 Python 实现的 Markdown 解析器。[官网](https://github.com/lepture/mistune)
* Python-Markdown: John Gruber’ s Markdown 的 Python 版实现。[官网](https://github.com/waylan/Python-Markdown)
2016-03-15 10:38:17 +00:00
* YAML
2016-04-02 06:58:05 +00:00
* PyYAML: Python 版本的 YAML 解析器。[官网](http://pyyaml.org/)
2016-03-15 10:38:17 +00:00
* CSV
2016-04-02 06:58:05 +00:00
* csvkit: 用于转换和操作 CSV 的工具。[官网](https://github.com/onyxfish/csvkit)
2016-03-15 10:38:17 +00:00
* Archive
2016-04-02 06:58:05 +00:00
* unp: 一个用来方便解包归档文件的命令行工具。[官网](https://github.com/mitsuhiko/unp)
2016-03-15 10:38:17 +00:00
### 自然语言处理
用来处理人类语言的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 文档
用以生成项目文档的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 配置
用来保存和解析配置的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 命令行工具
用于创建命令行程序的库。
* 命令行程序开发
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* 生产力工具
2016-04-02 06:58:05 +00:00
* aws-cli: Amazon Web Services 的通用命令行界面。[官网](https://github.com/aws/aws-cli)
* bashplotlib: 在终端中进行基本绘图。[官网](https://github.com/glamp/bashplotlib)
* caniusepython3: 判断是哪个项目妨碍你你移植到 Python 3。[官网](https://github.com/brettcannon/caniusepython3)
* cookiecutter: 从 cookiecutters( 项目模板) 创建项目的一个命令行工具。[官网](https://github.com/audreyr/cookiecutter)
* doitlive: 一个用来在终端中进行现场演示的工具。[官网](https://github.com/sloria/doitlive)
* 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)
2016-03-15 10:38:17 +00:00
### 下载器
用来进行下载的库.
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 图像处理
用来操作图像的库.
2016-04-02 06:58:05 +00:00
* pillow: Pillow 是一个更加易用版的 [PIL ](http://www.pythonware.com/products/pil/ )。[官网](http://pillow.readthedocs.org/en/latest/)
* hmap: 图像直方图映射。[官网](https://github.com/rossgoodwin/hmap)
* imgSeek: 一个使用视觉相似性搜索一组图片集合的项目。[官网](http://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)
2016-03-15 10:38:17 +00:00
### OCR
光学字符识别库。
2016-04-02 06:58:05 +00:00
* pyocr: Tesseract 和 Cuneiform 的一个封装(wrapper)。[官网](https://github.com/jflesch/pyocr)
* pytesseract: [Google Tesseract OCR](https://github.com/tesseract-ocr) 的另一个封装(wrapper)。[官网](https://github.com/madmaze/pytesseract)
2016-03-15 10:38:17 +00:00
* python-tesseract - [Google Tesseract OCR](https://github.com/tesseract-ocr) 的一个包装类。
### 音频
用来操作音频的库
2016-04-02 06:58:05 +00:00
* 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: 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/)
2016-03-15 10:38:17 +00:00
### Video
用来操作视频和GIF的库。
2016-04-02 06:58:05 +00:00
* moviepy: 一个用来进行基于脚本的视频编辑模块, 适用于多种格式, 包括动图 GIFs。[官网](http://zulko.github.io/moviepy/)
* scikit-video: SciPy 视频处理常用程序。[官网](https://github.com/aizvorski/scikit-video)
2016-03-15 10:38:17 +00:00
### 地理位置
地理编码地址以及用来处理经纬度的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### HTTP
使用HTTP的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 数据库
Python实现的数据库。
2016-04-02 06:58:05 +00:00
* pickleDB: 一个简单, 轻量级键值储存数据库。[官网](https://pythonhosted.org/pickleDB/)
* PipelineDB: 流式 SQL 数据库。[官网](https://www.pipelinedb.com/)
* TinyDB: 一个微型的, 面向文档型数据库。[官网](https://github.com/msiemens/tinydb)
* ZODB: 一个 Python 原生对象数据库。一个键值和对象图数据库。[官网](http://www.zodb.org/en/latest/)
2016-03-15 10:38:17 +00:00
### 数据库驱动
用来连接和操作数据库的库。
2016-04-02 06:58:05 +00:00
* ySQL: [awesome-mysql](http://shlomi-noach.github.io/awesome-mysql/)系列
* mysql-python: Python 的 MySQL 数据库连接器。[官网](http://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)
2016-03-15 10:38:17 +00:00
* PostgreSQL
2016-04-02 06:58:05 +00:00
* psycopg2: Python 中最流行的 PostgreSQL 适配器。[官网](http://initd.org/psycopg/)
* queries: psycopg2 库的封装,用来和 PostgreSQL 进行交互。[官网](https://github.com/gmr/queries)
* txpostgres: 基于 Twisted 的异步 PostgreSQL 驱动。[官网](http://txpostgres.readthedocs.org/en/latest/)
2016-03-15 10:38:17 +00:00
* 其他关系型数据库
2016-04-02 06:58:05 +00:00
* apsw: 另一个 Python SQLite封装。[官网](http://rogerbinns.github.io/apsw/)
* dataset: 在数据库中存储Python字典
* pymssql: 一个简单的Microsoft SQL Server数据库接口。[官网](http://www.pymssql.org/en/latest/)
2016-03-15 10:38:17 +00:00
* NoSQL 数据库
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### ORM
实现对象关系映射或数据映射技术的库。
* 关系型数据库
2016-04-02 06:58:05 +00:00
* Django Models: Django 的一部分。[官网](https://docs.djangoproject.com/en/dev/topics/db/models/)
* SQLAlchemy: Python SQL 工具以及对象关系映射工具。[官网](http://www.sqlalchemy.org/)
2016-03-15 10:38:17 +00:00
* [awesome-sqlalchemy ](https://github.com/dahlia/awesome-sqlalchemy )系列
2016-04-02 06:58:05 +00:00
* Peewee: 一个小巧, 富有表达力的 ORM。[官网](https://github.com/coleifer/peewee)
* PonyORM: 提供面向生成器的 SQL 接口的 ORM。[官网](https://ponyorm.com/)
* python-sql: 编写 Python 风格的 SQL 查询。[官网](https://pypi.python.org/pypi/python-sql)
2016-03-15 10:38:17 +00:00
* NoSQL 数据库
2016-04-02 06:58:05 +00:00
* django-mongodb-engine: Django MongoDB 后端。[官网](https://github.com/django-nonrel/mongodb-engine)
* PynamoDB: [Amazon DynamoDB](https://aws.amazon.com/dynamodb/) 的一个 Python 风格接口。[官网](https://github.com/jlafon/PynamoDB)
* flywheel: Amazon DynamoDB 的对象映射工具。[官网](https://github.com/mathcamp/flywheel)
* MongoEngine: 一个Python 对象文档映射工具,用于 MongoDB。[官网](http://mongoengine.org/)
* hot-redis: 为 Redis 提供 Python 丰富的数据类型。[官网](https://github.com/stephenmcd/hot-redis)
* redisco: 一个 Python 库,提供可以持续存在在 Redis 中的简单模型和容器。[官网](https://github.com/kiddouk/redisco)
2016-03-15 10:38:17 +00:00
* 其他
2016-04-02 06:58:05 +00:00
* butterdb: Google Drive 电子表格的 Python ORM。[官网](https://github.com/Widdershin/butterdb)
2016-03-15 10:38:17 +00:00
### Web 框架
2016-04-02 07:08:25 +00:00
全栈 Web 框架。
2016-03-15 10:38:17 +00:00
2016-04-02 07:08:25 +00:00
* [Django ](http://hao.jobbole.com/django/ ): Python 界最流行的 web 框架。[官网](https://www.djangoproject.com/)
2016-03-15 10:38:17 +00:00
* [awesome-django ](https://github.com/rosarior/awesome-django )系列
2016-04-02 06:58:05 +00:00
* Flask: 一个 Python 微型框架。[官网](http://flask.pocoo.org/)
2016-03-15 10:38:17 +00:00
* [awesome-flask ](https://github.com/rosarior/awesome-django )系列
2016-04-02 06:58:05 +00:00
* yramid: 一个小巧, 快速, 接地气的开源Python web 框架。
2016-03-15 10:38:17 +00:00
* [awesome-pyramid ](https://github.com/uralbash/awesome-pyramid )系列
2016-04-02 06:58:05 +00:00
* 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: 一个 Python 的 web 框架,既简单,又强大。[官网](http://webpy.org/)
* web2py: 一个全栈 web 框架和平台,专注于简单易用。[官网](http://www.web2py.com/)
* Tornado: 一个web 框架和异步网络库。[官网](http://www.tornadoweb.org/en/latest/)
2016-03-15 10:38:17 +00:00
### 权限
允许或拒绝用户访问数据或功能的库。
2016-04-02 06:58:05 +00:00
* Carteblanche: Module to align code with thoughts of users and designers. Also magically handles navigation and permissions.[官网](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)
2016-03-15 10:38:17 +00:00
### CMS
内容管理系统
2016-04-02 06:58:05 +00:00
* 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/)
2016-04-02 07:04:24 +00:00
* [Wagtail ](http://hao.jobbole.com/wagtail/ ):一个 Django 内容管理系统。[官网](https://wagtail.io/)
2016-04-02 06:58:05 +00:00
* Widgy: 最新的 CMS 框架,基于 Django。[官网](https://wid.gy/)
2016-03-15 10:38:17 +00:00
### 电子商务
用于电子商务以及支付的框架和库。
2016-04-02 06:58:05 +00:00
* 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: 货币类库with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution.[官网](https://github.com/carlospalol/money)
* python-currencies: 显示货币格式以及它的数值。[官网](https://github.com/Alir3z4/python-currencies)
2016-03-15 10:38:17 +00:00
### RESTful API
用来开发RESTful APIs的库
* Django
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* Flask
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* Pyramid
2016-04-02 06:58:05 +00:00
* cornice: 一个Pyramid 的 REST 框架 。[官网](https://cornice.readthedocs.org/en/latest/)
2016-03-15 10:38:17 +00:00
* 与框架无关的
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 验证
实现验证方案的库。
* OAuth
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* 其他
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 模板引擎
模板生成和词法解析的库和工具。
2016-04-02 06:58:05 +00:00
* Jinja2: 一个现代的, 对设计师友好的模板引擎。[官网](https://github.com/mitsuhiko/jinja2)
* Chameleon: 一个 HTML/XML 模板引擎。 模仿了 ZPT( Zope Page Templates) , 进行了速度上的优化。[官网](https://chameleon.readthedocs.org/en/latest/)
* Genshi: Python 模板工具,用以生成 web 感知的结果。[官网](http://genshi.edgewall.org/)
* Mako: Python 平台的超高速轻量级模板。[官网](http://www.makotemplates.org/)
2016-03-15 10:38:17 +00:00
### Queue
处理事件以及任务队列的库。
2016-04-02 06:58:05 +00:00
* celery: 一个异步任务队列/作业队列,基于分布式消息传递。[官网](http://www.celeryproject.org/)
* huey: 小型多线程任务队列。[官网](https://github.com/coleifer/huey)
* 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)
2016-03-15 10:38:17 +00:00
### 搜索
对数据进行索引和执行搜索查询的库和软件。
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 动态消息
用来创建用户活动的库。
2016-04-02 06:58:05 +00:00
* django-activity-stream: 从你的站点行为中生成通用活动信息流。[官网](https://github.com/justquick/django-activity-stream)
* Stream-Framework: 使用 Cassandra 和 Redis 创建动态消息和通知系统。[官网](https://github.com/tschellenbach/Stream-Framework)
2016-03-15 10:38:17 +00:00
### 资源管理
管理、压缩、缩小网站资源的工具。
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 缓存
缓存数据的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 电子邮件
用来发送和解析电子邮件的库。
2016-04-02 06:58:05 +00:00
* 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/marrow.mailer)
* modoboa: 一个邮件托管和管理平台, 具有现代的、简约的 Web UI。[官网](https://github.com/tonioo/modoboa)
* pyzmail: 创建, 发送和解析电子邮件。[官网](http://www.magiksys.net/pyzmail/)
* Talon: Mailgun 库,用来抽取信息和签名。[官网](https://github.com/mailgun/talon)
2016-03-15 10:38:17 +00:00
### 国际化
用来进行国际化的库。
2016-04-02 06:58:05 +00:00
* Babel: 一个Python 的国际化库。[官网](http://babel.pocoo.org/en/latest/)
* Korean: 一个韩语词态库。[官网](https://korean.readthedocs.org/en/latest/)
2016-03-15 10:38:17 +00:00
### URL处理
解析URLs的库
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### HTML处理
处理 HTML和XML的库。
2016-04-02 06:58:05 +00:00
* 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/mitsuhiko/markupsafe)
* pyquery: 一个解析 HTML 的库,类似 jQuery。[官网](https://github.com/gawel/pyquery)
* 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)
2016-03-15 10:38:17 +00:00
爬取网络站点的库
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 网页内容提取
用于进行网页内容提取的库。
2016-04-02 06:58:05 +00:00
* 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: 使用 Python 进行新闻提取,文章提取以及内容策展。[官网](https://github.com/codelucas/newspaper)
* opengraph: 一个用来解析开放内容协议(Open Graph Protocol)的 Python模块。[官网](https://github.com/erikriver/opengraph)
* 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)
2016-03-15 10:38:17 +00:00
### 表单
进行表单操作的库。
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 数据验证
数据验证库。多用于表单验证。
2016-04-02 06:58:05 +00:00
* Cerberus: A mappings-validator with a variety of rules, normalization-features and simple customization that uses a pythonic schema-definition.[官网](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)
2016-03-15 10:38:17 +00:00
### 反垃圾技术
帮助你和电子垃圾进行战斗的库。
2016-04-02 06:58:05 +00:00
* django-simple-captcha: 一个简单、高度可定制的Django 应用, 可以为任何Django表单添加验证码。[官网](https://github.com/mbi/django-simple-captcha)
* django-simple-spam-blocker: 一个用于Django的简单的电子垃圾屏蔽工具。[官网](https://github.com/moqada/django-simple-spam-blocker)
2016-03-15 10:38:17 +00:00
### 标记
用来进行标记的库。
2016-04-02 06:58:05 +00:00
* django-taggit: 简单的 Django 标记工具。[官网](https://github.com/alex/django-taggit)
2016-03-15 10:38:17 +00:00
### 管理面板
管理界面库。
2016-04-02 06:58:05 +00:00
* Ajenti: 一个你的服务器值得拥有的管理面板。[官网](https://github.com/Eugeny/ajenti)
* django-suit: Django 管理界面的一个替代品 (仅对于非商业用途是免费的)。[官网](http://djangosuit.com/)
* django-xadmin: Django admin 的一个替代品,具有很多不错的功能。[官网](https://github.com/sshwsfc/django-xadmin)
* flask-admin: 一个用于 Flask 的简单可扩展的管理界面框架。[官网](https://github.com/flask-admin/flask-admin)
* flower: 一个对 Celery 集群进行实时监控和提供 web 管理界面的工具。[官网](https://github.com/mher/flower)
* Grappelli: Django 管理界面的一个漂亮的皮肤。[官网](http://grappelliproject.com/)
* Wooey: 一个 Django 应用,可以为 Python 脚本创建 web 用户界面。[官网](https://github.com/wooey/wooey)
2016-03-15 10:38:17 +00:00
### 静态站点生成器
静态站点生成器是一个软件, 它把文本和模板作为输入, 然后输出HTML文件。
2016-04-02 06:58:05 +00:00
* Pelican: 使用 Markdown 或 ReST 来处理内容, Jinja 2 来制作主题。支持 DVCS, Disqus.。AGPL 许可。[官网](http://blog.getpelican.com/)
* Cactus: 为设计师设计的静态站点生成器。[官网](https://github.com/koenbok/Cactus/)
* Hyde: 基于 Jinja2 的静态站点生成器。[官网](http://hyde.github.io/)
* Nikola: 一个静态网站和博客生成器。[官网](https://www.getnikola.com/)
* Tinkerer: Tinkerer 是一个博客引擎/静态站点生成器, 由Sphinx驱动。[官网](http://tinkerer.me/)
* Lektor: 一个简单易用的静态 CMS 和博客引擎。[官网](https://www.getlektor.com/)
2016-03-15 10:38:17 +00:00
### 进程
操作系统进程启动及通信库。
2016-04-02 06:58:05 +00:00
* envoy: 比 Python [subprocess ](https://docs.python.org/2/library/subprocess.html ) 模块更人性化。[官网](https://github.com/kennethreitz/envoy)
* sarge: 另一 种 subprocess 模块的封装。[官网](http://sarge.readthedocs.org/en/latest/)
* sh: 一个完备的 subprocess 替代库。[官网](https://github.com/amoffat/sh)
2016-03-15 10:38:17 +00:00
### 并发和并行
用以进行并发和并行操作的库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 网络
用于网络编程的库。
2016-04-02 06:58:05 +00:00
* asyncio: (Python 标准库) 异步 I/O, 事件循环, 协程以及任务。[官网](https://docs.python.org/3/library/asyncio.html)
* 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/)
* txZMQ: 基于 Twisted 的 ZeroMQ 消息库的 Python 封装。[官网](https://github.com/smira/txZMQ)
2016-03-15 10:38:17 +00:00
### WebSocket
帮助使用WebSocket的库。
2016-04-02 06:58:05 +00:00
* AutobahnPython: 给 Python 、使用的 WebSocket & WAMP 基于 Twisted 和 [asyncio ](https://docs.python.org/3/library/asyncio.html )。[官网](https://github.com/crossbario/autobahn-python)
* Crossbar: 开源统一应用路由(Websocket & WAMP for Python on Autobahn).[官网](https://github.com/crossbario/crossbar/)
* django-socketio: 给 Django 用的 WebSockets。[官网](https://github.com/stephenmcd/django-socketio)
* WebSocket-for-Python: 为Python2/3 以及 PyPy 编写的 WebSocket 客户端和服务器库。[官网](https://github.com/Lawouach/WebSocket-for-Python)
2016-03-15 10:38:17 +00:00
### WSGI 服务器
兼容 WSGI 的 web 服务器
2016-04-02 06:58:05 +00:00
* gunicorn: Pre-forked, 部分是由 C 语言编写的。[官网](https://pypi.python.org/pypi/gunicorn)
* uwsgi: uwsgi 项目的目的是开发一组全栈工具,用来建立托管服务, 由 C 语言编写。[官网](https://uwsgi-docs.readthedocs.org/en/latest/)
* bjoern: 异步, 非常快速, 由 C 语言编写。[官网](https://pypi.python.org/pypi/bjoern)
* fapws3: 异步 (仅对于网络端),由 C 语言编写。[官网](http://www.fapws.org/)
* meinheld: 异步, 部分是由 C 语言编写的。[官网](https://pypi.python.org/pypi/meinheld)
* netius: 异步, 非常快速。[官网](https://github.com/hivesolutions/netius)
* paste: 多线程, 稳定, 久经考验。[官网](http://pythonpaste.org/)
* rocket: 多线程。[官网](https://pypi.python.org/pypi/rocket)
* waitress: 多线程, 是它驱动着 Pyramid 框架。[官网](https://waitress.readthedocs.org/en/latest/)
* Werkzeug: 一个 WSGI 工具库,驱动着 Flask ,而且可以很方便大嵌入到你的项目中去。[官网](http://werkzeug.pocoo.org/)
2016-03-15 10:38:17 +00:00
### RPC 服务器
兼容 RPC 的服务器。
2016-04-02 06:58:05 +00:00
* SimpleJSONRPCServer: 这个库是 JSON-RPC 规范的一个实现。[官网](https://github.com/joshmarshall/jsonrpclib/)
* SimpleXMLRPCServer: (Python 标准库) 简单的 XML-RPC 服务器实现,单线程。[官网](https://docs.python.org/2/library/simplexmlrpcserver.html)
* zeroRPC: zerorpc 是一个灵活的 RPC 实现,基于 ZeroMQ 和 MessagePack。[官网](https://github.com/0rpc/zerorpc-python)
2016-03-15 10:38:17 +00:00
### 密码学
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 图形用户界面
用来创建图形用户界面程序的库。
2016-04-02 06:58:05 +00:00
* 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: 一个用来创建自然用户交互( 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: P跨平台用户界面框架 [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)
2016-03-15 10:38:17 +00:00
### 游戏开发
超赞的游戏开发库。
2016-04-02 06:58:05 +00:00
* Cocos2d: cocos2d 是一个用来开发 2D 游戏, 示例和其他图形/交互应用的框架。基于 pyglet。[官网](http://cocos2d.org/)
* Panda3D: 由迪士尼开发的 3D 游戏引擎, 并由卡内基梅陇娱乐技术中心负责维护。使用C++编写, 针对 Python 进行了完全的封装。[官网](https://www.panda3d.org/)
* Pygame: Pygame 是一组 Python 模块,用来编写游戏。[官网](http://www.pygame.org/news.html)
* PyOgre: Ogre 3D 渲染引擎的 Python 绑定,可以用来开发游戏和仿真程序等任何 3D 应用。[官网](http://www.ogre3d.org/tikiwiki/PyOgre)
* PyOpenGL: OpenGL 的 Python 绑定及其相关 APIs。[官网](http://pyopengl.sourceforge.net/)
* PySDL2: SDL2 库的封装,基于 ctypes。[官网](http://pysdl2.readthedocs.org/en/latest/)
* RenPy: 一个视觉小说( visual novel) 引擎。[官网](http://www.renpy.org/)
2016-03-15 10:38:17 +00:00
### 日志
用来生成和操作日志的库。
2016-04-02 06:58:05 +00:00
* logging: (Python 标准库) 为 Python 提供日志功能。[官网](https://docs.python.org/2/library/logging.html)
* logbook: Logging 库的替代品。[官网](http://pythonhosted.org/Logbook/)
* Eliot: 为复杂的和分布式系统创建日志。[官网](https://eliot.readthedocs.org/en/latest/)
* Raven: Sentry的 Python 客户端。[官网](http://raven.readthedocs.org/en/latest/)
* Sentry: 实时记录和收集日志的服务器。[官网](https://pypi.python.org/pypi/sentry)
2016-03-15 10:38:17 +00:00
### Testing
进行代码库测试和生成测试数据的库。
* 测试框架
2016-04-02 06:58:05 +00:00
* unittest: (Python 标准库) 单元测试框架。[官网](https://docs.python.org/2/library/unittest.html)
* nose: nose 扩展了 unittest 的功能。[官网](https://nose.readthedocs.org/en/latest/)
* contexts: 一个 Python 3.3+ 的 BDD 框架。受到C#
* hypothesis: Hypothesis 是一个基于先进的 Quickcheck 风格特性的测试库。[官网](https://github.com/DRMacIver/hypothesis)
* mamba: Python 的终极测试工具, 拥护BDD。[官网](http://nestorsalceda.github.io/mamba/)
* PyAutoGUI: PyAutoGUI 是一个人性化的跨平台 GUI 自动测试模块。[官网](https://github.com/asweigart/pyautogui)
* pyshould: Should 风格的断言,基于 [PyHamcrest ](https://github.com/hamcrest/PyHamcrest )。[官网](https://github.com/drslump/pyshould)
* pytest: 一个成熟的全功能 Python 测试工具。[官网](http://pytest.org/latest/)
* green: 干净, 多彩的测试工具。[官网](https://github.com/CleanCut/green)
* pyvows: BDD 风格的测试工具, 受Vows.js的启发。[官网](http://heynemann.github.io/pyvows/)-
* Robot Framework: 一个通用的自动化测试框架。[官网](https://github.com/robotframework/robotframework)
2016-03-15 10:38:17 +00:00
* Web 测试
2016-04-02 06:58:05 +00:00
* Selenium: [Selenium](http://www.seleniumhq.org/) WebDriver 的 Python 绑定。[官网](https://pypi.python.org/pypi/selenium)
* locust: 使用 Python 编写的,可扩展的用户加载测试工具。[官网](https://github.com/locustio/locust)
* sixpack: 一个和语言无关的 A/B 测试框架。[官网](https://github.com/seatgeek/sixpack)
* splinter: 开源的 web 应用测试工具。[官网](https://splinter.readthedocs.org/en/latest/)
2016-03-15 10:38:17 +00:00
* Mock测试
2016-04-02 06:58:05 +00:00
* mock: (Python 标准库) 一个用于伪造测试的库。[官网](https://docs.python.org/3/library/unittest.mock.html)
* doublex: Python 的一个功能强大的 doubles 测试框架。[官网](https://pypi.python.org/pypi/doublex)
* freezegun: 通过伪造日期模块来生成不同的时间。[官网](https://github.com/spulec/freezegun)
* httmock: 针对 Python 2.6+ 和 3.2+ 生成 伪造请求的库。[官网](https://github.com/patrys/httmock)
* httpretty: Python 的 HTTP 请求 mock 工具。[官网](http://falcao.it/HTTPretty/)
* responses: 伪造 Python 中的 requests 库的一个通用库。[官网](https://github.com/getsentry/responses)
* VCR.py: 在你的测试中记录和重放 HTTP 交互。[官网](https://github.com/kevin1024/vcrpy)
2016-03-15 10:38:17 +00:00
* 对象工厂
2016-04-02 06:58:05 +00:00
* factoryboy: 一个 Python 用的测试固件 (test fixtures) 替代库。[官网](https://github.com/rbarrois/factoryboy)
* mixer: 另外一个测试固件 (test fixtures) 替代库,支持 Django, Flask, SQLAlchemy, Peewee 等。[官网](https://github.com/klen/mixer)
* modelmommy: 为 Django 测试创建随机固件[官网](https://github.com/vandersonmota/modelmommy)
2016-03-15 10:38:17 +00:00
* 代码覆盖率
2016-04-02 06:58:05 +00:00
* coverage: 代码覆盖率测量。[官网](https://pypi.python.org/pypi/coverage)
2016-03-15 10:38:17 +00:00
* 伪数据
2016-04-02 06:58:05 +00:00
* faker: 一个 Python 库,用来生成伪数据。[官网](http://www.joke2k.net/faker/)
* fake2db: 伪数据库生成器。[官网](https://github.com/emirozer/fake2db)
* radar: 生成随机的日期/时间。[官网](https://pypi.python.org/pypi/radar)
2016-03-15 10:38:17 +00:00
* 错误处理
2016-04-02 06:58:05 +00:00
* FuckIt.py: FuckIt.py 使用最先进的技术来保证你的 Python 代码无论对错都能继续运行。[官网](https://github.com/ajalt/fuckitpy)
2016-03-15 10:38:17 +00:00
### 代码分析和Lint工具
进行代码分析,解析和操作代码库的库和工具。
* 代码分析
2016-04-02 06:58:05 +00:00
* code2flow: 把你的 Python 和 JavaScript 代码转换为流程图。[官网](https://github.com/scottrogowski/code2flow)
* pycallgraph: 这个库可以把你的Python 应用的流程(调用图)进行可视化。[官网](https://github.com/gak/pycallgraph)
* pysonar2: Python 类型推断和检索工具。[官网](https://github.com/yinwang0/pysonar2)
2016-03-15 10:38:17 +00:00
* Lint工具
2016-04-02 06:58:05 +00:00
* Flake8: 模块化源码检查工具: pep8, pyflakes 以及 co。[官网](https://pypi.python.org/pypi/flake8)
* Pylint: 一个完全可定制的源码分析器。[官网](http://www.pylint.org/)
* pylama: Python 和 JavaScript 的代码审查工具。[官网](https://pylama.readthedocs.org/en/latest/)
2016-03-15 10:38:17 +00:00
### Debugging Tools
用来进行代码调试的库。
* 调试器
2016-04-02 06:58:05 +00:00
* ipdb: IPython 启用的 [pdb ](https://docs.python.org/2/library/pdb.html )。[官网](https://pypi.python.org/pypi/ipdb)
* pudb: 全屏, 基于控制台的 Python 调试器。[官网](https://pypi.python.org/pypi/pudb)
* pyringe: 可以在 Python 进程中附加和注入代码的调试器。[官网](https://github.com/google/pyringe)
* wdb: 一个奇异的 web 调试器,通过 WebSockets 工作。[官网](https://github.com/Kozea/wdb)
* winpdb: 一个具有图形用户界面的 Python 调试器,可以进行远程调试,基于 rpdb2。[官网](http://winpdb.org/)
* django-debug-toolbar: 为 Django 显示各种调试信息。[官网](https://github.com/django-debug-toolbar/django-debug-toolbar)
* django-devserver: 一个 Django 运行服务器的替代品。[官网](https://github.com/dcramer/django-devserver)
* flask-debugtoolbar: django-debug-toolbar 的 flask 版。[官网](https://github.com/mgood/flask-debugtoolbar)
2016-03-15 10:38:17 +00:00
* 性能分析器
2016-04-02 06:58:05 +00:00
* lineprofiler: 逐行性能分析。[官网](https://github.com/rkern/lineprofiler)
* memoryprofiler: 监控 Python 代码的内存使用。[官网](https://github.com/fabianp/memoryprofiler)
* profiling: 一个交互式 Python 性能分析工具。[官网](https://github.com/what-studio/profiling)
2016-03-15 10:38:17 +00:00
* 其他
2016-04-02 06:58:05 +00:00
* pyelftools: 解析和分析 ELF 文件以及 DWARF 调试信息。[官网](https://github.com/eliben/pyelftools)
* python-statsd: [statsd](https://github.com/etsy/statsd/) 服务器的 Python 客户端。[官网](https://github.com/WoLpH/python-statsd)
2016-03-15 10:38:17 +00:00
### Science and Data Analysis
用来进行科学计算和数据分析的库。
2016-04-02 06:58:05 +00:00
* astropy: 一个天文学 Python 库。[官网](http://www.astropy.org/)
* bcbio-nextgen: 这个工具箱为全自动高通量测序分析提供符合最佳实践的处理流程。[官网](https://github.com/chapmanb/bcbio-nextgen)
* bccb: 生物分析相关代码集合[官网](https://github.com/chapmanb/bcbb)
* Biopython: Biopython 是一组可以免费使用的用来进行生物计算的工具。[官网](http://biopython.org/wiki/MainPage)
* blaze: NumPy 和 Pandas 的大数据接口。[官网](http://blaze.readthedocs.org/en/latest/index.html)
* cclib: 一个用来解析和解释计算化学软件包输出结果的库。[官网](http://cclib.github.io/)
* NetworkX: 一个为复杂网络设计的高性能软件。[官网](https://networkx.github.io/)
* Neupy: 执行和测试各种不同的人工神经网络算法。[官网](http://neupy.com/pages/home.html)
* Numba: Python JIT (just in time) 编译器,针对科学用的 Python , 由Cython 和 NumPy 的开发者开发。[官网](http://numba.pydata.org/)
2016-04-02 07:01:43 +00:00
* [NumPy ](http://hao.jobbole.com/numpy/ ):使用 Python 进行科学计算的基础包。[官网](http://www.numpy.org/)
2016-04-02 06:58:05 +00:00
* Open Babel: 一个化学工具箱, 用来描述多种化学数据。[官网](http://openbabel.org/wiki/MainPage)
* Open Mining: 使用 Python 挖掘商业情报 (BI) (Pandas web 接口)。[官网](https://github.com/avelino/mining)
* orange: 通过可视化编程或 Python 脚本进行数据挖掘,数据可视化,分析和机器学习。[官网](http://orange.biolab.si/)
* Pandas: 提供高性能, 易用的数据结构和数据分析工具。[官网](http://pandas.pydata.org/)
* PyDy: PyDy 是 Python Dynamics 的缩写,用来为动力学运动建模工作流程提供帮助, 基于 NumPy, SciPy, IPython 和 matplotlib。[官网](http://www.pydy.org/)
* PyMC: 马尔科夫链蒙特卡洛采样工具。[官网](https://github.com/pymc-devs/pymc3)
* RDKit: 化学信息学和机器学习软件。[官网](http://www.rdkit.org/)
* SciPy: 由一些基于 Python ,用于数学,科学和工程的开源软件构成的生态系统。[官网](http://www.scipy.org/)
* statsmodels: 统计建模和计量经济学。[官网](https://github.com/statsmodels/statsmodels)
* SymPy: 一个用于符号数学的 Python 库。[官网](https://github.com/sympy/sympy)
* zipline: 一个 Python 算法交易库。[官网](https://github.com/quantopian/zipline)
2016-03-15 10:38:17 +00:00
### 数据可视化
进行数据可视化的库。 参见: [awesome-javascript ](https://github.com/sorrycc/awesome-javascript#data-visualization )。
2016-04-02 06:58:05 +00:00
* 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/)
* 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/)
2016-03-15 10:38:17 +00:00
### 计算机视觉
计算机视觉库。
2016-04-02 06:58:05 +00:00
* OpenCV: 开源计算机视觉库。[官网](http://opencv.org/)
* SimpleCV: 一个用来创建计算机视觉应用的开源框架。[官网](http://simplecv.org/)
2016-03-15 10:38:17 +00:00
### 机器学习
机器学习库。 参见: [awesome-machine-learning ](https://github.com/josephmisiti/awesome-machine-learning#python ).
2016-04-02 06:58:05 +00:00
* Crab: 灵活、快速的推荐引擎。[官网](https://github.com/muricoca/crab)
* gensim: 人性化的话题建模库。[官网](https://github.com/piskvorky/gensim)
* hebel: GPU 加速的深度学习库。[官网](https://github.com/hannes-brt/hebel)
* NuPIC: 智能计算 Numenta 平台。[官网](https://github.com/numenta/nupic)
* pattern: Python 网络挖掘模块。[官网](https://github.com/clips/pattern)
* PyBrain: 另一个 Python 机器学习库。[官网](https://github.com/pybrain/pybrain)
* Pylearn2: 一个基于 [Theano ](https://github.com/Theano/Theano ) 的机器学习库。[官网](https://github.com/lisa-lab/pylearn2)
* python-recsys: 一个用来实现推荐系统的 Python 库。[官网](https://github.com/ocelma/python-recsys)
* scikit-learn: 基于 SciPy 构建的机器学习 Python 模块。[官网](http://scikit-learn.org/)
* pydeep: Python 深度学习库。[官网](https://github.com/andersbll/deeppy)
* vowpalporpoise: 轻量级 [Vowpal Wabbit ](https://github.com/JohnLangford/vowpalwabbit/ ) 的 Python 封装。[官网](https://github.com/josephreisinger/vowpalporpoise)
* skflow: 一个 [TensorFlow ](https://github.com/tensorflow/tensorflow ) 的简化接口(模仿 scikit-learn)。[官网](https://github.com/tensorflow/skflow)
2016-03-15 10:38:17 +00:00
### MapReduce
MapReduce 框架和库。
2016-04-02 06:58:05 +00:00
* dpark: Spark 的 Python 克隆版,一个类似 MapReduce 的框架。[官网](https://github.com/douban/dpark)
* dumbo: 这个 Python 模块可以让人轻松的编写和运行 Hadoop 程序。[官网](https://github.com/klbostee/dumbo)
* luigi: 这个模块帮你构建批处理作业的复杂流水线。[官网](https://github.com/spotify/luigi)
* mrjob: 在 Hadoop 或 Amazon Web Services 上运行 MapReduce 任务。[官网](https://github.com/Yelp/mrjob)
* PySpark: Spark 的 Python API 。[官网](http://spark.apache.org/docs/latest/programming-guide.html)
* streamparse: 运行针对事实数据流的 Python 代码。集成了[Apache Storm](http://storm.apache.org/)。[官网](https://github.com/Parsely/streamparse)
2016-03-15 10:38:17 +00:00
### 函数式编程
使用 Python 进行函数式编程。
2016-04-02 06:58:05 +00:00
* CyToolz: Toolz 的 Cython 实现 : 高性能函数式工具。[官网](https://github.com/pytoolz/cytoolz/)
* fn.py: 在 Python 中进行函数式编程 : 实现了一些享受函数式编程缺失的功能。[官网](https://github.com/kachayev/fn.py)
* funcy: 炫酷又实用的函数式工具。[官网](https://github.com/Suor/funcy)
* Toolz: 一组用于迭代器, 函数和字典的函数式编程工具。[官网](https://github.com/pytoolz/toolz)
2016-03-15 10:38:17 +00:00
### 第三方 API
用来访问第三方 API的库。 参见: [List of Python API Wrappers and Libraries ](https://github.com/realpython/list-of-python-api-wrappers )。
2016-04-02 06:58:05 +00:00
* 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/pythonforfacebook/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)
2016-03-15 10:38:17 +00:00
### DevOps 工具
用于 DevOps 的软件和库。
2016-04-02 06:58:05 +00:00
* Ansible: 一个非常简单的 IT 自动化平台。[官网](https://github.com/ansible/ansible)
* SaltStack: 基础设施自动化和管理系统。[官网](https://github.com/saltstack/salt)
* OpenStack: 用于构建私有和公有云的开源软件。[官网](http://www.openstack.org/)
* Docker Compose: 快速, 分离的开发环境, 使用 Docker。[官网](https://docs.docker.com/compose/)
* Fabric: 一个简单的, Python 风格的工具,用来进行远程执行和部署。[官网](http://www.fabfile.org/)
* cuisine: 为 Fabric 提供一系列高级函数。[官网](https://github.com/sebastien/cuisine)
* Fabtools: 一个用来编写超赞的 Fabric 文件的工具。[官网](https://github.com/ronnix/fabtools)
* gitapi: Git 的纯 Python API。[官网](https://bitbucket.org/haard/gitapi)
* hgapi: Mercurial 的纯 Python API。[官网](https://bitbucket.org/haard/hgapi)
* honcho: [Foreman](https://github.com/ddollar/foreman)的 Python 克隆版,用来管理基于[Procfile](https://devcenter.heroku.com/articles/procfile)的应用。[官网](https://github.com/nickstenning/honcho)
* pexpect: Controlling interactive programs in a pseudo-terminal like 在一个伪终端中控制交互程序,就像 GNU expect 一样。[官网](https://github.com/pexpect/pexpect)
* psutil: 一个跨平台进程和系统工具模块。[官网](https://github.com/giampaolo/psutil)
* supervisor: UNIX 的进程控制系统。[官网](https://github.com/Supervisor/supervisor)
2016-03-15 10:38:17 +00:00
### 任务调度
任务调度库。
2016-04-02 06:58:05 +00:00
* APScheduler: 轻巧但强大的进程内任务调度, 使你可以调度函数。[官网](http://apscheduler.readthedocs.org/en/latest/)
* django-schedule: 一个 Django 排程应用。[官网](https://github.com/thauber/django-schedule)
* doit: 一个任务执行和构建工具。[官网](http://pydoit.org/)
* gunnery: 分布式系统使用的多用途任务执行工具 ,具有 web 交互界面。[官网](https://github.com/gunnery/gunnery)
* Joblib: 一组为 Python 提供轻量级作业流水线的工具。[官网](http://pythonhosted.org/joblib/index.html)
* Plan: 如有神助地编写 crontab 文件。[官网](https://github.com/fengsp/plan)
* schedule: 人性化的 Python 任务调度库。[官网](https://github.com/dbader/schedule)
* Spiff: 使用纯 Python 实现的强大的工作流引擎。[官网](https://github.com/knipknap/SpiffWorkflow)
* TaskFlow: 一个可以让你方便执行任务的 Python 库,一致并且可靠。[官网](http://docs.openstack.org/developer/taskflow/)
2016-03-15 10:38:17 +00:00
### 外来函数接口
使用外来函数接口的库。
2016-04-02 06:58:05 +00:00
* cffi: 用来调用 C 代码的外来函数接口。[官网](https://pypi.python.org/pypi/cffi)
* ctypes: (Python 标准库) 用来调用 C 代码的外来函数接口。[官网](https://docs.python.org/2/library/ctypes.html)
* PyCUDA: Nvidia CUDA API 的封装。[官网](https://mathema.tician.de/software/pycuda/)
* SWIG: 简化的封装和接口生成器。[官网](http://www.swig.org/Doc1.3/Python.html)
2016-03-15 10:38:17 +00:00
### 高性能
让 Python 更快的库。
2016-04-02 06:58:05 +00:00
* Cython: 优化的 Python 静态编译器。使用类型混合使 Python 编译成 C 或 C++ 模块来获得性能的极大提升。[官网](http://cython.org/)
* PeachPy: 嵌入 Python 的 x86-64 汇编器。可以被用作 Python 内联的汇编器或者是独立的汇编器,用于 Windows, Linux, OS X, Native Client 或者 Go 。[官网](https://github.com/Maratyszcza/PeachPy)
* PyPy: 使用 Python 实现的 Python。解释器使用黑魔法加快 Python 运行速度且不需要加入额外的类型信息。[官网](http://pypy.org/)
2016-04-02 07:01:43 +00:00
* [Pyston ](http://hao.jobbole.com/pyston-llvm-jit/ ):使用 LLVM 和现代 JIT 技术构建的 Python 实现,目标是为了获得很好的性能。[官网](https://github.com/dropbox/pyston)
2016-04-02 06:58:05 +00:00
* Stackless Python: 一个强化版的 Python。[官网](https://bitbucket.org/stackless-dev/stackless/overview)
2016-03-15 10:38:17 +00:00
### 微软的 Windows平台
在 Windows 平台上进行 Python 编程。
2016-04-02 06:58:05 +00:00
* Python(x,y):面向科学应用的 Python 发行版,基于 Qt 和 Spyder。[官网](http://python-xy.github.io/)
* pythonlibs: 非官方的 Windows 平台 Python 扩展二进制包。[官网](http://www.lfd.uci.edu/~gohlke/pythonlibs/)
* PythonNet: Python 与 .NET 公共语言运行库 (CLR)的集成。[官网](https://github.com/pythonnet/pythonnet)
* PyWin32: 针对 Windows 的Python 扩展。[官网](http://sourceforge.net/projects/pywin32/)
* WinPython: Windows 7/8 系统下便携式开发环境。[官网](https://winpython.github.io/)
2016-03-15 10:38:17 +00:00
### 网络可视化和SDN
用来进行网络可视化和SDN(软件定义网络)的工具和库。
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
### 硬件
用来对硬件进行编程的库。
2016-04-02 06:58:05 +00:00
* 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/)
2016-03-15 10:38:17 +00:00
### 兼容性
帮助从 Python 2 向 Python 3迁移的库。
2016-04-02 06:58:05 +00:00
* Python-Future: 这就是 Python 2 和 Python 3 之间丢失的那个兼容性层。[官网](http://python-future.org/index.html)
* Python-Modernize: 使 Python 代码更加现代化以便最终迁移到 Python 3。[官网](https://github.com/mitsuhiko/python-modernize)
* Six: Python 2 和 3 的兼容性工具。[官网](https://pypi.python.org/pypi/six)
2016-03-15 10:38:17 +00:00
### 杂项
不属于上面任何一个类别,但是非常有用的库。
2016-04-02 06:58:05 +00:00
* blinker: 一个快速的 Python 进程内信号/事件分发系统。[官网](https://github.com/jek/blinker)
* itsdangerous: 一系列辅助工具用来将可信的数据传入不可信的环境。[官网](https://github.com/mitsuhiko/itsdangerous)
* pluginbase: 一个简单但是非常灵活的 Python 插件系统。[官网](https://github.com/mitsuhiko/pluginbase)
* Pychievements: 一个用来创建和追踪成就的 Python 框架。[官网](https://github.com/PacketPerception/pychievements)
* Tryton: 一个通用商务框架。[官网](http://www.tryton.org/)
2016-03-15 10:38:17 +00:00
### 算法和设计模式
Python 实现的算法和设计模式。
2016-04-02 06:58:05 +00:00
* algorithms: 一个 Python 算法模块。[官网](https://github.com/nryoung/algorithms)
* python-patterns: Python 设计模式的集合。[官网](https://github.com/faif/python-patterns)
* sortedcontainers: 快速, 纯 Python 实现的SortedList, SortedDict 和 SortedSet 类型。[官网](http://www.grantjenks.com/docs/sortedcontainers/)
2016-03-15 10:38:17 +00:00
### 编辑器插件
编辑器和 IDE 的插件
* Emacs
2016-04-02 06:58:05 +00:00
* Elpy: Emacs Python 开发环境。[官网](https://github.com/jorgenschaefer/elpy)
2016-03-15 10:38:17 +00:00
* Sublime Text
2016-04-02 06:58:05 +00:00
* SublimeJEDI: 一个 Sublime Text 插件,用来使用超赞的自动补全库 Jedi。[官网](https://github.com/srusskih/SublimeJEDI)
* Anaconda: Anaconda 把你的 Sublime Text 3 变成一个功能齐全的 Python IDE。[官网](https://github.com/DamnWidget/anaconda)
2016-03-15 10:38:17 +00:00
* Vim
2016-04-02 06:58:05 +00:00
* 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)
2016-03-15 10:38:17 +00:00
* Visual Studio
2016-04-02 06:58:05 +00:00
* PTVS: Visual Studio 的 Python 工具[官网](https://github.com/Microsoft/PTVS)
2016-03-15 10:38:17 +00:00
### 集成开发环境
流行的 Python 集成开发环境。
2016-04-02 06:58:05 +00:00
* PyCharm: 商业化的 Python IDE ,由 JetBrains 开发。也有免费的社区版提供。[官网](https://www.jetbrains.com/pycharm/)
* LiClipse: 基于 Eclipse 的免费多语言 IDE 。使用 PyDev 来支持 Python 。[官网](http://www.liclipse.com/)
* Spyder: 开源 Python IDE。[官网](https://github.com/spyder-ide/spyder)
2016-03-15 10:38:17 +00:00
## 服务
在线工具和简化开发的 API 。
### 持续集成
参见: [awesome-CIandCD ](https://github.com/ciandcd/awesome-ciandcd#online-build-system ).
2016-04-02 06:58:05 +00:00
* Travis CI: 一个流行的工具, 为你的开源和[私人](https://travis-ci.com/)项目提供持续集成服务。(仅支持 GitHub)[官网](https://travis-ci.org/)
* CircleCI: 一个持续集成工具, 可以非常快速的进行并行测试。 (仅支持 GitHub)[官网](https://circleci.com/)
* Vexor CI: 一个为私人 app 提供持续集成的工具,支持按分钟付费。[官网](https://vexor.io/)
* Wercker: 基于 Docker 平台,用来构建和部署微服务。[官网](http://wercker.com/)
2016-03-15 10:38:17 +00:00
### 代码质量
2016-04-02 06:58:05 +00:00
* Codacy: 自动化代码审查, 更加快速的发布高质量代码。对于开源项目是免费的。[官网](https://www.codacy.com/)
* QuantifiedCode: 一个数据驱动、自动、持续的代码审查工具。[官网](https://www.quantifiedcode.com/)
2016-03-15 10:38:17 +00:00
## 资源
在这里可以找到新的 Python 库。
### 网站
* [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 )
### 周刊
* [Import Python Newsletter ](http://importpython.com/newsletter/ )
* [Pycoder's Weekly ](http://pycoders.com/ )
* [Python Weekly ](http://www.pythonweekly.com/ )
### Twitter
* [@codetengu ](https://twitter.com/codetengu )
* [@getpy ](https://twitter.com/getpy )
* [@planetpython ](https://twitter.com/planetpython )
* [@pycoders ](https://twitter.com/pycoders )
* [@pypi ](https://twitter.com/pypi )
* [@pythontrending ](https://twitter.com/pythontrending )
* [@PythonWeekly ](https://twitter.com/PythonWeekly )
< h3 id = "websites" > 知名网站< / h3 >
*值得关注的 Python 技术站点。*
< h4 > 中文站点< / h4 >
2016-03-15 10:39:58 +00:00
* 伯乐在线 Python 频道:分享 Python 开发技术、相关的行业动态。[官网](http://python.jobbole.com/)
2016-03-15 10:38:17 +00:00
< h4 > 英文站点< / h4 >
待补充
< h3 id = "weibo-weixin" > 微博、微信公众号< / h3 >
* Python开发者 微博:[@Python开发者](http://weibo.com/u/5305630013)
* Python开发者: 人生苦短, 我用 Python。Python 越来越受广大程序员的喜爱。「Python开发者」是最受欢迎的、专注分享Python技术的微信公众号, 主要分享 Python 相关的技术文章、工具资源和资讯等。
< br > < img src = "http://ww3.sinaimg.cn/small/63918611gw1epb2cbm6cmj2046046wek.jpg" width = 150 height = 150 >