# Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列的资源整理。[awesome-python](https://github.com/vinta/awesome-python) 是 vinta 发起维护的 Python 资源列表,内容包括:Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日志、代码分析等。由伯乐在线持续更新。 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大全」 * * * ### 本项目的参与者 - 维护者: - 贡献者:[艾凌风](https://github.com/hanxiaomax)、Namco 注:名单不分排名,不定期补充更新 * * * ### 环境管理 管理 Python 版本和环境的工具 * [p](https://github.com/qw3rtman/p) - 非常简单的交互式 python 版本管理工具。 * [pyenv](https://github.com/yyuu/pyenv) - 简单的 Python 版本管理工具。 * [Vex](https://github.com/sashahart/vex) - 可以在虚拟环境中执行命令。 * [virtualenv](https://pypi.python.org/pypi/virtualenv) - 创建独立 Python 环境的工具。 * [virtualenvwrapper](https://pypi.python.org/pypi/virtualenvwrapper)- virtualenv 的一组扩展。 ### 包管理 管理包和依赖的工具。 * [pip](https://pip.pypa.io/) - Python 包和依赖关系管理工具。 * [pip-tools](https://github.com/nvie/pip-tools) - 保证 Python 包依赖关系更新的一组工具。 * [conda](https://github.com/conda/conda/) - 跨平台,Python 二进制包管理工具。 * [Curdling](http://clarete.li/curdling/) - 管理 Python 包的命令行工具。 * [wheel](http://pythonwheels.com/) - Python 分发的新标准,意在取代 eggs。 ### 包仓库 本地 PyPI 仓库服务和代理。 * [warehouse](https://github.com/pypa/warehouse) - 下一代 PyPI。 * [Warehouse](https://warehouse.python.org/) [bandersnatch](https://bitbucket.org/pypa/bandersnatch) - PyPA 提供的 PyPI 镜像工具。 * [devpi](http://doc.devpi.net/) - PyPI 服务和打包/测试/分发工具。 * [localshop](https://github.com/mvantellingen/localshop) - 本地 PyPI 服务(自定义包并且自动对 PyPI 镜像)。 ### 分发 打包为可执行文件以便分发。 * [PyInstaller](https://github.com/pyinstaller/pyinstaller) - 将 Python 程序转换成独立的执行文件(跨平台)。 * [dh-virtualenv](http://dh-virtualenv.readthedocs.org/) - 构建并将 virtualenv 虚拟环境作为一个 Debian 包来发布。 * [Nuitka](http://nuitka.net/) - 将脚本、模块、包编译成可执行文件或扩展模块。 * [py2app](http://pythonhosted.org/py2app/) - 将 Python 脚本变为独立软件包(Mac OS X)。 * [py2exe](http://www.py2exe.org/) - 将 Python 脚本变为独立软件包(Windows)。 * [pynsist](http://pynsist.readthedocs.org/) - 一个用来创建 Windows 安装程序的工具,可以在安装程序中打包 Python本身。 ### 构建工具 将源码编译成软件。 * [buildout](http://www.buildout.org/) - 一个构建系统,从多个组件来创建,组装和部署应用。 * [BitBake](http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html) - 针对嵌入式 Linux 的类似 make 的构建工具。 * [fabricate](https://code.google.com/p/fabricate/) - 对任何语言自动找到依赖关系的构建工具。 * [PlatformIO](https://github.com/ivankravets/platformio) - 多平台命令行构建工具。 * [PyBuilder](https://github.com/pybuilder/pybuilder) - 纯 Python 实现的持续化构建工具。 * [SCons](http://www.scons.org/) - 软件构建工具。 ### 交互式解析器 交互式 Python 解析器。 * [IPython](https://github.com/ipython/ipython) - 功能丰富的工具,非常有效的使用交互式 Python。 * [bpython](http://bpython-interpreter.org/)- 界面丰富的 Python 解析器。 * [ptpython](https://github.com/jonathanslenders/ptpython) - 高级交互式Python解析器, 构建于[python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit) 之上。 ### 文件 文件管理和 MIME(多用途的网际邮件扩充协议)类型检测。 * [imghdr](https://docs.python.org/2/library/imghdr.html) - (Python 标准库)检测图片类型。 * [mimetypes](https://docs.python.org/2/library/mimetypes.html) - (Python 标准库)将文件名映射为 MIME 类型。 * [path.py](https://github.com/jaraco/path.py) - 对 os.path 进行封装的模块。 * [pathlib](https://pathlib.readthedocs.org/en/pep428/) - (Python3.4+ 标准库)跨平台的、面向对象的路径操作库。 * [python-magic](https://github.com/ahupp/python-magic)- 文件类型检测的第三方库 libmagic 的 Python 接口。 * [Unipath](https://github.com/mikeorr/Unipath)- 用面向对象的方式操作文件和目录 * [watchdog](https://github.com/gorakhargosh/watchdog) - 管理文件系统事件的 API 和 shell 工具 ### 日期和时间 操作日期和时间的类库。 * [arrow](https://github.com/crsmithdev/arrow)- 更好的 Python 日期时间操作类库。 * [Chronyk](https://github.com/KoffeinFlummi/Chronyk) - Python 3 的类库,用于解析手写格式的时间和日期。 * [dateutil](https://pypi.python.org/pypi/python-dateutil) - Python datetime 模块的扩展。 * [delorean](https://github.com/myusuf3/delorean/)- 解决 Python 中有关日期处理的棘手问题的库。 * [moment](https://github.com/zachwill/moment) - 一个用来处理时间和日期的Python库。灵感来自于Moment.js。 * [PyTime](https://github.com/shnode/PyTime) - 一个简单易用的Python模块,用于通过字符串来操作日期/时间。 * [pytz](https://launchpad.net/pytz) - 现代以及历史版本的世界时区定义。将时区数据库引入Python。 * [when.py](https://github.com/dirn/When.py) - 提供用户友好的函数来帮助用户进行常用的日期和时间操作。 ### 文本处理 用于解析和操作文本的库。 * 通用 * [chardet](https://github.com/chardet/chardet) - 字符编码检测器,兼容 Python2 和 Python3。 * [difflib](https://docs.python.org/2/library/difflib.html) - (Python 标准库)帮助我们进行差异化比较。 * [ftfy](https://github.com/LuminosoInsight/python-ftfy) - 让Unicode文本更完整更连贯。 * [fuzzywuzzy](https://github.com/seatgeek/fuzzywuzzy) - 模糊字符串匹配。 * [Levenshtein](https://github.com/ztane/python-Levenshtein/) - 快速计算编辑距离以及字符串的相似度。 * [pangu.py](https://github.com/vinta/pangu.py) - 在中日韩语字符和数字字母之间添加空格。 * [pyfiglet -figlet](https://github.com/pwaller/pyfiglet) 的 Python实现。 * [shortuuid](https://github.com/stochastic-technologies/shortuuid) - 一个生成器库,用以生成简洁的,明白的,URL 安全的 UUID。 * [unidecode](https://pypi.python.org/pypi/Unidecode) - Unicode 文本的 ASCII 转换形式 。 * [uniout](https://github.com/moskytw/uniout) - 打印可读的字符,而不是转义的字符串。 * [xpinyin](https://github.com/lxneng/xpinyin) - 一个用于把汉字转换为拼音的库。 * Slug化 * [awesome-slugify](https://github.com/dimka665/awesome-slugify) - 一个 Python slug 化库,可以保持 Unicode。 * [python-slugify](https://github.com/un33k/python-slugify) - Python slug 化库,可以把 unicode 转化为 ASCII。 * [unicode-slugify](https://github.com/mozilla/unicode-slugify) - 一个 slug 工具,可以生成 unicode slugs ,需要依赖 Django 。 * 解析器 * [phonenumbers](https://github.com/daviddrysdale/python-phonenumbers) - 解析,格式化,储存,验证电话号码。 * [PLY](http://www.dabeaz.com/ply/) - lex 和 yacc 解析工具的 Python 实现。 * [Pygments](http://pygments.org/) - 通用语法高亮工具。 * [pyparsing](http://pyparsing.wikispaces.com/) - 生成通用解析器的框架。 * [python-nameparser](https://github.com/derek73/python-nameparser) - 把一个人名分解为几个独立的部分。 * [python-user-agents](https://github.com/selwin/python-user-agents) - 浏览器 user agent 解析器。 * [sqlparse](https://sqlparse.readthedocs.org/en/latest/) - 一个无验证的 SQL 解析器。 ### 特殊文本格式处理 一些用来解析和操作特殊文本格式的库。 * 通用 * [tablib](https://github.com/kennethreitz/tablib) - 一个用来处理中表格数据的模块。 * Office * [Marmir](https://github.com/brianray/mm) - 把输入的Python 数据结构转换为电子表单。 * [openpyxl](https://openpyxl.readthedocs.org/en/latest/) - 一个用来读写 Excel 2010 xlsx/xlsm/xltx/xltm 文件的库。 * [python-docx](https://github.com/python-openxml/python-docx) - 读取,查询以及修改 Microsoft Word 2007/2008 docx 文件。 * [unoconv](https://github.com/dagwieers/unoconv) - 在 LibreOffice/OpenOffice 支持的任意文件格式之间进行转换。 * [XlsxWriter](https://xlsxwriter.readthedocs.org/en/latest/) - 一个用于创建 Excel .xlsx 文件的 Python 模块。 * [xlwings](http://xlwings.org/) - 一个使得在 Excel 中方便调用 Python 的库(反之亦然),基于 BSD 协议。 * [xlwt](https://github.com/python-excel/xlwt) / [xlrd](https://github.com/python-excel/xlrd) - 读写 Excel 文件的数据和格式信息。 * [relatorio](http://relatorio.tryton.org/) - 模板化OpenDocument 文件。 * PDF * [PDFMiner](https://github.com/euske/pdfminer) - 一个用于从PDF文档中抽取信息的工具。 * [PyPDF2](https://github.com/mstamy2/PyPDF2) - 一个可以分割,合并和转换 PDF 页面的库。 * [ReportLab](http://www.reportlab.com/opensource/) - 快速创建富文本 PDF 文档。 * Markdown * [Mistune](https://github.com/lepture/mistune) - 快速并且功能齐全的纯 Python 实现的 Markdown 解析器。 * [Python-Markdown](https://github.com/waylan/Python-Markdown) - John Gruber’s Markdown 的 Python 版实现。 * YAML * [PyYAML](http://pyyaml.org/) - Python 版本的 YAML 解析器。 * CSV * [csvkit](https://github.com/onyxfish/csvkit) - 用于转换和操作 CSV 的工具。 * Archive * [unp](https://github.com/mitsuhiko/unp) - 一个用来方便解包归档文件的命令行工具。 ### 自然语言处理 用来处理人类语言的库。 * [NLTK](http://www.nltk.org/) - 一个先进的平台,用以构建处理人类语言数据的 Python 程序。 * [jieba](https://github.com/fxsjy/jieba) - 中文分词工具。 * [langid.py](https://github.com/saffsd/langid.py) - 独立的语言识别系统。 * [Pattern](http://www.clips.ua.ac.be/pattern) - Python 网络信息挖掘模块。 * [SnowNLP](https://github.com/isnowfy/snownlp) - 一个用来处理中文文本的库。 * [TextBlob](http://textblob.readthedocs.org/en/latest/) - 为进行普通自然语言处理任务提供一致的 API。 * [TextGrocery](https://github.com/2shou/TextGrocery) - 一简单高效的短文本分类工具,基于 LibLinear 和 Jieba。 ### 文档 用以生成项目文档的库。 * [Sphinx](http://www.sphinx-doc.org/en/latest/) - Python 文档生成器。 * [awesome-sphinxdoc](https://github.com/yoloseem/awesome-sphinxdoc) * [MkDocs](http://www.mkdocs.org/) - 对 Markdown 友好的文档生成器。 * [pdoc](https://github.com/BurntSushi/pdoc) - 一个可以替换Epydoc 的库,可以自动生成 Python 库的 API 文档。 * [Pycco](https://github.com/pycco-docs/pycco) - 文学编程(literate-programming)风格的文档生成器。 ### 配置 用来保存和解析配置的库。 * [config](https://www.red-dove.com/config-doc/) - [logging](https://docs.python.org/2/library/logging.html) 模块作者写的分级配置模块。 * [ConfigObj](http://www.voidspace.org.uk/python/configobj.html) - INI 文件解析器,带验证功能。 * [ConfigParser](https://docs.python.org/2/library/configparser.html) - (Python 标准库) INI 文件解析器。 * [profig](http://profig.readthedocs.org/en/default/) - 通过多种格式进行配置,具有数值转换功能。 * [python-decouple](https://github.com/henriquebastos/python-decouple) - 将设置和代码完全隔离。 ### 命令行工具 用于创建命令行程序的库。 * 命令行程序开发 * [cement](http://builtoncement.com/) - Python 的命令行程序框架。 * [click](http://click.pocoo.org/dev/) - 一个通过组合的方式来创建精美命令行界面的包。 * [cliff](http://docs.openstack.org/developer/cliff/) - 一个用于创建命令行程序的框架,可以创建具有多层命令的命令行程序。 * [clint](https://github.com/kennethreitz/clint) - Python 命令行程序工具。 * [colorama](https://pypi.python.org/pypi/colorama) - 跨平台彩色终端文本。 * [docopt](http://docopt.org/) - Python 风格的命令行参数解析器。 * [Gooey](https://github.com/chriskiehl/Gooey) - 一条命令,将命令行程序变成一个 GUI 程序。 * [python-prompt-toolkit](https://github.com/jonathanslenders/python-prompt-toolkit) - 一个用于构建强大的交互式命令行程序的库。 * 生产力工具 * [aws-cli](https://github.com/aws/aws-cli) - Amazon Web Services 的通用命令行界面。 * [bashplotlib](https://github.com/glamp/bashplotlib) - 在终端中进行基本绘图。 * [caniusepython3](https://github.com/brettcannon/caniusepython3) - 判断是哪个项目妨碍你你移植到 Python 3。 * [cookiecutter](https://github.com/audreyr/cookiecutter) - 从 cookiecutters(项目模板)创建项目的一个命令行工具。 * [doitlive](https://github.com/sloria/doitlive) - 一个用来在终端中进行现场演示的工具。 * [howdoi](https://github.com/gleitz/howdoi) - 通过命令行获取即时的编程问题解答。 * [httpie](https://github.com/jkbrzt/httpie) - 一个命令行HTTP 客户端,cURL 的替代品,易用性更好。 * [PathPicker](https://github.com/facebook/PathPicker) - 从bash输出中选出文件。 * [percol](https://github.com/mooz/percol) - 向UNIX shell 传统管道概念中加入交互式选择功能。 * [SAWS](https://github.com/donnemartin/saws) - 一个加强版的 AWS 命令行。 * [thefuck](https://github.com/nvbn/thefuck) - 修正你之前的命令行指令。 * [mycli](https://github.com/dbcli/mycli) - 一个 MySQL 命令行客户端,具有自动补全和语法高亮功能。 * [pgcli](https://github.com/dbcli/pgcli) - Postgres 命令行工具,具有自动补全和语法高亮功能。 ### 下载器 用来进行下载的库. * [s3cmd](https://github.com/s3tools/s3cmd) - 一个用来管理Amazon S3 和 CloudFront 的命令行工具。 * [s4cmd](https://github.com/bloomreach/s4cmd) - 超级 S3 命令行工具,性能更加强劲。 * [you-get](https://www.soimort.org/you-get/) - 一个 YouTube/Youku/Niconico 视频下载器,使用 Python3 编写。 * [youtube-dl](http://rg3.github.io/youtube-dl/) - 一个小巧的命令行程序,用来下载 YouTube 视频。 ### 图像处理 用来操作图像的库. * [pillow](http://pillow.readthedocs.org/en/latest/) - Pillow 是一个更加易用版的 [PIL](http://www.pythonware.com/products/pil/)。 * [hmap](https://github.com/rossgoodwin/hmap) - 图像直方图映射。 * [imgSeek](http://sourceforge.net/projects/imgseek/) - 一个使用视觉相似性搜索一组图片集合的项目。 * [nude.py](https://github.com/hhatto/nude.py) - 裸体检测。 * [pyBarcode](https://pythonhosted.org/pyBarcode/) - 不借助 PIL 库在 Python 程序中生成条形码。 * [pygram](https://github.com/ajkumar25/pygram) - 类似 Instagram 的图像滤镜。 * [python-qrcode](https://github.com/lincolnloop/python-qrcode) - 一个纯 Python 实现的二维码生成器。 * [Quads](https://github.com/fogleman/Quads) - 基于四叉树的计算机艺术。 * [scikit-image](http://scikit-image.org/) - 一个用于(科学)图像处理的 Python 库。 * [thumbor](https://github.com/thumbor/thumbor) - 一个小型图像服务,具有剪裁,尺寸重设和翻转功能。 * [wand](https://github.com/dahlia/wand) - [MagickWand](http://www.imagemagick.org/script/magick-wand.php)的Python 绑定。MagickWand 是 ImageMagick的 C API 。 ### OCR 光学字符识别库。 * [pyocr](https://github.com/jflesch/pyocr) - Tesseract 和 Cuneiform 的一个封装(wrapper)。 * [pytesseract](https://github.com/madmaze/pytesseract) - [Google Tesseract OCR](https://github.com/tesseract-ocr) 的另一个封装(wrapper)。 * python-tesseract - [Google Tesseract OCR](https://github.com/tesseract-ocr) 的一个包装类。 ### 音频 用来操作音频的库 * [audiolazy](https://github.com/danilobellini/audiolazy) -Python 的数字信号处理包。 * [audioread](https://github.com/beetbox/audioread) - 交叉库 (GStreamer + Core Audio + MAD + FFmpeg) 音频解码。 * [beets](http://beets.io/) - 一个音乐库管理工具及 [MusicBrainz](https://musicbrainz.org/) 标签添加工具 * [dejavu](https://github.com/worldveil/dejavu) - 音频指纹提取和识别 * [django-elastic-transcoder](https://github.com/StreetVoice/django-elastic-transcoder) - Django + [Amazon Elastic Transcoder](http://aws.amazon.com/elastictranscoder/)。 * [eyeD3](http://eyed3.nicfit.net/) - 一个用来操作音频文件的工具,具体来讲就是包含 ID3 元信息的 MP3 文件。 * [id3reader](http://nedbatchelder.com/code/modules/id3reader.py) - 一个用来读取 MP3 元数据的 Python 模块。 * [m3u8](https://github.com/globocom/m3u8) - 一个用来解析 m3u8 文件的模块。 * [mutagen](https://bitbucket.org/lazka/mutagen) - 一个用来处理音频元数据的 Python 模块。 * [pydub](https://github.com/jiaaro/pydub) - 通过简单、简洁的高层接口来操作音频文件。 * [pyechonest](https://github.com/echonest/pyechonest) - [Echo Nest](http://developer.echonest.com/) API 的 Python 客户端 * [talkbox](http://scikits.appspot.com/talkbox) - 一个用来处理演讲/信号的 Python 库 * [TimeSide](https://github.com/Parisson/TimeSide) - 开源 web 音频处理框架。 * [tinytag](https://github.com/devsnd/tinytag) - 一个用来读取MP3, OGG, FLAC 以及 Wave 文件音乐元数据的库。 * [mingus](http://bspaans.github.io/python-mingus/) - 一个高级音乐理论和曲谱包,支持 MIDI 文件和回放功能。 ### Video 用来操作视频和GIF的库。 * [moviepy](http://zulko.github.io/moviepy/) - 一个用来进行基于脚本的视频编辑模块,适用于多种格式,包括动图 GIFs。 * [scikit-video](https://github.com/aizvorski/scikit-video) - SciPy 视频处理常用程序。 ### 地理位置 地理编码地址以及用来处理经纬度的库。 * [GeoDjango](https://docs.djangoproject.com/en/dev/ref/contrib/gis/) - 世界级地理图形 web 框架。 * [GeoIP](https://github.com/maxmind/geoip-api-python) - MaxMind GeoIP Legacy 数据库的 Python API。 * [geojson](https://github.com/frewsxcv/python-geojson) - GeoJSON 的 Python 绑定及工具。 * [geopy](https://github.com/geopy/geopy) - Python 地址编码工具箱。 * [pygeoip](https://github.com/appliedsec/pygeoip) - 纯 Python GeoIP API。 * [django-countries](https://github.com/SmileyChris/django-countries) - 一个 Django 应用程序,提供用于表格的国家选择功能,国旗图标静态文件以及模型中的国家字段。 ### HTTP 使用HTTP的库。 * [requests](http://docs.python-requests.org/en/latest/) - 人性化的HTTP请求库。 * [grequests](https://github.com/kennethreitz/grequests) - requests 库 + gevent ,用于异步 HTTP 请求. * [httplib2](https://github.com/jcgregorio/httplib2) - 全面的 HTTP 客户端库。 * [treq](https://github.com/twisted/treq) - 类似 requests 的Python API 构建于 Twisted HTTP 客户端之上。 * [urllib3](https://github.com/shazow/urllib3) - 一个具有线程安全连接池,支持文件 post,清晰友好的 HTTP 库。 ### 数据库 Python实现的数据库。 * [pickleDB](https://pythonhosted.org/pickleDB/) - 一个简单,轻量级键值储存数据库。 * [PipelineDB](https://www.pipelinedb.com/) - 流式 SQL 数据库。 * [TinyDB](https://github.com/msiemens/tinydb) - 一个微型的,面向文档型数据库。 * [ZODB](http://www.zodb.org/en/latest/) - 一个 Python 原生对象数据库。一个键值和对象图数据库。 ### 数据库驱动 用来连接和操作数据库的库。 * MySQL - [awesome-mysql](http://shlomi-noach.github.io/awesome-mysql/)系列 * [mysql-python](http://sourceforge.net/projects/mysql-python/) - Python 的 MySQL 数据库连接器。 * mysqlclient - [mysql-python](https://github.com/PyMySQL/mysqlclient-python) 分支,支持 Python 3。 * [oursql](https://pythonhosted.org/oursql/) - 一个更好的 MySQL 连接器,支持原生预编译指令和 BLOBs. * [PyMySQL](https://github.com/PyMySQL/PyMySQL) - 纯 Python MySQL 驱动,兼容 mysql-python。 * PostgreSQL * [psycopg2](http://initd.org/psycopg/) - Python 中最流行的 PostgreSQL 适配器。 * [queries](https://github.com/gmr/queries) - psycopg2 库的封装,用来和 PostgreSQL 进行交互。 * [txpostgres](http://txpostgres.readthedocs.org/en/latest/) - 基于 Twisted 的异步 PostgreSQL 驱动。 * 其他关系型数据库 * [apsw](http://rogerbinns.github.io/apsw/) - 另一个 Python SQLite封装。 * [dataset](https://github.com/pudo/dataset) - 在数据库中存储Python字典 - 可以协同SQLite,MySQL,和 PostgreSQL工作。 * [pymssql](http://www.pymssql.org/en/latest/)- 一个简单的Microsoft SQL Server数据库接口。 * NoSQL 数据库 * [cassandra-python-driver](https://github.com/datastax/python-driver) - Cassandra 的 Python 驱动。 * [HappyBase](http://happybase.readthedocs.org/en/latest/) - 一个为 Apache HBase 设计的,对开发者友好的库。 * [Plyvel](https://plyvel.readthedocs.org/en/latest/) - 一个快速且功能丰富的 LevelDB 的 Python 接口。 * [py2neo](http://py2neo.org/2.0/) - Neo4j restful 接口的Python 封装客户端。 * [pycassa](https://github.com/pycassa/pycassa) - Cassandra 的 Python Thrift 驱动。 * [PyMongo](https://docs.mongodb.org/ecosystem/drivers/python/) - MongoDB 的官方 Python 客户端。 * [redis-py](https://github.com/andymccurdy/redis-py) - Redis 的 Python 客户端。 * [telephus](https://github.com/driftx/Telephus) - 基于 Twisted 的 Cassandra 客户端。 * [txRedis](https://github.com/deldotdr/txRedis) - 基于 Twisted 的 Redis 客户端。 ### ORM 实现对象关系映射或数据映射技术的库。 * 关系型数据库 * [Django Models](https://docs.djangoproject.com/en/dev/topics/db/models/) - Django 的一部分。 * [SQLAlchemy](http://www.sqlalchemy.org/) - Python SQL 工具以及对象关系映射工具。 * [awesome-sqlalchemy](https://github.com/dahlia/awesome-sqlalchemy)系列 * [Peewee](https://github.com/coleifer/peewee) - 一个小巧,富有表达力的 ORM。 * [PonyORM](https://ponyorm.com/) - 提供面向生成器的 SQL 接口的 ORM。 * [python-sql](https://pypi.python.org/pypi/python-sql) - 编写 Python 风格的 SQL 查询。 * NoSQL 数据库 * [django-mongodb-engine](https://github.com/django-nonrel/mongodb-engine) - Django MongoDB 后端。 * [PynamoDB](https://github.com/jlafon/PynamoDB) - [Amazon DynamoDB](https://aws.amazon.com/dynamodb/) 的一个 Python 风格接口。 * [flywheel](https://github.com/mathcamp/flywheel) - Amazon DynamoDB 的对象映射工具。 * [MongoEngine](http://mongoengine.org/) - 一个Python 对象文档映射工具,用于 MongoDB。 * [hot-redis](https://github.com/stephenmcd/hot-redis) - 为 Redis 提供 Python 丰富的数据类型。 * [redisco](https://github.com/kiddouk/redisco) - 一个 Python 库,提供可以持续存在在 Redis 中的简单模型和容器。 * 其他 * [butterdb](https://github.com/Widdershin/butterdb) - Google Drive 电子表格的 Python ORM。 ### Web 框架 全栈 web 框架。 * [Django](https://www.djangoproject.com/) - Python 界最流行的 web 框架。 * [awesome-django](https://github.com/rosarior/awesome-django)系列 * [Flask](http://flask.pocoo.org/) - 一个 Python 微型框架。 * [awesome-flask](https://github.com/humiaozuzu/awesome-flask)系列 * Pyramid - 一个小巧,快速,接地气的开源Python web 框架。 * [awesome-pyramid](https://github.com/uralbash/awesome-pyramid)系列 * [Bottle](http://bottlepy.org/docs/dev/index.html) - 一个快速小巧,轻量级的 WSGI 微型 web 框架。 * [CherryPy](http://www.cherrypy.org/) - 一个极简的 Python web 框架,服从 HTTP/1.1 协议且具有WSGI 线程池。 * [TurboGears](http://www.turbogears.org/) - 一个可以扩展为全栈解决方案的微型框架。 * [web.py](http://webpy.org/) - 一个 Python 的 web 框架,既简单,又强大。 * [web2py](http://www.web2py.com/) - 一个全栈 web 框架和平台,专注于简单易用。 * [Tornado](http://www.tornadoweb.org/en/latest/) - 一个web 框架和异步网络库。 ### 权限 允许或拒绝用户访问数据或功能的库。 * [Carteblanche](https://github.com/neuman/python-carteblanche/) - Module to align code with thoughts of users and designers. Also magically handles navigation and permissions. * [django-guardian](https://github.com/django-guardian/django-guardian) - Django 1.2+ 实现了单个对象权限。 * [django-rules](https://github.com/dfunckt/django-rules) - 一个小巧但是强大的应用,提供对象级别的权限管理,且不需要使用数据库。 ### CMS 内容管理系统 * [django-cms](http://www.django-cms.org/en/) - 一个开源的,企业级 CMS,基于 Django。 * [djedi-cms](http://djedi-cms.org/) - 一个轻量级但却非常强大的 Django CMS ,考虑到了插件,内联编辑以及性能。 * [FeinCMS](http://www.feincms.org/) - 基于 Django 构建的最先进的内容管理系统之一。 * [Kotti](http://kotti.pylonsproject.org/) - 一个高级的,Python 范的 web 应用框架,基于 Pyramid 构建。 * [Mezzanine](http://mezzanine.jupo.org/) - 一个强大的,持续的,灵活的内容管理平台。 * [Opps](http://opps.github.io/opps/) - 一个为杂志,报纸网站以及大流量门户网站设计的 CMS 平台,基于 Django。 * [Plone](https://plone.org/) - 一个构建于开源应用服务器 Zope 之上的 CMS。 * [Quokka](http://quokkaproject.org/) - 灵活,可扩展的小型 CMS,基于 Flask 和 MongoDB。 * [Wagtail](https://wagtail.io/) - 一个 Django 内容管理系统。 * [Widgy](https://wid.gy/) - 最新的 CMS 框架,基于 Django。 ### 电子商务 用于电子商务以及支付的框架和库。 * [django-oscar](http://oscarcommerce.com/) - 一个用于 Django 的开源的电子商务框架。 * [django-shop](https://github.com/awesto/django-shop) - 一个基于 Django 的店铺系统。 * [Cartridge](https://github.com/stephenmcd/cartridge) - 一个基于 Mezzanine 构建的购物车应用。 * [shoop](https://www.shoop.io/en/) - 一个基于 Django 的开源电子商务平台。 * [alipay](https://github.com/lxneng/alipay) - 非官方的 Python 支付宝 API。 * [merchant](https://github.com/agiliq/merchant) - 一个可以接收来自多种支付平台支付的 Django 应用。 * [money](https://github.com/carlospalol/money) - 货币类库with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution. * [python-currencies](https://github.com/Alir3z4/python-currencies) - 显示货币格式以及它的数值。 ### RESTful API 用来开发RESTful APIs的库 * Django * [django-rest-framework](http://www.django-rest-framework.org/) - 一个强大灵活的工具,用来构建 web API。 * [django-tastypie](http://tastypieapi.org/) - 为Django 应用开发API。 * [django-formapi](https://github.com/5monkeys/django-formapi) - 为 Django 的表单验证,创建 JSON APIs 。 * Flask * [flask-api](http://www.flaskapi.org/) - 为 flask 开发的,可浏览 Web APIs 。 * [flask-restful](http://flask-restful.readthedocs.org/en/latest/) - 为 flask 快速创建REST APIs 。 * [flask-restless](https://flask-restless.readthedocs.org/en/latest/) - 为 SQLAlchemy 定义的数据库模型创建 RESTful APIs 。 * [flask-api-utils](https://github.com/marselester/flask-api-utils) - 为 Flask 处理 API 表示和验证。 * [eve](https://github.com/nicolaiarocci/eve) - REST API 框架,由 Flask, MongoDB 等驱动。 * Pyramid * [cornice](https://cornice.readthedocs.org/en/latest/) - 一个Pyramid 的 REST 框架 。 * 与框架无关的 * [falcon](http://falconframework.org/) - 一个用来建立云 API 和 web app 后端的噶性能框架。 * [sandman](https://github.com/jeffknupp/sandman) - 为现存的数据库驱动系统自动创建 REST APIs 。 * [restless](http://restless.readthedocs.org/en/latest/) - 框架无关的 REST 框架 ,基于从 Tastypie 学到的知识。 * [ripozo](https://github.com/vertical-knowledge/ripozo) - 快速创建 REST/HATEOAS/Hypermedia APIs。 ### 验证 实现验证方案的库。 * OAuth * [Authomatic](http://peterhudec.github.io/authomatic/) - 简单但是强大的框架,身份验证/授权客户端。 * [django-allauth](https://github.com/pennersr/django-allauth) - Django 的验证应用。 * [django-oauth-toolkit](https://github.com/evonove/django-oauth-toolkit) - 为 Django 用户准备的 OAuth2。 * [django-oauth2-provider](https://github.com/caffeinehit/django-oauth2-provider) - 为 Django 应用提供 OAuth2 接入。 * [Flask-OAuthlib](https://github.com/lepture/flask-oauthlib) - OAuth 1.0/a, 2.0 客户端实现,供 Flask 使用。 * [OAuthLib](https://github.com/idan/oauthlib) - 一个 OAuth 请求-签名逻辑通用、 完整的实现。 * [python-oauth2](https://github.com/joestump/python-oauth2) - 一个完全测试的抽象接口。用来创建 OAuth 客户端和服务端。 * [python-social-auth](https://github.com/omab/python-social-auth) - 一个设置简单的社会化验证方式。 * [rauth](https://github.com/litl/rauth) - OAuth 1.0/a, 2.0, 和 Ofly 的 Python 库。 * [sanction](https://github.com/demianbrecht/sanction) - 一个超级简单的OAuth2 客户端实现。 * 其他 * [jose](https://github.com/demonware/jose) - JavaScript 对象签名和加密草案的实现。 * [PyJWT](https://github.com/jpadilla/pyjwt) - JSON Web 令牌草案 01。 * [python-jws](https://github.com/brianloveswords/python-jws) - JSON Web 签名草案 02 的实现。 * [python-jwt](https://github.com/davedoesdev/python-jwt) - 一个用来生成和验证 JSON Web 令牌的模块。 ### 模板引擎 模板生成和词法解析的库和工具。 * [Jinja2](https://github.com/mitsuhiko/jinja2) - 一个现代的,对设计师友好的模板引擎。 * [Chameleon](https://chameleon.readthedocs.org/en/latest/) - 一个 HTML/XML 模板引擎。 模仿了 ZPT(Zope Page Templates), 进行了速度上的优化。 * [Genshi](http://genshi.edgewall.org/) - Python 模板工具,用以生成 web 感知的结果。 * [Mako](http://www.makotemplates.org/) - Python 平台的超高速轻量级模板。 ### Queue 处理事件以及任务队列的库。 * [celery](http://www.celeryproject.org/) - 一个异步任务队列/作业队列,基于分布式消息传递。 * [huey](https://github.com/coleifer/huey) - 小型多线程任务队列。 * [mrq](https://github.com/pricingassistant/mrq) - Mr. Queue -一个 Python 的分布式 worker 任务队列, 使用 Redis 和 gevent。 * [rq](http://python-rq.org/) - 简单的 Python 作业队列。 * [simpleq](https://github.com/rdegges/simpleq) - 一个简单的,可无限扩张的,基于亚马逊 SQS 的队列。 ### 搜索 对数据进行索引和执行搜索查询的库和软件。 * [django-haystack](https://github.com/django-haystack/django-haystack) - Django 模块化搜索。 * [elasticsearch-py](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html) - Elasticsearch 的官方底层 Python 客户端。 * [elasticsearch-dsl-py](https://github.com/elastic/elasticsearch-dsl-py) -Elasticsearch 的官方高级 Python 客户端。 * [solrpy](https://github.com/edsu/solrpy) - [solr](http://lucene.apache.org/solr/)的 Python 客户端。 * [Whoosh](http://whoosh.readthedocs.org/en/latest/) - 一个快速的纯 Python 搜索引擎库。 ### 动态消息 用来创建用户活动的库。 * [django-activity-stream](https://github.com/justquick/django-activity-stream) - 从你的站点行为中生成通用活动信息流。 * [Stream-Framework](https://github.com/tschellenbach/Stream-Framework) - 使用 Cassandra 和 Redis 创建动态消息和通知系统。 ### 资源管理 管理、压缩、缩小网站资源的工具。 * [django-compressor](https://github.com/django-compressor/django-compressor) - 将链接和内联的 JavaScript 或 CSS 压缩到一个单独的缓存文件中。 * [django-storages](http://django-storages.readthedocs.org/en/latest/) - 一个针对 Django 的自定义存储后端的工具集合。 * [fanstatic](http://www.fanstatic.org/en/latest/) - 打包、优化,并且把静态文件依赖作为 Python 的包来提供。 * [File Conveyor](http://fileconveyor.org/) - 一个后台驻留的程序,用来发现和同步文件到 CDNs, S3 和 FTP。 * [Flask-Assets](http://flask-assets.readthedocs.org/en/latest/) - 帮你将 web 资源整合到你的 Flask app 中。 * [jinja-assets-compressor](https://github.com/jaysonsantos/jinja-assets-compressor) - 一个 Jinja 扩展,用来编译和压缩你的资源。 * [webassets](http://webassets.readthedocs.org/en/latest/) - 为你的静态资源打包、优化和管理生成独一无二的缓存 URL。 ### 缓存 缓存数据的库。 * [Beaker](http://beaker.readthedocs.org/en/latest/) - 一个缓存和会话库,可以用在 web 应用和独立 Python脚本和应用上。 * [django-cache-machine](https://github.com/django-cache-machine/django-cache-machine) - Django 模型的自动缓存和失效。 * [django-cacheops](https://github.com/Suor/django-cacheops)- 具有自动颗粒化事件驱动失效功能的 ORM。 * [django-viewlet](https://github.com/5monkeys/django-viewlet) - 渲染模板,同时具有额外的缓存控制功能。 * [dogpile.cache](http://dogpilecache.readthedocs.org/en/latest/) - dogpile.cache 是 Beaker 的下一代替代品,由同一作者开发。 * [HermesCache](https://pypi.python.org/pypi/HermesCache) - Python 缓存库,具有基于标签的失效和 dogpile effect 保护功能。 * [johnny-cache](https://github.com/jmoiron/johnny-cache) - django应用缓存框架。 * [pylibmc](https://github.com/lericson/pylibmc) - [libmemcached](http://libmemcached.org/libMemcached.html) 接口的 Python 封装。 ### 电子邮件 用来发送和解析电子邮件的库。 * [django-celery-ses](https://github.com/StreetVoice/django-celery-ses) - 带有 AWS SES 和 Celery 的 Django email 后端。 * [envelopes](http://tomekwojcik.github.io/envelopes/) - 供人类使用的电子邮件库。 * [flanker](https://github.com/mailgun/flanker) - 一个 email 地址和 Mime 解析库。 * [imbox](https://github.com/martinrusev/imbox) - Python IMAP 库 * [inbox.py](https://github.com/kennethreitz/inbox.py) - Python SMTP 服务器。 * [inbox](https://github.com/nylas/sync-engine) - 一个开源电子邮件工具箱。 * [lamson](https://github.com/zedshaw/lamson) - Python 风格的 SMTP 应用服务器。 * [mailjet](https://github.com/WoLpH/mailjet) - Mailjet API 实现,用来提供批量发送邮件,统计等功能。 * [marrow.mailer](https://github.com/marrow/marrow.mailer) - 高性能可扩展邮件分发框架。 * [modoboa](https://github.com/tonioo/modoboa) - 一个邮件托管和管理平台,具有现代的、简约的 Web UI。 * [pyzmail](http://www.magiksys.net/pyzmail/) - 创建,发送和解析电子邮件。 * [Talon](https://github.com/mailgun/talon) - Mailgun 库,用来抽取信息和签名。 ### 国际化 用来进行国际化的库。 * [Babel](http://babel.pocoo.org/en/latest/) - 一个Python 的国际化库。 * [Korean](https://korean.readthedocs.org/en/latest/) - 一个韩语词态库。 ### URL处理 解析URLs的库 * [furl](https://github.com/gruns/furl) - 一个让处理 URL 更简单小型 Python 库。 * [purl](https://github.com/codeinthehole/purl) - 一个简单的,不可变的URL类,具有简洁的 API 来进行询问和处理。 * [pyshorteners](https://github.com/ellisonleao/pyshorteners) - 一个纯 Python URL 缩短库。 * [shorturl](https://github.com/Alir3z4/python-shorturl)- 生成短小 URL 和类似 bit.ly 短链的Python 实现。 * [webargs](https://github.com/sloria/webargs) - 一个解析 HTTP 请求参数的库,内置对流行 web 框架的支持,包括 Flask, Django, Bottle, Tornado和 Pyramid。 ### HTML处理 处理 HTML和XML的库。 * [BeautifulSoup](http://www.crummy.com/software/BeautifulSoup/bs4/doc/) - 以 Python 风格的方式来对 HTML 或 XML 进行迭代,搜索和修改。 * [bleach](http://bleach.readthedocs.org/en/latest/) - 一个基于白名单的 HTML 清理和文本链接库。 * [cssutils](https://pypi.python.org/pypi/cssutils/) - 一个 Python 的 CSS 库。 * [html5lib](https://github.com/html5lib/html5lib-python) - 一个兼容标准的 HTML 文档和片段解析及序列化库。 * [lxml](http://lxml.de/) - 一个非常快速,简单易用,功能齐全的库,用来处理 HTML 和 XML。 * [MarkupSafe](https://github.com/mitsuhiko/markupsafe) - 为Python 实现 XML/HTML/XHTML 标记安全字符串。 * [pyquery](https://github.com/gawel/pyquery) - 一个解析 HTML 的库,类似 jQuery。 * [untangle](https://github.com/stchris/untangle) - 将XML文档转换为Python对象,使其可以方便的访问。 * [xhtml2pdf](https://github.com/xhtml2pdf/xhtml2pdf) - HTML/CSS 转 PDF 工具。 * [xmltodict](https://github.com/martinblech/xmltodict) - 像处理 JSON 一样处理 XML。 爬取网络站点的库 * [Scrapy](http://scrapy.org/) - 一个快速高级的屏幕爬取及网页采集框架。 * [cola](https://github.com/chineking/cola) - 一个分布式爬虫框架。 * [Demiurge](https://github.com/matiasb/demiurge) - 基于PyQuery 的爬虫微型框架。 * [feedparser](http://pythonhosted.org/feedparser/) - 通用 feed 解析器。 * [Grab](http://grablib.org/) - 站点爬取框架。 * [MechanicalSoup](https://github.com/hickford/MechanicalSoup) - 用于自动和网络站点交互的 Python 库。 * [portia](https://github.com/scrapinghub/portia) - Scrapy 可视化爬取。 * [pyspider](https://github.com/binux/pyspider) - 一个强大的爬虫系统。 * [RoboBrowser](https://github.com/jmcarp/robobrowser) - 一个简单的,Python 风格的库,用来浏览网站,而不需要一个独立安装的浏览器。 ### 网页内容提取 用于进行网页内容提取的库。 * [Haul](https://github.com/vinta/Haul) - 一个可以扩展的图像爬取工具。 * [html2text](https://github.com/Alir3z4/html2text) - 将 HTML 转换为 Markdown 格式文本 * [lassie](https://github.com/michaelhelmick/lassie) - 人性化的网页内容检索库。 * [micawber](https://github.com/coleifer/micawber) -一个小型网页内容提取库,用来从 URLs 提取富内容。 * [newspaper](https://github.com/codelucas/newspaper) - 使用 Python 进行新闻提取,文章提取以及内容策展。 * [opengraph](https://github.com/erikriver/opengraph) - 一个用来解析开放内容协议(Open Graph Protocol)的 Python模块。 * [python-goose](https://github.com/grangier/python-goose) - HTML内容/文章提取器。 * [python-readability](https://github.com/buriy/python-readability)- arc90 公司 readability 工具的 Python 高速端口 * [sanitize](https://github.com/Alir3z4/python-sanitize) - 为杂乱的数据世界带来调理性。 * [sumy](https://github.com/miso-belica/sumy) - 一个为文本文件和 HTML 页面进行自动摘要的模块。 * [textract](https://github.com/deanmalmgren/textract) - 从任何格式的文档中提取文本,Word,PowerPoint,PDFs 等等。 ### 表单 进行表单操作的库。 * [Deform](http://deform.readthedocs.org/en/latest/) - Python HTML 表单生成库,受到了 formish 表单生成库的启发。 * [django-bootstrap3](https://github.com/dyve/django-bootstrap3)- 集成了 Bootstrap 3 的 Django。 * [django-crispy-forms](http://django-crispy-forms.readthedocs.org/en/latest/) - 一个 Django 应用,他可以让你以一种非常优雅且 DRY(Don't repeat yourself) 的方式来创建美观的表单。 * [django-remote-forms](https://github.com/WiserTogether/django-remote-forms)- 一个平台独立的 Django 表单序列化工具。 * [WTForms](http://wtforms.readthedocs.org/en/latest/) - 一个灵活的表单验证和呈现库。 * [WTForms-JSON](http://wtforms-json.readthedocs.org/en/latest/)- 一个 WTForms 扩展,用来处理 JSON 数据。 ### 数据验证 数据验证库。多用于表单验证。 * [Cerberus](http://docs.python-cerberus.org/en/stable/) - A mappings-validator with a variety of rules, normalization-features and simple customization that uses a pythonic schema-definition. * [colander](http://docs.pylonsproject.org/projects/colander/en/latest/) - 一个用于对从 XML, JSON,HTML 表单获取的数据或其他同样简单的序列化数据进行验证和反序列化的系统。 * [kmatch](https://github.com/ambitioninc/kmatch) - 一种用于匹配/验证/筛选 Python 字典的语言。 * [schema](https://github.com/keleshev/schema) -一个用于对 Python 数据结构进行验证的库。 * [Schematics](https://github.com/schematics/schematics) - 数据结构验证。 * [valideer](https://github.com/podio/valideer) - 轻量级可扩展的数据验证和适配库。 * [voluptuous](https://github.com/alecthomas/voluptuous) - 一个 Python 数据验证库。主要是为了验证传入 Python的 JSON,YAML 等数据。 ### 反垃圾技术 帮助你和电子垃圾进行战斗的库。 * [django-simple-captcha](https://github.com/mbi/django-simple-captcha) - 一个简单、高度可定制的Django 应用,可以为任何Django表单添加验证码。 * [django-simple-spam-blocker](https://github.com/moqada/django-simple-spam-blocker)- 一个用于Django的简单的电子垃圾屏蔽工具。 ### 标记 用来进行标记的库。 * [django-taggit](https://github.com/alex/django-taggit) - 简单的 Django 标记工具。 ### 管理面板 管理界面库。 * [Ajenti](https://github.com/Eugeny/ajenti) - 一个你的服务器值得拥有的管理面板。 * [django-suit](http://djangosuit.com/) - Django 管理界面的一个替代品 (仅对于非商业用途是免费的)。 * [django-xadmin](https://github.com/sshwsfc/django-xadmin) - Django admin 的一个替代品,具有很多不错的功能。 * [flask-admin](https://github.com/flask-admin/flask-admin) - 一个用于 Flask 的简单可扩展的管理界面框架。 * [flower](https://github.com/mher/flower) - 一个对 Celery 集群进行实时监控和提供 web 管理界面的工具。 * [Grappelli](http://grappelliproject.com/) – Django 管理界面的一个漂亮的皮肤。 * [Wooey](https://github.com/wooey/wooey) - 一个 Django 应用,可以为 Python 脚本创建 web 用户界面。 ### 静态站点生成器 静态站点生成器是一个软件,它把文本和模板作为输入,然后输出HTML文件。 * [Pelican](http://blog.getpelican.com/) - 使用 Markdown 或 ReST 来处理内容, Jinja 2 来制作主题。支持 DVCS, Disqus.。AGPL 许可。 * [Cactus](https://github.com/koenbok/Cactus/) – 为设计师设计的静态站点生成器。 * [Hyde](http://hyde.github.io/) - 基于 Jinja2 的静态站点生成器。 * [Nikola](https://www.getnikola.com/) - 一个静态网站和博客生成器。 * [Tinkerer](http://tinkerer.me/) - Tinkerer 是一个博客引擎/静态站点生成器,由Sphinx驱动。 * [Lektor](https://www.getlektor.com/) - 一个简单易用的静态 CMS 和博客引擎。 ### 进程 操作系统进程启动及通信库。 * [envoy](https://github.com/kennethreitz/envoy) - 比 Python [subprocess](https://docs.python.org/2/library/subprocess.html) 模块更人性化。 * [sarge](http://sarge.readthedocs.org/en/latest/) - 另一 种 subprocess 模块的封装。 * [sh](https://github.com/amoffat/sh) - 一个完备的 subprocess 替代库。 ### 并发和并行 用以进行并发和并行操作的库。 * [multiprocessing](https://docs.python.org/2/library/multiprocessing.html) - (Python 标准库) 基于进程的“线程”接口。 * [threading](https://docs.python.org/2/library/threading.html) - (Python 标准库)更高层的线程接口。 * [eventlet](http://eventlet.net/) - 支持 WSGI 的异步框架。 * [gevent](http://www.gevent.org/) - 一个基于协程的 Python 网络库,使用[greenlet](https://github.com/python-greenlet/greenlet)。 * [Tomorrow](https://github.com/madisonmay/Tomorrow) -用于产生异步代码的神奇的装饰器语法实现。 ### 网络 用于网络编程的库。 * [asyncio](https://docs.python.org/3/library/asyncio.html) - (Python 标准库) 异步 I/O, 事件循环, 协程以及任务。 * [Twisted](https://twistedmatrix.com/trac/) - 一个事件驱动的网络引擎。 * [pulsar](https://github.com/quantmind/pulsar) - 事件驱动的并发框架。 * [diesel](https://github.com/dieseldev/diesel) - 基于Greenlet 的事件 I/O 框架。 * [pyzmq](http://zeromq.github.io/pyzmq/) - 一个 ZeroMQ 消息库的 Python 封装。 * [txZMQ](https://github.com/smira/txZMQ) - 基于 Twisted 的 ZeroMQ 消息库的 Python 封装。 ### WebSocket 帮助使用WebSocket的库。 * [AutobahnPython](https://github.com/crossbario/autobahn-python) - 给 Python 、使用的 WebSocket & WAMP 基于 Twisted 和 [asyncio](https://docs.python.org/3/library/asyncio.html)。 * [Crossbar](https://github.com/crossbario/crossbar/) - 开源统一应用路由(Websocket & WAMP for Python on Autobahn). * [django-socketio](https://github.com/stephenmcd/django-socketio) - 给 Django 用的 WebSockets。 * [WebSocket-for-Python](https://github.com/Lawouach/WebSocket-for-Python) - 为Python2/3 以及 PyPy 编写的 WebSocket 客户端和服务器库。 ### WSGI 服务器 兼容 WSGI 的 web 服务器 * [gunicorn](https://pypi.python.org/pypi/gunicorn) - Pre-forked, 部分是由 C 语言编写的。 * [uwsgi](https://uwsgi-docs.readthedocs.org/en/latest/) - uwsgi 项目的目的是开发一组全栈工具,用来建立托管服务, 由 C 语言编写。 * [bjoern](https://pypi.python.org/pypi/bjoern) - 异步,非常快速,由 C 语言编写。 * [fapws3](http://www.fapws.org/) - 异步 (仅对于网络端),由 C 语言编写。 * [meinheld](https://pypi.python.org/pypi/meinheld) - 异步,部分是由 C 语言编写的。 * [netius](https://github.com/hivesolutions/netius) - 异步,非常快速。 * [paste](http://pythonpaste.org/) - 多线程,稳定,久经考验。 * [rocket](https://pypi.python.org/pypi/rocket) - 多线程。 * [waitress](https://waitress.readthedocs.org/en/latest/) - 多线程, 是它驱动着 Pyramid 框架。 * [Werkzeug](http://werkzeug.pocoo.org/) - 一个 WSGI 工具库,驱动着 Flask ,而且可以很方便大嵌入到你的项目中去。 ### RPC 服务器 兼容 RPC 的服务器。 * [SimpleJSONRPCServer](https://github.com/joshmarshall/jsonrpclib/) - 这个库是 JSON-RPC 规范的一个实现。 * [SimpleXMLRPCServer](https://docs.python.org/2/library/simplexmlrpcserver.html) - (Python 标准库) 简单的 XML-RPC 服务器实现,单线程。 * [zeroRPC](https://github.com/0rpc/zerorpc-python) - zerorpc 是一个灵活的 RPC 实现,基于 ZeroMQ 和 MessagePack。 ### 密码学 * [cryptography](https://cryptography.io/en/latest/) - 这个软件包意在提供密码学基本内容和方法提供给 Python 开发者。 * [hashids](https://github.com/davidaurelio/hashids-python) - 在 Python 中实现 [hashids](http://hashids.org/) 。 * [Paramiko](http://www.paramiko.org/) - SSHv2 协议的 Python (2.6+, 3.3+) ,提供客户端和服务端的功能。 * [Passlib](https://pythonhosted.org/passlib/) - 安全密码存储/哈希库, * [PyCrypto](https://www.dlitz.net/software/pycrypto/) - Python 密码学工具箱。 * [PyNacl](https://github.com/pyca/pynacl) - 网络和密码学(NaCl) 库的 Python 绑定。 ### 图形用户界面 用来创建图形用户界面程序的库。 * [curses](https://docs.python.org/2/library/curses.html#module-curses) - 内建的 [ncurses](http://www.gnu.org/software/ncurses/) 封装,用来创建终端图形用户界面。 * [enaml](https://github.com/nucleic/enaml) - 使用类似 QML 的Declaratic语法来创建美观的用户界面。 * [kivy](https://kivy.org/) - 一个用来创建自然用户交互(NUI)应用程序的库,可以运行在 Windows, Linux, Mac OS X, Android 以及 iOS平台上。 * [pyglet](https://bitbucket.org/pyglet/pyglet/wiki/Home) - 一个Python 的跨平台窗口及多媒体库。 * [PyQt](https://riverbankcomputing.com/software/pyqt/intro) - 跨平台用户界面框架 [Qt](http://www.qt.io/) 的 Python 绑定 ,支持Qt v4 和 Qt v5。 * [PySide](https://wiki.qt.io/PySide) - P跨平台用户界面框架 [Qt](http://www.qt.io/) 的 Python 绑定 ,支持Qt v4。 * [Tkinter](https://wiki.python.org/moin/TkInter) - Tkinter 是 Python GUI 的一个事实标准库。 * [Toga](https://github.com/pybee/toga) - 一个 Python 原生的, 操作系统原生的 GUI 工具包。 * [urwid](http://urwid.org/) - 一个用来创建终端 GUI 应用的库,支持组件,事件和丰富的色彩等。 * [wxPython](http://wxpython.org/) - wxPython 是 wxWidgets C++ 类库和 Python 语言混合的产物。 * [PyGObject](https://wiki.gnome.org/Projects/PyGObject) - GLib/GObject/GIO/GTK+ (GTK+3) 的 Python 绑定 * [Flexx](https://github.com/zoofIO/flexx) - Flexx 是一个纯 Python 语言编写的用来创建 GUI 程序的工具集,它使用 web 技术进行界面的展示。 ### 游戏开发 超赞的游戏开发库。 * [Cocos2d](http://cocos2d.org/) - cocos2d 是一个用来开发 2D 游戏, 示例和其他图形/交互应用的框架。基于 pyglet。 * [Panda3D](https://www.panda3d.org/) - 由迪士尼开发的 3D 游戏引擎,并由卡内基梅陇娱乐技术中心负责维护。使用C++编写, 针对 Python 进行了完全的封装。 * [Pygame](http://www.pygame.org/news.html) - Pygame 是一组 Python 模块,用来编写游戏。 * [PyOgre](http://www.ogre3d.org/tikiwiki/PyOgre) - Ogre 3D 渲染引擎的 Python 绑定,可以用来开发游戏和仿真程序等任何 3D 应用。 * [PyOpenGL](http://pyopengl.sourceforge.net/) - OpenGL 的 Python 绑定及其相关 APIs。 * [PySDL2](http://pysdl2.readthedocs.org/en/latest/) - SDL2 库的封装,基于 ctypes。 * [RenPy](http://www.renpy.org/) - 一个视觉小说(visual novel)引擎。 ### 日志 用来生成和操作日志的库。 * [logging](https://docs.python.org/2/library/logging.html) - (Python 标准库) 为 Python 提供日志功能。 * [logbook](http://pythonhosted.org/Logbook/) - Logging 库的替代品。 * [Eliot](https://eliot.readthedocs.org/en/latest/) - 为复杂的和分布式系统创建日志。 * [Raven](http://raven.readthedocs.org/en/latest/) - Sentry的 Python 客户端。 * [Sentry](https://pypi.python.org/pypi/sentry) - 实时记录和收集日志的服务器。 ### Testing 进行代码库测试和生成测试数据的库。 * 测试框架 * [unittest](https://docs.python.org/2/library/unittest.html) - (Python 标准库) 单元测试框架。 * [nose](https://nose.readthedocs.org/en/latest/) - nose 扩展了 unittest 的功能。 * [contexts](https://github.com/benjamin-hodgson/Contexts) - 一个 Python 3.3+ 的 BDD 框架。受到C# - `Machine.Specifications`的启发。 * [hypothesis](https://github.com/DRMacIver/hypothesis) - Hypothesis 是一个基于先进的 Quickcheck 风格特性的测试库。 * [mamba](http://nestorsalceda.github.io/mamba/) - Python 的终极测试工具, 拥护BDD。 * [PyAutoGUI](https://github.com/asweigart/pyautogui) - PyAutoGUI 是一个人性化的跨平台 GUI 自动测试模块。 * [pyshould](https://github.com/drslump/pyshould)- Should 风格的断言,基于 [PyHamcrest](https://github.com/hamcrest/PyHamcrest)。 * [pytest](http://pytest.org/latest/)- 一个成熟的全功能 Python 测试工具。 * [green](https://github.com/CleanCut/green)- 干净,多彩的测试工具。 * [pyvows](http://heynemann.github.io/pyvows/)- BDD 风格的测试工具,受Vows.js的启发。 * [Robot Framework](https://github.com/robotframework/robotframework) - 一个通用的自动化测试框架。 * Web 测试 * [Selenium](https://pypi.python.org/pypi/selenium) - [Selenium](http://www.seleniumhq.org/) WebDriver 的 Python 绑定。 * [locust](https://github.com/locustio/locust) - 使用 Python 编写的,可扩展的用户加载测试工具。 * [sixpack](https://github.com/seatgeek/sixpack) - 一个和语言无关的 A/B 测试框架。 * [splinter](https://splinter.readthedocs.org/en/latest/) - 开源的 web 应用测试工具。 * Mock测试 * [mock](https://docs.python.org/3/library/unittest.mock.html) - (Python 标准库) 一个用于伪造测试的库。 * [doublex](https://pypi.python.org/pypi/doublex) - Python 的一个功能强大的 doubles 测试框架。 * [freezegun](https://github.com/spulec/freezegun) - 通过伪造日期模块来生成不同的时间。 * [httmock](https://github.com/patrys/httmock) - 针对 Python 2.6+ 和 3.2+ 生成 伪造请求的库。 * [httpretty](http://falcao.it/HTTPretty/) - Python 的 HTTP 请求 mock 工具。 * [responses](https://github.com/getsentry/responses) - 伪造 Python 中的 requests 库的一个通用库。 * [VCR.py](https://github.com/kevin1024/vcrpy) - 在你的测试中记录和重放 HTTP 交互。 * 对象工厂 * [factoryboy](https://github.com/rbarrois/factoryboy) - 一个 Python 用的测试固件 (test fixtures) 替代库。 * [mixer](https://github.com/klen/mixer) - 另外一个测试固件 (test fixtures) 替代库,支持 Django, Flask, SQLAlchemy, Peewee 等。 * [modelmommy](https://github.com/vandersonmota/modelmommy) - 为 Django 测试创建随机固件 * 代码覆盖率 * [coverage](https://pypi.python.org/pypi/coverage) - 代码覆盖率测量。 * 伪数据 * [faker](http://www.joke2k.net/faker/) - 一个 Python 库,用来生成伪数据。 * [fake2db](https://github.com/emirozer/fake2db) - 伪数据库生成器。 * [radar](https://pypi.python.org/pypi/radar) - 生成随机的日期/时间。 * 错误处理 * [FuckIt.py](https://github.com/ajalt/fuckitpy) - FuckIt.py 使用最先进的技术来保证你的 Python 代码无论对错都能继续运行。 ### 代码分析和Lint工具 进行代码分析,解析和操作代码库的库和工具。 * 代码分析 * [code2flow](https://github.com/scottrogowski/code2flow) - 把你的 Python 和 JavaScript 代码转换为流程图。 * [pycallgraph](https://github.com/gak/pycallgraph) -这个库可以把你的Python 应用的流程(调用图)进行可视化。 * [pysonar2](https://github.com/yinwang0/pysonar2) - Python 类型推断和检索工具。 * Lint工具 * [Flake8](https://pypi.python.org/pypi/flake8) - 模块化源码检查工具: pep8, pyflakes 以及 co。 * [Pylint](http://www.pylint.org/) - 一个完全可定制的源码分析器。 * [pylama](https://pylama.readthedocs.org/en/latest/) - Python 和 JavaScript 的代码审查工具。 ### Debugging Tools 用来进行代码调试的库。 * 调试器 * [ipdb](https://pypi.python.org/pypi/ipdb) - IPython 启用的 [pdb](https://docs.python.org/2/library/pdb.html)。 * [pudb](https://pypi.python.org/pypi/pudb) – 全屏,基于控制台的 Python 调试器。 * [pyringe](https://github.com/google/pyringe) - 可以在 Python 进程中附加和注入代码的调试器。 * [wdb](https://github.com/Kozea/wdb) - 一个奇异的 web 调试器,通过 WebSockets 工作。 * [winpdb](http://winpdb.org/) - 一个具有图形用户界面的 Python 调试器,可以进行远程调试,基于 rpdb2。 * [django-debug-toolbar](https://github.com/django-debug-toolbar/django-debug-toolbar) - 为 Django 显示各种调试信息。 * [django-devserver](https://github.com/dcramer/django-devserver) - 一个 Django 运行服务器的替代品。 * [flask-debugtoolbar](https://github.com/mgood/flask-debugtoolbar) - django-debug-toolbar 的 flask 版。 * 性能分析器 * [lineprofiler](https://github.com/rkern/lineprofiler) - 逐行性能分析。 * [memoryprofiler](https://github.com/fabianp/memoryprofiler) - 监控 Python 代码的内存使用。 * [profiling](https://github.com/what-studio/profiling) - 一个交互式 Python 性能分析工具。 * 其他 * [pyelftools](https://github.com/eliben/pyelftools) - 解析和分析 ELF 文件以及 DWARF 调试信息。 * [python-statsd](https://github.com/WoLpH/python-statsd) - [statsd](https://github.com/etsy/statsd/) 服务器的 Python 客户端。 ### Science and Data Analysis 用来进行科学计算和数据分析的库。 * [astropy](http://www.astropy.org/) - 一个天文学 Python 库。 * [bcbio-nextgen](https://github.com/chapmanb/bcbio-nextgen) - 这个工具箱为全自动高通量测序分析提供符合最佳实践的处理流程。 * [bccb](https://github.com/chapmanb/bcbb) - 生物分析相关代码集合 * [Biopython](http://biopython.org/wiki/MainPage) - Biopython 是一组可以免费使用的用来进行生物计算的工具。 * [blaze](http://blaze.readthedocs.org/en/latest/index.html) - NumPy 和 Pandas 的大数据接口。 * [cclib](http://cclib.github.io/) - 一个用来解析和解释计算化学软件包输出结果的库。 * [NetworkX](https://networkx.github.io/) - 一个为复杂网络设计的高性能软件。 * [Neupy](http://neupy.com/pages/home.html) - 执行和测试各种不同的人工神经网络算法。 * [Numba](http://numba.pydata.org/) - Python JIT (just in time) 编译器,针对科学用的 Python ,由Cython 和 NumPy 的开发者开发。 * [NumPy](http://www.numpy.org/) - 使用 Python 进行科学计算的基础包。 * [Open Babel](http://openbabel.org/wiki/MainPage) - 一个化学工具箱,用来描述多种化学数据。 * [Open Mining](https://github.com/avelino/mining) - 使用 Python 挖掘商业情报 (BI) (Pandas web 接口)。 * [orange](http://orange.biolab.si/) - 通过可视化编程或 Python 脚本进行数据挖掘,数据可视化,分析和机器学习。 * [Pandas](http://pandas.pydata.org/) - 提供高性能,易用的数据结构和数据分析工具。 * [PyDy](http://www.pydy.org/) - PyDy 是 Python Dynamics 的缩写,用来为动力学运动建模工作流程提供帮助, 基于 NumPy, SciPy, IPython 和 matplotlib。 * [PyMC](https://github.com/pymc-devs/pymc3) - 马尔科夫链蒙特卡洛采样工具。 * [RDKit](http://www.rdkit.org/) - 化学信息学和机器学习软件。 * [SciPy](http://www.scipy.org/) - 由一些基于 Python ,用于数学,科学和工程的开源软件构成的生态系统。 * [statsmodels](https://github.com/statsmodels/statsmodels) - 统计建模和计量经济学。 * [SymPy](https://github.com/sympy/sympy) - 一个用于符号数学的 Python 库。 * [zipline](https://github.com/quantopian/zipline) - 一个 Python 算法交易库。 ### 数据可视化 进行数据可视化的库。 参见: [awesome-javascript](https://github.com/sorrycc/awesome-javascript#data-visualization)。 * [matplotlib](http://matplotlib.org/) - 一个 Python 2D 绘图库。 * [bokeh](https://github.com/bokeh/bokeh) - 用 Python 进行交互式 web 绘图。 * [ggplot](https://github.com/yhat/ggplot) - ggplot2 给 R 提供的 API 的 Python 版本。 * [plotly](https://plot.ly/python/) - 协同 Python 和 matplotlib 工作的 web 绘图库。 * [pygal](http://www.pygal.org/en/latest/) - 一个 Python SVG 图表创建工具。 * [pygraphviz](https://pypi.python.org/pypi/pygraphviz) - Graphviz 的 Python 接口。 * [PyQtGraph](http://www.pyqtgraph.org/) - 交互式实时2D/3D/图像绘制及科学/工程学组件。 * [SnakeViz](http://jiffyclub.github.io/snakeviz/) - 一个基于浏览器的 Python's cProfile 模块输出结果查看工具。 * [vincent](https://github.com/wrobstory/vincent) - 把 Python 转换为 Vega 语法的转换工具。 * [VisPy](http://vispy.org/) - 基于 OpenGL 的高性能科学可视化工具。 ### 计算机视觉 计算机视觉库。 * [OpenCV](http://opencv.org/) - 开源计算机视觉库。 * [SimpleCV](http://simplecv.org/) - 一个用来创建计算机视觉应用的开源框架。 ### 机器学习 机器学习库。 参见: [awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning#python). * [Crab](https://github.com/muricoca/crab) - 灵活、快速的推荐引擎。 * [gensim](https://github.com/piskvorky/gensim) - 人性化的话题建模库。 * [hebel](https://github.com/hannes-brt/hebel) - GPU 加速的深度学习库。 * [NuPIC](https://github.com/numenta/nupic) - 智能计算 Numenta 平台。 * [pattern](https://github.com/clips/pattern) - Python 网络挖掘模块。 * [PyBrain](https://github.com/pybrain/pybrain) - 另一个 Python 机器学习库。 * [Pylearn2](https://github.com/lisa-lab/pylearn2) - 一个基于 [Theano](https://github.com/Theano/Theano) 的机器学习库。 * [python-recsys](https://github.com/ocelma/python-recsys) - 一个用来实现推荐系统的 Python 库。 * [scikit-learn](http://scikit-learn.org/) - 基于 SciPy 构建的机器学习 Python 模块。 * [pydeep](https://github.com/andersbll/deeppy) - Python 深度学习库。 * [vowpalporpoise](https://github.com/josephreisinger/vowpalporpoise) - 轻量级 [Vowpal Wabbit](https://github.com/JohnLangford/vowpalwabbit/) 的 Python 封装。 * [skflow](https://github.com/tensorflow/skflow) - 一个 [TensorFlow](https://github.com/tensorflow/tensorflow) 的简化接口(模仿 scikit-learn)。 ### MapReduce MapReduce 框架和库。 * [dpark](https://github.com/douban/dpark) - Spark 的 Python 克隆版,一个类似 MapReduce 的框架。 * [dumbo](https://github.com/klbostee/dumbo) - 这个 Python 模块可以让人轻松的编写和运行 Hadoop 程序。 * [luigi](https://github.com/spotify/luigi) - 这个模块帮你构建批处理作业的复杂流水线。 * [mrjob](https://github.com/Yelp/mrjob) - 在 Hadoop 或 Amazon Web Services 上运行 MapReduce 任务。 * [PySpark](http://spark.apache.org/docs/latest/programming-guide.html) - Spark 的 Python API 。 * [streamparse](https://github.com/Parsely/streamparse) - 运行针对事实数据流的 Python 代码。集成了[Apache Storm](http://storm.apache.org/)。 ### 函数式编程 使用 Python 进行函数式编程。 * [CyToolz](https://github.com/pytoolz/cytoolz/) - Toolz 的 Cython 实现 : 高性能函数式工具。 * [fn.py](https://github.com/kachayev/fn.py) - 在 Python 中进行函数式编程 : 实现了一些享受函数式编程缺失的功能。 * [funcy](https://github.com/Suor/funcy) - 炫酷又实用的函数式工具。 * [Toolz](https://github.com/pytoolz/toolz) - 一组用于迭代器,函数和字典的函数式编程工具。 ### 第三方 API 用来访问第三方 API的库。 参见: [List of Python API Wrappers and Libraries](https://github.com/realpython/list-of-python-api-wrappers)。 * [apache-libcloud](https://libcloud.apache.org/) - 一个为各种云设计的 Python 库。 * [boto](https://github.com/boto/boto) - Amazon Web Services 的 Python 接口。 * [django-wordpress](https://github.com/sunlightlabs/django-wordpress/) - WordPress models and views for Django. * [facebook-sdk](https://github.com/pythonforfacebook/facebook-sdk) - Facebook 平台的 Python SDK. * [facepy](https://github.com/jgorset/facepy) - Facepy 让和 Facebook's Graph API 的交互变得更容易。 * [gmail](https://github.com/charlierguo/gmail) - Gmail 的 Python 接口。 * [google-api-python-client](https://github.com/google/google-api-python-client) - Python 用的 Google APIs 客户端库。 * [gspread](https://github.com/burnash/gspread) - Google 电子表格的 Python API. * [twython](https://github.com/ryanmcgrath/twython) - Twitter API 的封装。 ### DevOps 工具 用于 DevOps 的软件和库。 * [Ansible](https://github.com/ansible/ansible) - 一个非常简单的 IT 自动化平台。 * [SaltStack](https://github.com/saltstack/salt) - 基础设施自动化和管理系统。 * [OpenStack](http://www.openstack.org/) - 用于构建私有和公有云的开源软件。 * [Docker Compose](https://docs.docker.com/compose/) - 快速,分离的开发环境,使用 Docker。 * [Fabric](http://www.fabfile.org/) - 一个简单的,Python 风格的工具,用来进行远程执行和部署。 * [cuisine](https://github.com/sebastien/cuisine) - 为 Fabric 提供一系列高级函数。 * [Fabtools](https://github.com/ronnix/fabtools) - 一个用来编写超赞的 Fabric 文件的工具。 * [gitapi](https://bitbucket.org/haard/gitapi) - Git 的纯 Python API。 * [hgapi](https://bitbucket.org/haard/hgapi) - Mercurial 的纯 Python API。 * [honcho](https://github.com/nickstenning/honcho) - [Foreman](https://github.com/ddollar/foreman)的 Python 克隆版,用来管理基于[Procfile](https://devcenter.heroku.com/articles/procfile)的应用。 * [pexpect](https://github.com/pexpect/pexpect) - Controlling interactive programs in a pseudo-terminal like 在一个伪终端中控制交互程序,就像 GNU expect 一样。 * [psutil](https://github.com/giampaolo/psutil) - 一个跨平台进程和系统工具模块。 * [supervisor](https://github.com/Supervisor/supervisor) - UNIX 的进程控制系统。 ### 任务调度 任务调度库。 * [APScheduler](http://apscheduler.readthedocs.org/en/latest/) - 轻巧但强大的进程内任务调度,使你可以调度函数。 * [django-schedule](https://github.com/thauber/django-schedule) - 一个 Django 排程应用。 * [doit](http://pydoit.org/) - 一个任务执行和构建工具。 * [gunnery](https://github.com/gunnery/gunnery) - 分布式系统使用的多用途任务执行工具 ,具有 web 交互界面。 * [Joblib](http://pythonhosted.org/joblib/index.html) - 一组为 Python 提供轻量级作业流水线的工具。 * [Plan](https://github.com/fengsp/plan) - 如有神助地编写 crontab 文件。 * [schedule](https://github.com/dbader/schedule) - 人性化的 Python 任务调度库。 * [Spiff](https://github.com/knipknap/SpiffWorkflow) - 使用纯 Python 实现的强大的工作流引擎。 * [TaskFlow](http://docs.openstack.org/developer/taskflow/) - 一个可以让你方便执行任务的 Python 库,一致并且可靠。 ### 外来函数接口 使用外来函数接口的库。 * [cffi](https://pypi.python.org/pypi/cffi) - 用来调用 C 代码的外来函数接口。 * [ctypes](https://docs.python.org/2/library/ctypes.html) - (Python 标准库) 用来调用 C 代码的外来函数接口。 * [PyCUDA](https://mathema.tician.de/software/pycuda/) - Nvidia CUDA API 的封装。 * [SWIG](http://www.swig.org/Doc1.3/Python.html) - 简化的封装和接口生成器。 ### 高性能 让 Python 更快的库。 * [Cython](http://cython.org/) - 优化的 Python 静态编译器。使用类型混合使 Python 编译成 C 或 C++ 模块来获得性能的极大提升。 * [PeachPy](https://github.com/Maratyszcza/PeachPy) - 嵌入 Python 的 x86-64 汇编器。可以被用作 Python 内联的汇编器或者是独立的汇编器,用于 Windows, Linux, OS X, Native Client 或者 Go 。 * [PyPy](http://pypy.org/) - 使用 Python 实现的 Python。解释器使用黑魔法加快 Python 运行速度且不需要加入额外的类型信息。 * [Pyston](https://github.com/dropbox/pyston) - 使用 LLVM 和现代 JIT 技术构建的 Python 实现,目标是为了获得很好的性能。 * [Stackless Python](https://bitbucket.org/stackless-dev/stackless/overview) - 一个强化版的 Python。 ### 微软的 Windows平台 在 Windows 平台上进行 Python 编程。 * [Python(x,y)](http://python-xy.github.io/) - 面向科学应用的 Python 发行版,基于 Qt 和 Spyder。 * [pythonlibs](http://www.lfd.uci.edu/~gohlke/pythonlibs/) - 非官方的 Windows 平台 Python 扩展二进制包。 * [PythonNet](https://github.com/pythonnet/pythonnet) - Python 与 .NET 公共语言运行库 (CLR)的集成。 * [PyWin32](http://sourceforge.net/projects/pywin32/) - 针对 Windows 的Python 扩展。 * [WinPython](https://winpython.github.io/) - Windows 7/8 系统下便携式开发环境。 ### 网络可视化和SDN 用来进行网络可视化和SDN(软件定义网络)的工具和库。 * [Mininet](http://mininet.org/) - 一款流行的网络模拟器以及用 Python 编写的 API。 * [POX](https://github.com/noxrepo/pox) - 一个针对基于 Python 的软件定义网络应用(例如 OpenFlow SDN 控制器)的开源开发平台。 * [Pyretic](http://frenetic-lang.org/pyretic/) - 火热的 SDN 编程语言中的一员,为网络交换机和模拟器提供强大的抽象能力。 * [SDX Platform](https://github.com/sdn-ixp/internet2award) - 基于 SDN 的 IXP 实现,影响了 Mininet, POX 和 Pyretic。 ### 硬件 用来对硬件进行编程的库。 * [ino](http://inotool.org/) -操作[Arduino](https://www.arduino.cc/)的命令行工具。 * [Pyro](http://pyrorobotics.com/) - Python 机器人编程库。 * [PyUserInput](https://github.com/SavinaRoja/PyUserInput) - 跨平台的,控制鼠标和键盘的模块。 * [scapy](https://github.com/secdev/scapy) - 一个非常棒的操作数据包的库。 * [wifi](https://wifi.readthedocs.org/en/latest/) - 一个 Python 库和命令行工具用来在 Linux 平台上操作WiFi。 * [Pingo](http://www.pingo.io/) - Pingo 为类似Raspberry Pi,pcDuino, Intel Galileo等设备提供统一的API用以编程。 ### 兼容性 帮助从 Python 2 向 Python 3迁移的库。 * [Python-Future](http://python-future.org/index.html) - 这就是 Python 2 和 Python 3 之间丢失的那个兼容性层。 * [Python-Modernize](https://github.com/mitsuhiko/python-modernize) - 使 Python 代码更加现代化以便最终迁移到 Python 3。 * [Six](https://pypi.python.org/pypi/six) - Python 2 和 3 的兼容性工具。 ### 杂项 不属于上面任何一个类别,但是非常有用的库。 * [blinker](https://github.com/jek/blinker) - 一个快速的 Python 进程内信号/事件分发系统。 * [itsdangerous](https://github.com/mitsuhiko/itsdangerous) - 一系列辅助工具用来将可信的数据传入不可信的环境。 * [pluginbase](https://github.com/mitsuhiko/pluginbase) - 一个简单但是非常灵活的 Python 插件系统。 * [Pychievements](https://github.com/PacketPerception/pychievements) - 一个用来创建和追踪成就的 Python 框架。 * [Tryton](http://www.tryton.org/) - 一个通用商务框架。 ### 算法和设计模式 Python 实现的算法和设计模式。 * [algorithms](https://github.com/nryoung/algorithms) -一个 Python 算法模块 * [python-patterns](https://github.com/faif/python-patterns) - Python 设计模式的集合。 * [sortedcontainers](http://www.grantjenks.com/docs/sortedcontainers/) - 快速,纯 Python 实现的SortedList,SortedDict 和 SortedSet 类型。 ### 编辑器插件 编辑器和 IDE 的插件 * Emacs * [Elpy](https://github.com/jorgenschaefer/elpy) - Emacs Python 开发环境。 * Sublime Text * [SublimeJEDI](https://github.com/srusskih/SublimeJEDI) - 一个 Sublime Text 插件,用来使用超赞的自动补全库 Jedi。 * [Anaconda](https://github.com/DamnWidget/anaconda) - Anaconda 把你的 Sublime Text 3 变成一个功能齐全的 Python IDE。 * Vim * [YouCompleteMe](https://github.com/Valloric/YouCompleteMe) - 引入基于 [Jedi](https://github.com/davidhalter/jedi) 的 Python 自动补全引擎。 * [Jedi-vim](https://github.com/davidhalter/jedi-vim) - 绑定 Vim 和 Jedi 自动补全库对 Python 进行自动补全。 * [Python-mode](https://github.com/klen/python-mode) - 将 Vim 变成 Python IDE 的一款多合一插件。 * Visual Studio * [PTVS](https://github.com/Microsoft/PTVS) - Visual Studio 的 Python 工具 ### 集成开发环境 流行的 Python 集成开发环境。 * [PyCharm](https://www.jetbrains.com/pycharm/) - 商业化的 Python IDE ,由 JetBrains 开发。也有免费的社区版提供。 * [LiClipse](http://www.liclipse.com/) - 基于 Eclipse 的免费多语言 IDE 。使用 PyDev 来支持 Python 。 * [Spyder](https://github.com/spyder-ide/spyder) - 开源 Python IDE。 ## 服务 在线工具和简化开发的 API 。 ### 持续集成 参见: [awesome-CIandCD](https://github.com/ciandcd/awesome-ciandcd#online-build-system). * [Travis CI](https://travis-ci.org/) - 一个流行的工具,为你的开源和[私人](https://travis-ci.com/)项目提供持续集成服务。(仅支持 GitHub) * [CircleCI](https://circleci.com/) - 一个持续集成工具,可以非常快速的进行并行测试。 (仅支持 GitHub) * [Vexor CI](https://vexor.io/) - 一个为私人 app 提供持续集成的工具,支持按分钟付费。 * [Wercker](http://wercker.com/) - 基于 Docker 平台,用来构建和部署微服务。 ### 代码质量 * [Codacy](https://www.codacy.com/) - 自动化代码审查,更加快速的发布高质量代码。对于开源项目是免费的。 * [QuantifiedCode](https://www.quantifiedcode.com/) - 一个数据驱动、自动、持续的代码审查工具。 ## 资源 在这里可以找到新的 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)