这个板块我们将为大家总结关于Python日常开发常用的第三方库
文本文件处理
- Chardet,字符编码探测器,可以自动检测文本、网页、xml的编码。
- colorama,主要用来给文本添加各种颜色,并且非常简单易用。
- Prettytable,主要用于在终端或浏览器端构建格式化的输出。
- difflib,Python标准库,计算文本差异
- Levenshtein,快速计算字符串相似度。
- fuzzywuzzy,字符串模糊匹配。
- esmre,正则表达式的加速器。
- shortuuid,一组简洁URL/UUID函数库。
- ftfy,Unicode文本工具
- unidecode,ascii和Unicode文本转换函数。
- xpinyin,将汉字转换为拼音的函数库
- pangu.py,调整对中日韩文字当中的字母、数字间距。
- pyfiglet,Python写的figlet程序,使用字符组成ASCII艺术图片
- uniout,提取字符串中可读写的字符
- awesome-slugify,一个Python slugify库,用于处理Unicode。
- python-slugify,转换Unicode为ASCII内码的slugify函数库。
- unicode-slugify,生成unicode内码,Django的依赖包。
- ply,Python版的lex和yacc的解析工具
- phonenumbers,解析电话号码,格式,存储和验证的国际电话号码。
- python-user-agents,浏览器的用户代理(user-agents)的解析器。
- sqlparse,SQL解析器。
- pygments,一个通用的语法高亮工具。
- python-nameparser,解析人名,分解为单独的成分。
- pyparsing,通用解析器生成框架。
- tablib,表格数据格式,包括,XLS、CSV,JSON,YAML。
- python-docx,docx文档读取,查询和修改,微软Word 2007 / 2008的docx文件。
- xlwt_xlrd,xlwt和xlrd读写Excel格式的数据文件。
- xlsxwriter,创建Excel格式的xlsx文件。
- xlwings,利用Python调用Excel
- csvkit,CSV文件工具包。
- marmir,把Python数据结构,转化为电子表格。
- pdfminer,从PDF文件中提取信息。
- pypdf2,合并和转换PDF页面的函数库。
- Python-Markdown,轻量级标记语言Markdown的Python实现。
- Mistune,快速、全功能的纯Python编写的Markdown解释器。
- dateutil,标准的Python官方datetime模块的扩展包,字符串日期工具,其中parser是根据字符串解析成datetime,而rrule是则是根据定义的规则来生成datetime。
- arrow,更好的日期和时间处理Python库
- chronyk,一个Python 3版函数库,用于解析人写的时间和日期。
- delorean,清理期时间的函数库。
- when.py,为见的日期和时间,提供人性化的功能。
- moment,类似Moment.js的日期/时间Python库
- pytz,世界时区,使用tz database时区信息数据库
- BeautifulSoup,基于Python的HTML/XML解析器,简单易用,功能很强大,即使是有bug,有问题的html代码,也可以解析
- lxml,快速,易用、灵活的HTML和XML处理库,功能超强,在遇到有缺陷、不规范的xml时,Python自带的xml处理器可能无法解析。报错时,程序会尝试再用lxml的修复模式解析。
- htmlparser,官方版解析HTML DOM树,偶尔搞搞命令行自动表单提交用得上。
- pyyaml,Python版本的YAML解释器。
- html5lib,-标准库,解析和序列化HTML文档和片段。
- pyquery,类似jQuery的的HTML解释器函数库。
- cssutils,Python CSS库。
- MarkupSafe,XML或HTML / XHTML安全字符串标记工具。
- cssutils,A CSS library for Python.,MarkupSafe - Implements a XML/HTML/XHTML Markup safe string for Python.
- bleach,漂白,基于HTML的白名单函数库。
- xmltodict,类似JSON的XML工具包。
- xhtml2pdf,HTML / CSS格式转换器,看生成pdf文档。
- untangle,把XML文档,转换为Python对象,方便访问。
文件处理
- Mimetypes,Python标准库,映射文件名到MIME类型。
- imghdr,Python标准库,确定图像类型。
- python-magic,libmagic文件类型识别库,Python接口格式。
- path.py,os.path模块的二次封装。
- watchdog,一组API和shell实用程序,用于监视文件系统事件。
- Unipath,面向对象的文件/目录的操作工具包。
- pathlib,(Python 3.4版已经作为Python标准库),一个跨平台,面向path的函数库。
- pickle_cPickle,python的pickle模块实现了基本的数据序列和反序列化。通过pickle模块的序列化操作我们能够将程序中运行的对象信息保存到文件中去,永久存储;通过pickle模块的反序列化操作,我们能够从文件中创建上一次程序保存的对象。cPickle是c语言实现的版本,速度更快。
- ConfigParser,Python标准库,INI文件解析器。
- configobj,INI文件解析器。
- config,分层次配置,logging作者编写。
- profig,多格式配置转换工具。
- logging,Python标准库,日志文件生成管理函数库。
- logbook,logging的替换品。
- Sentry,实时log服务器。
- Raven,哨兵Sentry的Python客户端。
- Sphinx,斯芬克斯(狮身人面像),Python文档生成器。
- reStructuredText,标记语法和解析工具,Docutils组件。
- mkdocs,Markdown格式文档生成器。
- pycco,简单快速、编程风格的文档生成器。
- pdoc,自动生成的Python库API文档
- epydoc,从源码注释中生成各种格式文档的工具
图像处理
- PIL,(Python Image Library),基于Python的图像处理库,功能强大,对图形文件的格式支持广泛,内置许多图像处理函数,如图像增强、滤波算法等
- Pillow,图像处理库,PIL图像库的分支和升级替代产品。https://github.com/python-pillow/Pillow - Pillow is the friendly PIL fork.
- Matplotlib,著名的绘图库,提供了整套和matlab相似的命令API,用以绘制一些高质量的数学二维图形,十分适合交互式地进行制图。
- brewer2mpl,有一个专业的python配色工具包,提供了从美术角度来讲的精美配色。
- PyGame,Python游戏设计模块。基于Python的多媒体开发和游戏软件开发模块,包含大量游戏和图像处理功能
- Box2d,开源的2d物理引擎,愤怒的小鸟就是使用了这款物理引擎进行开发的,Box2d物理引擎内部模拟了一个世界,你可以设置这个世界里的重力,然后往这个世界里添加各种物体,以及他们的一些物理特性,比如质量,摩擦,阻尼等等。
- Pymunk,类似box2d的开源物理图形模拟库
- opencv,目前最好的开源图像/视觉库,包括图像处理和计算机视觉方面、机器学习的很多通用算法。
- SimpleCV,计算机视觉开源框架,类似opencv。
- VTK,视觉化工具函式库(VTK,Visualization Toolkit)是一个开放源码,跨平台、支援平行处理(VTK曾用于处理大小近乎1个Petabyte的资料,其平台为美国Los Alamos国家实验室所有的具1024个处理器之大型系统)的图形应用函式库。2005年时曾被美国陆军研究实验室用于即时模拟俄罗斯制反导弹战车ZSU23-4受到平面波攻击的情形,其计算节点高达2.5兆个之多。
- cgkit,Python Computer Graphics Kit,其module 主要分两个部分,1. 与3d相关的一些python module 例如the vector,matrix and quaternion types,the RenderMan bindings,noise functions 这些模块可以在maya houdini nuke blender 等有Python扩展的程序中直接用; 2. 提供完整的场景操作的module,他类似其他三维软件,在内存中保留完整的描述场景的信息。不能直接用于maya 等
- CGAL,Computational Geometry Algorithms Library,计算几何算法库,提供计算几何相关的数据结构和算法,诸如三角剖分(2D约束三角剖分及二维和三维Delaunay三角剖分),Voronoi图(二维和三维的点,2D加权Voronoi图,分割Voronoi图等),多边形(布尔操作,偏置),多面体(布尔运算),曲线整理及其应用,网格生成(二维Delaunay网格生成和三维表面和体积网格生成等),几何处理(表面网格简化,细分和参数化等),凸壳算法(2D,3D和dD),搜索结构(近邻搜索,kd树等),插值,形状分析,拟合,距离等。
- Aggdraw,开源图像库,几乎涵盖了2d image操作的所有功能,使用起来非常灵活
- Pycairo,开源矢量绘图库Cairo开罗的python接口,cairo提供在多个背景下做2-D的绘图,高级的更可以使用硬件加速功能。
- wand,Python绑定魔杖工具(MagickWand),C语言API接口。
- thumbor,-智能成像工具,可调整大小和翻转图像。https://github.com/thumbor/thumbor
- imgSeek,查询相似的图像。
- python-qrcode,纯Python的二维码(QR码)生成器。https://github.com/lincolnloop/python-qrcode
- pyBarcode,创建条码,无需PIL模块。
- pygram,Instagram像图像过滤器。
- Quads,基于四叉树的计算机艺术。https://github.com/fogleman/Quads
- nude.py,裸体检测函数。
- scikit-image,scikit工具箱的图像处理库。http://scikit-image.org/
- hmap,图像直方图工具。
- bokeh,交互的Web绘图。
- plotly,Web协同的Python和Matplotlib绘制。
- vincent,文森特,Python Vega的函数库。
- d3py,Python绘图库,基于D3.JS,ggplot -API兼容R语言的ggplot2.
- Kartograph.py,在Python绘制漂亮的SVG地图。
- pygal,SVG图表的创造者。
- pygraphviz,Graphviz的Python接口。
- Fonttlools,ttf字体工具函数包,用于fontforge、ttx等字体软件。
- python-barcode - Create barcodes in Python with no extra dependencies.
- pymatting - A library for alpha matting.
- pywal - A tool that generates color schemes from images.
- pyvips - A fast image processing library with low memory needs.
- wand - Python bindings for MagickWand, C API for ImageMagick.
Geolocation
Libraries for geocoding addresses and working with latitudes and longitudes.
- GeoDjango,一个世界级的地理Web框架。https://docs.djangoproject.com/en/dev/ref/contrib/gis/
- geopy,Geo地理编码的工具箱。https://github.com/geopy/geopy - Python Geocoding Toolbox.
- pygeoip,纯Python写的GeoIP API。
- GeoIP,Python API接口,使用高精度GeoIP Legacy Database数据库。
- geojson,GeoJSON函数库 https://github.com/jazzband/geojson
- django-countries,一个Django程序,提供国家选择,国旗图标的静态文件,和一个国家的地域模型。https://github.com/SmileyChris/django-countries
多媒体
- audiolazy,数字信号处理(DSP)的Python工具包。
- django-elastic-transcoder,Django +亚马逊elastic转码。
- moviepy,多格式视频编辑脚本模块,包括GIF动画。
- shorten.tv,视频摘要。
- scikit,视频处理,SciPy视频处理例程。
- Audio
- audioread - Cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding.
- audioFlux - A library for audio and music analysis, feature extraction.
- dejavu - Audio fingerprinting and recognition.
- kapre - Keras Audio Preprocessors.
- librosa - Python library for audio and music analysis.
- matchering - A library for automated reference audio mastering.
- mingus - An advanced music theory and notation package with MIDI file and playback support.
- pyaudioanalysis - Audio feature extraction, classification, segmentation and applications.
- pydub - Manipulate audio with a simple and easy high level interface.
- timeside - Open web audio processing framework.
- Metadata
- mutagen,处理音频元数据。https://github.com/quodlibet/mutagen - A Python module to handle audio metadata.
- tinytag,读取音乐文件元数据,包括的MP3,OGG,FLAC和wave文件。https://github.com/devsnd/tinytag - A library for reading music meta data of MP3, OGG, FLAC and Wave files.
- beets,音乐库管理。https://github.com/beetbox/beets - A music library manager and MusicBrainz tagger.
- eyeD3,音频文件工具,特别是MP3文件包含的ID3元数据。https://github.com/nicfit/eyeD3 - A tool for working with audio files, specifically MP3 files containing ID3 metadata.
- audioread,跨平台(GStreamer + Core Audio + MAD + FFmpeg)音频解码库。
- dejavu,音频指纹识别算法。Dejavu 听一次音频后就会记录该音频的指纹信息,然后可通过麦克风对输入的音频进行识别是否同一首歌。
- id3reader,用于读取MP3的元数据。
- pydub,-操纵音频和简单的高层次的接口。
- pyechonest,Echo Nest API客户端。,
- talkbox,语音和信号处理的Python库。
- TimeSide,开放的网络音频处理框架。
- m3u8,用于解析m3u8文件。
Game Development
Awesome game development libraries.
- Arcade - Arcade is a modern Python framework for crafting games with compelling graphics and sound.
- Cocos2d,2D游戏框架,演示,和其他的图形/交互应用,基于pyglet。https://www.cocos.com/en/cocos2d-x - cocos2d is a framework for building 2D games, demos, and other graphical/interactive applications.
- Harfang3D - Python framework for 3D, VR and game development.
- Pygame - Pygame is a set of Python modules designed for writing games.
- PyOgre - Python bindings for the Ogre 3D render engine, can be used for games, simulations, anything 3D.
- Panda3D,3D游戏引擎,迪士尼开发。用C++写的,完全兼容Python。https://www.panda3d.org/ - 3D game engine developed by Disney.
- PyOgre,OGRE 3D渲染引擎,可用于游戏,模拟,任何3D。
- PyOpenGL,绑定OpenGL和它相关的API。http://pyopengl.sourceforge.net/ Python ctypes bindings for OpenGL and it's related APIs.
- PySFML,Python绑定SFML
- RenPy,视觉小说引擎。https://www.renpy.org/
- PySDL2,SDL2的封装库。https://pysdl2.readthedocs.io - A ctypes based wrapper for the SDL2 library.
大数据与科学计算
- pycuda_opencl,GPU高性能并发计算
- Pandas,python实现的类似R语言的数据统计、分析平台。基于NumPy和Matplotlib开发的,主要用于数据分析和数据可视化,它的数据结构DataFrame和R语言里的data.frame很像,特别是对于时间序列数据有自己的一套分析机制,非常不错。http://pandas.pydata.org/
- Open-Mining,商业智能(BI),Pandas的Web界面。
- blaze,NumPy和Pandas大数据界面。
- SciPy,开源的Python算法库和数学工具包,SciPy包含的模块有最优化、线性代数、积分、插值、特殊函数、快速傅里叶变换、信号处理和图像处理、常微分方程求解和其他科学与工程中常用的计算。其功能与软件MATLAB、Scilab和GNU Octave类似。 Numpy和Scipy常常结合着使用,Python大多数机器学习库都依赖于这两个模块。
- ScientificPython,一组经过挑选的Python程序模块,用于科学计算,包括几何学(矢量、张量、变换、矢量和张量场),四元数,自动求导数,(线性)插值,多项式,基础统计学,非线性最小二乘拟合,单位计算,Fortran兼容的文本格式,通过VRML的3D显示,以及两个Tk小工具,分别用于绘制线图和3D网格模型。此外还具有到netCDF,MPI和BSPlib库的接口。
- NumPy,科学计算库,提供了矩阵,线性代数,傅立叶变换等等的解决方案,最常用的是它的N维数组对象. NumPy提供了两种基本的对象:ndarray(N-dimensional array object)和 ufunc(universal function object)。ndarray是存储单一数据类型的多维数组,而ufunc则是能够对数组进行处理的函数。
- Cvxopt,最优化计算包,可进行线性规划、二次规划、半正定规划等的计算。
- Numba,科学计算速度优化编译器。
- pymvpa2,是为大数据集提供统计学习分析的Python工具包,它提供了一个灵活可扩展的框架。它提供的功能有分类、回归、特征选择、数据导入导出、可视化等
- NetworkX,复杂网络的优化软件包。
- zipline,交易算法的函数库。
- PyDy,Python动态建模函数库。
- SymPy,符号数学的Python库。
- statsmodels,Python的统计建模和计量经济学。
- astropy,天文学界的Python库。
- orange,橙色,数据挖掘,数据可视化,通过可视化编程或Python脚本学习机分析。基于组件的数据挖掘和机器学习软件套装,它的功能即友好,又很强大,快速而又多功能的可视化编程前端,以便浏览数据分析和可视化,包含了完整的一系列的组件以进行数据预处理,并提供了数据帐目,过渡,建模,模式评估和勘探的功能。侧重数据挖掘,可以用可视化语言或Python进行操作,拥有机器学习组件,还具有生物信息学以及文本挖掘的插件。
- RDKit,化学信息学和机器学习的软件。
- Open-Babel,巴贝尔,开放的化学工具箱。
- cclib,化学软件包的计算函数库。
- Biopython,免费的生物计算工具包。
- bccb,生物分析相关的代码集。
- bcbio-nextgen,提供完全自动化、高通量、测序分析的工具包。
- visvis,可视化计算模块库,可进行一维到四维数据的可视化。
- MapReduce,是Google提出的一个软件架构,用于大规模数据集(大于1TB)的并行运算。概念“Map(映射)”和“Reduce(归纳)”,及他们的主要思想,都是从函数式编程语言借来的。MapReduce函数库。Framworks and libraries for MapReduce.
- PySpark,Spark的Python API。
- dpark,Spark的Python克隆,Python中的MapReduce框架。
- luigi,为批量工作,建立复杂的管道。
- mrjob,运行在Hadoop,或亚马逊网络服务的,MapReduce工作。
数据分析
Libraries for data analyzing.
- aws-sdk-pandas - Pandas on AWS.
- datasette - An open source multi-tool for exploring and publishing data.
- optimus - Agile Data Science Workflows made easy with PySpark.
人工智能与机器学习
- NLTK,(natural language toolkit),是python的自然语言处理工具包。2001年推出,包括了大量的词料库,以及自然语言处理方面的算法实现:分词,词根计算,分类,语义分析等。
- Pattern,数据挖掘模块,包括自然语言处理,机器学习工具,等等。
- textblob,提供API为自然语言处理、分解NLP任务。基于NLTK和Pattern模块。
- jieba,结巴,中文分词工具。
- snownlp,用于处理中文文本库。
- loso,中文分词函数库。
- genius,中文CRF基础库,条件随机场(conditional random field,简称 CRF),是一种鉴别式机率模型,是随机场的一种,常用于标注或分析序列资料,如自然语言文字或是生物序列
- Gensim,机器学习库。一个相当专业的主题模型Python工具包,无论是代码还是文档,可用于如何计算两个文档的相似度
- LIBSVM,是台湾大学林智仁(Lin Chih-Jen)教授等开发设计的一个简单、易于使用和快速有效的SVM模式识别与回归的软件包,他不但提供了编译好的可在Windows系列系统的执行文件,还提供了源代码,方便改进、修改以及在其它操作系统上应用;该软件对SVM所涉及的参数调节相对比较少,提供了很多的默认参数,利用这些默认参数可以解决很多问题;并提供了交互检验(Cross Validation)的功能。该软件可以解决C-SVM、ν-SVM、ε-SVR和ν-SVR等问题,包括基于一对一算法的多类模式识别问题。
- scikits.learn,构建在SciPy之上用于机器学习的 Python 模块。它包括简单而高效的工具,可用于数据挖掘和数据分析。涵盖分类,回归和聚类算法,例如SVM,逻辑回归,朴素贝叶斯,随机森林,k-means等算法,代码和文档都非常不错,在许多Python项目中都有应用。例如在我们熟悉的NLTK中,分类器方面就有专门针对scikit-learn的接口,可以调用scikit-learn的分类算法以及训练数据来训练分类器模型。
- PyMC,机器学习采样工具包,scikit-learn似乎是所有人的宠儿,有人认为,PyMC更有魅力。PyMC主要用来做Bayesian分析。
- Milk,机器学习工具箱,其重点是提供监督分类法与几种有效的分类分析:SVMs(基于libsvm),K-NN,随机森林经济和决策树。它还可以进行特征选择。这些分类可以在许多方面相结合,形成不同的分类系统。对于无监督学习,它提供K-means和affinity propagation聚类算法。
- PyMVPA,(Multivariate Pattern Analysis in Python),是为大数据集提供统计学习分析的Python工具包,它提供了一个灵活可扩展的框架。它提供的功能有分类、回归、特征选择、数据导入导出、可视化等
- NuPIC,开源人工智能平台。该项目由Grok(原名 Numenta)公司开发,其中包括了公司的算法和软件架构。 NuPIC 的运作接近于人脑,“当模式变化的时候,它会忘掉旧模式,记忆新模式”。如人脑一样,CLA 算法能够适应新的变化。
- Pylearn2,-基于Theano的机器学习库。
- hebel,GPU加速,深度学习Python库。
- pybrain,机器学习模块,它的目标是为机器学习任务提供灵活、易应、强大的机器学习算法。pybrain包括神经网络、强化学习(及二者结合)、无监督学习、进化算法。以神经网络为核心,所有的训练方法都以神经网络为一个实例
- Mahout,是 Apache Software Foundation(ASF) 旗下的一个开源项目,提供一些可扩展的机器学习领域经典算法的实现,旨在帮助开发人员更加方便快捷地创建智能应用程序。Mahout包含许多实现,包括聚类、分类、推荐过滤、频繁子项挖掘。此外,通过使用 Apache Hadoop 库,Mahout 可以有效地扩展到云中。
- Crab,灵活的,快速的推荐引擎。
- python-recsys,娱乐系统分析,推荐系统。
- vowpal_porpoise,Vowpal Wabbit轻量级Python封装。
- Theano,用来定义、优化和模拟数学表达式计算,用于高效的解决多维数组的计算问题的python软件包。它使得写深度学习模型更加容易,同时也给出了一些关于在GPU上训练它们的选项。
系统与命令行
- threading,Python标准线程库,更高级别的线程接口。
- envoy,特使,Python子线程的函数库。
- sh,成熟的子线程替换函数库。
- sarge,封装线程。
- subprocess,调用shell命令的神器
- argparse,写命令行脚本必备,强大的命令行差数解析工具
- timeit,计算代码运行的时间等等
- unp,命令行工具,解压文件。
- eventlet,开销很少的多线程模块,使用的是 green threads 概念,例如,pool = eventlet.GreenPool(10000) 这样一条语句便创建了一个可以处理 10000 个客户端连接的线程池。类似Gevent线程库
- Gevent,多线程模块,基于Python的网络库。
- pytools,著名的python通用函数、工具包
- SendKeys,键盘鼠标操作模块,模拟键盘鼠标模拟操作。
- pyHook,基于Python的“钩子”库,主要用于监听当前电脑上鼠标和键盘的事件。这个库依赖于另一个Python库PyWin32,如同名字所显示的,PyWin32只能运行在Windows平台,所以PyHook也只能运行在Windows平台。
- pstuil,跨平台地很方便获取和控制系统的进程,以及读取系统的CPU占用内存占用等信息.
- cement,一个轻量级的、功能齐全的命令行工具
- click,简单优雅的的命令行接口。
- clint,Python命令行工具。
- cliff,创造多层次指令的命令行程序框架。
- Clime,可以转换任何模块为多的CLI命令程序,无任何配置。
- docopt,Python命令行参数分析器。
- pycli,命令行应用程序,支持的标准命令行解析,测井,单元测试和功能测试。
- Gooey,打开命令行程序,作为为一个完整的GUI应用程序,
- cookiecutter,命令行工具,从cookiecutters(项目模板)创建项目。例如,Python包项目,jQuery插件项目。
- percol,为UNIX传统管道pipe命令,添加交互式选择风格。
- rainbowstream,聪明和漂亮的推特客户终端。
- Django-Models,Django的一部分
- SQLAlchemy,Python SQL工具包和对象关系映射。
- peewee,小型的ORM解析器。
- PonyORM,为ORM提供了一种面向SQL的接口。
- MongoEngine,Python对象文件映射,使用MongoDB。,Django MongoDB引擎MongoDB ,Django后台。
- django-mongodb-engine,Django后台.
- redisco,一个简单的模型和容器库,使用Redis。
- flywheel,Amazon DynamoDB对象映射。
- butterdb,谷歌电子表格的ORM,Python版。
- celery,芹菜,异步任务队列/工作,基于分布式消息队列。
- huey,休伊,轻量级,多线程任务队列。
- mrq,队列先生,分布式任务队列,使用redis & Gevent。
- rq,简单的工作队列。
- Queue,Queue模块可以用来实现多线程间通讯,让各个线程共享数据,生产者把货物放到Queue中,供消费者(线程)去使用。
- simpleq,简单的,可扩展的队列,Amazon SQS基础队列。
- Psyco,超强的python性能优化工具,psyco 的神奇在于它只需要在代码的入口处调用短短两行代码,性能就能提升 40% 或更多,真可谓是立竿见影!如果你的客户觉得你的程序有点慢,敬请不要急着去优化代码,psyco 或许能让他立即改变看法。psyco 堪称 Python 的 jit。
- fn.py,Python函数编程:缺失的功能享受FP的实现。
- funcy,函数编程工具。
- Toolz,函数编程工具:迭代器、函数,字典。
- CyToolz,python 加速库,Toolz的Cython实现,高性能的函数编程工具。
- Ansible,安塞波,极为简单的自动化平台。
- SaltStack,基础设施的自动化管理系统。
- Fabric,织物,一个简单,远程执行和部署的语言工具。
- Fabtools,Fabric的工具函数。
- cuisine,热门的Fabric的工具函数。
- psutil,跨平台的过程和系统工具模块。
- pexpect,控制互动节目。
- provy,易于使用的配置系统的Python。
- honcho,Foreman的Python接口,用于管理procfile应用工具。
- gunnery,多任务执行工具,与网络接口的分布式系统。
- fig,快速。独立的开发环境中使用泊坞窗。
- APScheduler,轻量级、但功能强大的在线任务调度程序。
- django-schedule,Django日程应用程序。
- doit,任务流道/生成工具。
- Joblib,Python提供的轻量级的流水线工具函数。
- Plan,简易生成crontab文件。
- Spiff,纯Python实现的,功能强大的工作流引擎。
- schedule,Python作业调度。
- TaskFlow,有助于使任务执行简单。
- ctypes,Python标准库,速度更快,Python调用C代码的外部函数接口。
- cffi,Python调用C代码外部函数接口,类似于ctypes直接在python程序中调用c程序,但是比ctypes更方便不要求编译成so再调用。
- SWIG,简化封装和接口生成器。,
- Cython,Python优化静态编译器。
- PyPy,Python解释器的 Python实现。
- Stackless-Python,一个增强版本的Python。它使程序员从基于线程的编程方式中获得好处,并避免传统线程所带来的性能与复杂度问题。Stackless为 Python带来的微线程扩展,是一种低开销、轻量级的便利工具
- Pyston,使用LLVM和现代JIT技术,对python进行性能优化。
- pythonlibs,非官方的Windows(32 / 64位)的Python扩展包
- scapy,优秀的数据包处理库。
- ino,Arduino命令行工具。
- Pyro,Python的机器人工具包。
- pluginbase,一个简单而灵活的Python的插件系统。
- itsdangerous,数据安全传输工具。
- blinker,快速Python中的信号/事件调度系统。
- pychievements,用于创建和跟踪成果框架。
- python-patterns,Python中的设计模式。
- pefile,Windows PE文件解析器
- SIP,自动为C和C++库生成Python扩展模块的工具
数据库
-
Baresql,SQL数据库包
-
ZODB,Python本地对象数据库。一个K-V对象图数据库。https://github.com/zopefoundation/ZODB
-
pickledb,简单和轻量级的K-V键值存储。 https://github.com/patx/pickledb
-
TinyDB,轻量级,面向文档的数据库。 https://github.com/msiemens/tinydb
-
oursql,MySQL连接器,提供本地话指令语句和BLOBs支持。
-
psycopg2,最流行的Python PostgreSQL适配器。
-
txpostgres,于Twisted的异步驱动,用于PostgreSQL。
-
queries,psycopg2函数库,用于PostgreSQL。
-
dataset,存储Python字典数据,用于SQLite,MySQL和PostgreSQL。
-
cassandra-python-driver,开源分布式NoSQL数据库系统Apache Cassandra系统的Python驱动.
-
pycassa,简化的cassandra数据库Python驱动。
-
HappyBase,友好的Apache HBase的函数库。
-
Plyvel,LevelDB快速和功能丰富的Python接口。
-
py2neo,Python客户端(基于Neo4j的RESTful接口).
-
telephus,基于Twisted的cassandra客户端。
-
MySQL
- awesome-mysql
- MySQLdb,成熟的MySQL数据库模块,
- mysql-python,MySQL的Python工具库。
- mysqlclient,mysql-python分支,支持Python 3.,https://github.com/PyMySQL/mysqlclient MySQL connector with Python 3 support (mysql-python fork).
- PyMySQL,纯Python写的 MySQL驱动程序,兼容mysql-python。https://github.com/PyMySQL/PyMySQL
- mysql-connector-python,MySQL连接器,来自Oracle,纯Python编写。
-
PostgreSQL
- awesome-postgres
- psycopg - The most popular PostgreSQL adapter for Python.
-
SQlite
- awesome-sqlite
- sqlite3 - (Python standard library) SQlite interface compliant with DB-API 2.0.
- sqlite-utils - Python CLI utility and library for manipulating SQLite databases.
-
Other Relational Databases
- pymssql - A simple database interface to Microsoft SQL Server.
- clickhouse-driver - Python driver with native interface for ClickHouse.
-
NoSQL Databases
- cassandra-driver - The Python Driver for Apache Cassandra.
- happybase - A developer-friendly library for Apache HBase.
- kafka-python - The Python client for Apache Kafka.
- motor - The async Python driver for MongoDB.
- txRedis,基于Twisted的Redis客户端。
- redis-py,redis客户端。 https://github.com/redis/redis-py
- PyMongo,MongoDB官方客户端。 https://github.com/mongodb/mongo-python-driver
中间件
网络
- Curl,Pycurl包是一个libcurl的Python接口,它是由C语言编写的。与urllib相比,它的速度要快很多。
- Libcurl,是一个支持FTP,FTPS,HTTP,HTTPS,GOPHER,TELNET,DICT,FILE 和 LDAP的客户端URL传输库.libcurl也支持HTTPS认证,HTTP POST,HTTP PUT,FTP上传,代理,Cookies,基本身份验证,FTP文件断点继传,HTTP代理通道等等。
- Requests,HTTP函数库,更加人性化。用Python语言编写,基于 urllib的开源 HTTP 库。它比 urllib 更加方便,更加 Pythoner。支持 Python3。
- httpie,命令行HTTP客户端,用户友好的cURL的替换工具。
- s3cmd,命令行工具,用于管理Amazon S3和CloudFront。
- youtube-dl,命令行程序,从YouTube下载视频。
- you-get,Python3写的视频下载工具,可用于YouTube/Youku优酷/Niconico视频下载
- Coursera,从coursera.org下载视频,可重新命名文件
- wikiteam,wiki下载工具。
- subliminal,命令行工具,搜索和下载字幕的函数库
- grequests,异步HTTP请求+ Gevent(高性能高并发函数库)。
- urllib3,一个线程安全的HTTP连接池,支持文件post。
- httplib2,综合HTTP的客户端函数库。
- treq,Python API接口,Twisted的HTTP客户。
- Mininet,流行的网络仿真器,API采用python编写。
- POX,基于Python的开源软件定义网络(SDN)控制开发平台的应用,如OpenFlow的SDN控制器。
- Pyretic,SDN的编程语言,提供了强大的抽象在网络交换机或仿真器。
- SDX-Platform,基于SDN的IXP实现,利用最小网络,痘和热。
- inbox.py,Python的SMTP服务器。
- imbox,Python版本IMAP库。
- inbox,收件箱,开源邮件工具包。
- lamson,SMTP服务器。
- flanker,侧卫,电子邮件地址和MIME解析库。
- marrow.mailer,高性能可扩展邮件交付框架。
- django-celery-ses,Django电子邮件后台,使用AWS SES和Celery。
- modoboa,邮件托管和管理平台,包括现代和简化Web UI。
- envelopes,邮件工具。
- mailjet,批量邮寄mailjet API接口,带统计。
- Talon,利爪,Mailgun库,提取消息和签名。
- mailjet,Mailjet API implementation for batch mailing,statistics and more.,Talon - Mailgun library to extract message quotations and signatures.
- pyzmail,编写,发送和解析电子邮件。
- furl,燃料,小型的的URL解析库库。
- purl,简单的,干净的API,操纵URL。
- pyshorteners,纯Python库,URL短网址编辑。
- short_url,短网址生成。
- Scrapy,快速屏幕截取和网页抓取的框架。
- portia,波西亚,Scrapy的可视化扩展。
- feedparser,信息源解释器
- RoboBrowser,简单的网页浏览Python函数库,没有使用Web浏览器。
- MechanicalSoup,网站自动化互动测试工具包。
- mechanize,网页浏览编程工具。
- Demiurge,造物主,-PyQuery的轻量级工具。
- newspaper,提取报纸新闻。
- html2text,转换HTML为 Markdown格式的文本。
- python-goose,HTML内容提取器。
- lassie,莱西,人性化的网站内容检索。
- micawber,通过UR抓提网页的函数库。
- sumy,概要,文本和HTML网页的自动文摘模块。
- Haul,距离,可扩展的图像爬虫。
- python-readability,可读性工具Arc90,快速的Python接口。
- opengraph,OpenGraph Protocol协议解析模块,
- textract,从任何文件,Word,PowerPoint,PDF文件中提取文本,等。
- sanitize,消毒,使混乱的数据变的理智。
- AutobahnPython,WebSocket和WAMP的函数库,使用 Twisted和Python。
- WebSocket-for-Python,websocket客户端和服务器端函数库。
- SimpleXMLRPCServer,python标准库,简单的XML-RPC服务器,单线程。
- SimpleJSONRPCServer,JSON-RPC规范实施函数库。
- zeroRPC,基于ZeroMQ和MessagePack的RPC实现。
- apache-libcloud,所有云服务的Python接口库。
- wifi,WiFi -一套个Python库和命令行工具与WiFi,用于Linux。
- streamparse,运行Python代码和数据的实时流。集成了Apache Storm。
- boto,亚马逊网络服务接口。
- twython,Twitter推特API。
- google-api-python-client,谷歌客户端API。
- gspread,谷歌电子表格的Python API。
- facebook-sdk,facebook平台Python SDK。
- facepy,简易的facebook图形API
- gmail,Gmail的Python接口。
- django-wordpress,Django的WordPress的模型和视图。
Web框架
- Django,最流行的Python-Web框架,鼓励快速开发,并遵循MVC设计,开发周期短
- ActiveGrid,企业级的Web2.0解决方案
- Karrigell,简单的Web框架,自身包含了Web服务,py脚本引擎和纯python的数据库PyDBLite
- webpy,一个小巧灵活的Web框架,虽然简单但是功能强大
- CherryPy,基于Python的Web应用程序开发框架
- Pylons,基于Python的一个极其高效和可靠的Web开发框架
- Zope,开源的Web应用服务器
- TurboGears,基于Python的MVC风格的Web应用程序框架
- Twisted,流行的网络编程库,大型Web框架
- Quixote,Web开发框架
- Flask,轻量级web框架
- Bottle,快速,简单和轻量级的WSGI模式Web框架。
- Pyramid,轻量级,快速,稳定的开源Web框架。
- web2py,简单易用的全堆栈Web框架和平台。
- web.py,强大、简单的Web框架。
- TurboGears,便于扩展的Web框架。
- CherryPy,极简Python Web框架,支持,HTTP 1.1和WSGI线程池。
- Grok,基于Zope3的Web框架。
- Bluebream,开源的Web应用服务器,原名Zope 3。
- guava,轻量级,高性能的Python-Web框架,采用c语言编写。
- django-cms,基于Django企业级开源CMS。
- djedi-cms,轻量级但功能强大的Django CMS的插件,内联编辑和性能优化。
- FeinCMS,基于Django的先进内容管理系统。
- Kotte,高层次的Python的Web应用框架,基于Pyramid。
- Mezzanine,强大,一致,灵活的内容管理平台。
- Opps,基于Django的CMS,用于高流量的报纸、杂志和门户网站。
- Plone,基于Zope的开源应用服务器Zope。
- Quokka,灵活,可扩展的,轻量级的CMS系统,使用Flask和MongoDB。
- Wagtail,Django内容管理系统。
- Widgy,CMS框架,基于Django。
- django-oscar,Django奥斯卡,开源的电子商务框架。
- django-shop,基于Django的网店系统。
- merchant,支持多种付款处理工具。
- money,可扩展的货币兑换解决方案。
- python-currencies,货币显示格式。
- cornice,Pyramid的REST框架。
- django-rest-framework,Django框架,强大灵活的工具,可以很容易地构建Web API。
- django-tastypie,创造精美的Django应用程序API接口。
- django-formapi,创建JSON API、HMAC认证和Django表单验证。
- flask-api,提供统一的浏览器体验,基于Django框架。
- flask-api,An implementation of the same web browsable APIs that django-rest-framework provides。
- flask-restful,快速构建REST API支持扩展。
- flask-api-utils,flask的扩展。
- falcon,猎鹰,高性能的Python框架,构建云API和Web应用程序后端。
- eve,夏娃,REST API框架,使用Flask,MongoDB和良好意愿。
- sandman,睡魔,为现有的数据库驱动的系统,自动生成REST API。
- restless,类似TastyPie的框架。
- savory-pie,REST API构建函数库(Django,及其他)
- Jinja2,现代设计师友好的语言模板。
- Genshi,网络感知输出模板工具包。
- Mako,马可,Python平台的超高速、轻型模板。
- Chameleon,变色龙,一个HTML / XML模板引擎。仿照ZPT,优化速度。
- Spitfire,快速的Python编译模板。
- django-haystack,大海捞针,Django模块搜索。
- elasticsearch-py,Elasticsearch官方低级的Python客户端。
- solrpy,solr客户端。
- Whoosh,呼,快速,纯Python搜索引擎库。
- Feedly,建立新闻和通知系统的函数库,使用Cassandra和Redis。
- Feedly,- A library to build newsfeed and notification systems using Cassandra and Redis.
- django-activity-stream,Django活动流,从你网站上的行动,产生通用的活动流。
- Beaker,烧杯,一个缓存和会话使用的Web应用程序,独立的Python脚本和应用程序库。
- dogpile.cache,是Beaker作者的下一代替代作品。
- HermesCache,Python的缓存库,基于标签的失效及预防Dogpile效果。
- django-cache-machine,Django缓存机,自动缓存失效,使用ORM。
- django-cacheops,自动颗粒事件驱动,ORM缓存失效。
- johnny-cache,约翰尼高速缓存框架,Django应用程序。
- django-viewlet,渲染模板部件扩展缓存控制。
- pylibmc,在libmemcached接口。
- WTForms-JSON,JSON表单数据处理扩展。
- Deform,HTML表单生成的函数库。
- django-bootstrap3,bootstrap3,集成了Django。
- django-crispy-forms,Django程序,可以创建优雅的表单。
- django-remote-forms,Django的远程表单,Django表格的序列化程序。
- django-simple-spam-blocker,Django简单的垃圾邮件拦截器。
- django-simple-spam-blocker, - Simple spam blocker for Django。
- django-simple-captcha,Django简单验证码,简单的和高度可定制的Django应用程序,用于添加验证码图像
- django-simple-captcha,A simple and highly customizable Django app to add captcha images to any Django form.
- Ajenti,服务器管理面板。
- Grappelli,界面花哨的django皮肤。
- django-suit,Django替代o界面(仅用于非商业用途)。
- django-xadmin,Django管理面板替代工具。
- Drop-in, replacement of Django admin comes with lots of goodies.
- flask-admin,简单的flask管理界面框架
- flower,实时监控和Web管理面板。
- Pelican,鹈鹕,Markdown或ReST,字王内容主题。支持 DVCS,Disqus. AGPL。
- Cactus,仙人掌,设计师的网站静态生成器。
- Hyde,海德,基于Jinja2的静态网站生成器。
- Nikola,尼古拉-一个静态网站和博客生成器。
- Tags,标签,最简单的静态网站生成器。
- Tinkerer,工匠,基于Sphinx的静态网站生成器。
- asyncio,(在Python 3.4 +是Python标准库),异步I/O,事件循环,协同任务。
- Twisted,扭曲,事件驱动的网络引擎。
- Tornado,龙卷风,Web框架和异步网络的函数库。
- pulsar,脉冲星,事件驱动的并行框架的Python。
- diesel,柴油,绿色的,基于事件的I/O框架。
- eventlet,WSGI支持异步框架。
- pyzmq,0MQ消息库的Python封装。
- txZMQ,基于Twisted的0MQ消息库封
- Crossbar,开源统一应用路由器(WebSocket和WAMP)。
- wsgiref,Python标准库,WSGI封装实现,单线程。
- Werkzeug,机床,WSGI工具函数库,很容易地嵌入到你自己的项目框架。
- paste,粘贴,多线程,稳定的,久经考验的WSGI工具。
- rocket,火箭,多线程服务,基于Pyramid。
- netius,快速的、异步WSGI服务器,
- gunicorn,forked前身,部分用C写的。
- fapws3,异步网络,用C写的。
- meinheld,异步WSGI服务器,是用C写的。
- bjoern,-快速的、异步WSGI服务器,用C写的。
安全
- Permissions,一个函数库,允许或拒绝用户访问数据或函数。Libraries that allow or deny users access to data or functionality.
- django-guardian,Django守护者,管理每个对象的权限,用于Django 1.2 +
- Carteblanche,管理导航和权限。
- Authomatic,简单强大的认证/授权客户端。
- OAuthLib,通用,规范,OAuth请求签约工具。
- rauth,用于OAuth 1.0,2.0,的Python库。
- python-oauth2,利用全面测试,抽象接口来创建OAuth的客户端和服务器。
- python-social-auth,易于安装的社会认证机制。,
- django-oauth-toolkit,Django OAuth工具包
- django-oauth2-provider,Django OAuth2工具包。
- django-allauth,Django认证的应用程序。
- Flask-OAuthlib,Flask的OAuth工具包
- sanction,制裁,简单的oauth2客户端。
- jose,JavaScript对象签名和加密(JOSE)草案实施,标记状态。
- python-jwt,JSON的Web令牌生成和验证模块。
- pyjwt,JSON的Web令牌草案01。
- python-jws,JSON的Web令牌草案02。
- PyCrypto,Python的加密工具包。
- Paramiko,sshv2协议的实现,提供了客户端和服务器端的功能。
- cryptography,密码开发工具包。
- PyNac,网络和密码(NaCl)函数库。
- hashids,hashids的 Python函数库。
- Passlib,安全的密码存储/哈希库,非常高的水平。
- hashlib,md5,sha等hash算法,用来替换md5和sha模块,并使他们的API一致。它由OpenSSL支持,支持如下算法:md5,sha1,sha224,sha256,sha384,sha512.
GUI
- PyGtk,基于Python的GUI程序开发GTK+库
- PyQt,用于Python的QT开发库 https://doc.qt.io/qtforpython/ - Python bindings for the Qt cross-platform application and UI framework.
- WxPython,混合wxWidgets的C++类库。Python下的GUI编程框架,其消息机制与MFC的架构相似,入门非常简单,需要快速开发相关的应用可以使用这个。https://wxpython.org/ - A blending of the wxWidgets C++ class library with the Python.
- Tkinter,Python下标准的界面编程包,因此不算是第三方库了。https://wiki.python.org/moin/TkInter - Tkinter is Python's de-facto standard GUI package.
- PySide,跨平台Qt的应用程序和用户界面框架,支撑Qt v4框架。
- kivy,创建应用程序GUI函数库,能运行于Windows,Linux,MAC OS X,Android和iOS。https://kivy.org/ - A library for creating NUI applications, running on Windows, Linux, Mac OS X, Android and iOS.
- curse,用于创建终端GUI应用程序。https://docs.python.org/3/library/curses.html Built-in wrapper for ncurses used to create terminal GUI applications.
- urwid,创建终端GUI应用程序窗体的函数库,支持事件,色彩丰富。http://urwid.org/ - A library for creating terminal GUI applications with strong support for widgets, events, rich colors, etc.
- pyglet,跨平台的窗口和多媒体库的Python。
- Tkinter,是Python事实上的标准GUI软件包。
- enaml,创建漂亮的用户界面,语法类似QML。https://github.com/nucleic/enaml - Creating beautiful user-interfaces with Declarative Syntax like QML.
- Toga,托加,OS原生GUI工具包。https://github.com/pybee/toga - A Python native, OS native GUI toolkit.
- Eel - A library for making simple Electron-like offline HTML/JS GUI apps.
- Flexx - Flexx is a pure Python toolkit for creating GUI's, that uses web technology for its rendering.
- Gooey - Turn command line programs into a full GUI application with one line.
- pyglet - A cross-platform windowing and multimedia library for Python.
- PyGObject - Python Bindings for GLib/GObject/GIO/GTK+ (GTK+3).
- PySimpleGUI - Wrapper for tkinter, Qt, WxPython and Remi.
- pywebview - A lightweight cross-platform native wrapper around a webview component.
- DearPyGui - A Simple GPU accelerated Python GUI framework
构建封装
环境包管理
- pyenv,简单的Python版本管理。
- virtualenv,创建独立的Python环境,用于同时安装不同版本的python环境。virtualenvwrapper,是virtualenv的一组扩展。
- pew,一套管理多个虚拟环境的工具。
- vex,使运行指定的virtualenv命令。
- PyRun,一个单文件,无需安装的Python版本管理工具。
- PIP,Python包和依赖的管理工具。
- easy_install,软件包管理系统,提供一个标准的分配Python软件和 函式库的格式。是一个附带设置工具的模块,和一个第三方函式库。旨在加快Python函式库的分配程式的速度。类似Ruby语言的RubyGems 。
- conda,跨平台,二进制软件包管理器。,
- Curdling,一个管理Python包的命令行工具。
- wheel,Python发行的新标准,旨在替代eggs.
打包编译
- cx-Freeze,跨平台的,用于打包成可执行文件的库
- py2exe,Windows平台的Freeze脚本工具,Py2exe ,将python脚本转换为windows上可以独立运行的可执行程序
- py2app,MAC OS X平台的Freeze脚本工具
- pyinstaller,-转换成独立的可执行文件的Python程序(跨平台)。
- pynsist,构建Windows安装程序的工具,用Python编写。
- dh-virtualenv,建立和分发virtualenv(Debian软件包格式)
- PyPI,新一代的Python包库管理工具。
- warehouse,新一代的Python包库(PyPI)管理工具。
- devpi,PyPI服务器和包装/测试/发布工具。
- localshop,PyPI官方包镜像服务器,支持本地(私人)包上传。
- buildout,创建,组装和部署应用程序的多个部分,其中一些可能是非基于Python的。https://github.com/buildout/buildout - A build system for creating, assembling and deploying applications from multiple parts.
- SCons,软件构造工具。https://github.com/SCons/scons - A software construction tool.
- platformio,一个控制台的工具,构建的代码可用于不同的开发平台。https://github.com/platformio/platformio-core - A console tool to build code with different development platforms.
- bitbake,特殊设计的工具,用于创建和部署嵌入式Linux软件包。https://github.com/openembedded/bitbake - A make-like build tool for embedded Linux.
- fabricate,自动为任何编程语言,生成依赖包。
- django-compressor,Django压缩机,压缩和内联JavaScript或CSS,链接到一个单一的缓存文件。
- jinja-assets-compressor,金贾压缩机,一个Jinja扩展,通过编译,压缩你的资源。
- webassets,优化管理,静态资源,独特的缓存清除。
- fanstatic,球迷,包优化,提供静态文件。
- fileconveyor,监控资源变化,,可保存到CDN(内容分发网络)和文件系统。
- django-storages,一组自定义存储Django后台。
- glue,胶胶,一个简单的命令行工具,生成CSS Sprites。
- libsass-python,Sass (层叠样式表)的Python接口。
- Flask-Assets,整合应用程序资源。
- pybuilder - A continuous build tool written in pure Python.
代码调试
- unittest,Python标准库,单元测试框架。
- nose,鼻子,unittest延伸产品。
- pytest,成熟的全功能的Python测试工具。
- mamba,曼巴,Python的权威测试工具。出自BDD的旗下。
- contexts,背景,BDD测试框架,基于C#。
- pyshould,should风格的测试框架,基于PyHamcrest.
- pyvows,BDD风格测试框架
- Selenium,web测试框架,Python绑定Selenium。
- splinter,分裂,测试Web应用程序的开源工具。
- locust,刺槐,可扩展的用户负载测试工具,用Python写的。
- sixpack,语言无关的A/B测试框架。
- mock,模拟对象(英语:mock object,也译作模仿对象),模拟测试库。
- responses,工具函数,用于mock模拟测试。
- doublex,强大的测试框架。
- freezegun,通过时间调整,测试模块。
- httpretty,HTTP请求的模拟工具。
- httmock,mock模拟测试。
- coverage,代码覆盖度量测试。
- faker,生成模拟测试数据的Python包。
- mixer,混频器,产生模拟数据,用于Django ORM,SQLAlchemy,Peewee,MongoEngine,Pony ORM等
- model_mommy,在Django创建测试随机工具。
- ForgeryPy,易用的模拟数据发生器。
- radar,雷达,生成随机日期/时间。
- FuckIt.py,测试Python代码运行。
- Code-Analysispysonar2,Python类型索引。
- pycallgraph,可视化的流量(调用图)应用程序。
- code2flow,转换Python和JavaScript代码到流程图。
- LinterFlake8,源代码模块检查器
- pylama,Python和JavaScript代码审计工具。
- Pylint,源代码分析器,它查找编程错误,帮助执行一个代码标准和嗅探一些代码味道。注意:相比于PyChecker,Pylint是一个高阶的Python代码分析工具,它分析Python代码中的错误。
- Pyflakes,一个用于检查Python源文件错误的简单程序。Pyflakes分析程序并且检查各种错误。它通过解析源文件实现,无需导入。
- pdb,Python标准库,Python调试器。
- ipdb,IPython使用的PDB。
- winpdb,独立于平台的GUI调试器。
- pudb,全屏,基于python调试控制台。
- pyringe,-可附着于及注入代码到Python程序的调试器。
- python-statsd,statsd服务器客户端。
- memory_profiler,内存监视。
- profiling,交互式Python分析器。
- django-debug-toolbar,Django调试工具栏,显示各种调试信息:当前请求/响应。
- django-devserver,Django调试工具。
- flask-debugtoolbar,flask调试工具。
- traceback
Admin Panels
Libraries for administrative interfaces.
- ajenti - The admin panel your servers deserve.
- django-grappelli - A jazzy skin for the Django Admin-Interface.
- flask-admin - Simple and extensible administrative interface framework for Flask.
- flower - Real-time monitor and web admin for Celery.
- jet-bridge - Admin panel framework for any application with nice UI (ex Jet Django).
- wooey - A Django app which creates automatic web UIs for Python scripts.
- streamlit - A framework which lets you build dashboards, generate reports, or create chat apps in minutes.
ASGI Servers
ASGI-compatible web servers.
- daphne - A HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP.
- uvicorn - A lightning-fast ASGI server implementation, using uvloop and httptools.
- hypercorn - An ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
异步编程
Libraries for asynchronous, concurrent and parallel execution. Also see awesome-asyncio.
- asyncio - (Python standard library) Asynchronous I/O, event loop, coroutines and tasks. awesome-asyncio
- concurrent.futures - (Python standard library) A high-level interface for asynchronously executing callables.
- multiprocessing - (Python standard library) Process-based parallelism.
- trio - A friendly library for async concurrency and I/O.
- twisted - An event-driven networking engine.
- uvloop - Ultra fast asyncio event loop.
- eventlet - Asynchronous framework with WSGI support.
- gevent - A coroutine-based Python networking library that uses greenlet.
Authentication
Libraries for implementing authentications schemes.
- OAuth
- authlib - JavaScript Object Signing and Encryption draft implementation.
- django-allauth - Authentication app for Django that "just works."
- django-oauth-toolkit - OAuth 2 goodies for Django.
- oauthlib - A generic and thorough implementation of the OAuth request-signing logic.
- JWT
- pyjwt - JSON Web Token implementation in Python.
- python-jose - A JOSE implementation in Python.
Built-in Classes Enhancement
Libraries for enhancing Python built-in classes.
- attrs - Replacement for
__init__,__eq__,__repr__, etc. boilerplate in class definitions. - bidict - Efficient, Pythonic bidirectional map data structures and related functionality..
- box - Python dictionaries with advanced dot notation access.
- dataclasses - (Python standard library) Data classes.
- dotteddict - A library that provides a method of accessing lists and dicts with a dotted path notation.
Caching
Libraries for caching data.
- beaker - A WSGI middleware for sessions and caching.
- django-cacheops - A slick ORM cache with automatic granular event-driven invalidation.
- dogpile.cache - dogpile.cache is a next generation replacement for Beaker made by the same authors.
- hermescache - Python caching library with tag-based invalidation and dogpile effect prevention.
- pylibmc - A Python wrapper around the libmemcached interface.
- python-diskcache - SQLite and file backed cache backend with faster lookups than memcached and redis.
ChatOps Tools
Libraries for chatbot development.
- errbot - The easiest and most popular chatbot to implement ChatOps.
Code Analysis
Tools of static analysis, linters and code quality checkers. Also see awesome-static-analysis.
- Code Analysis
- code2flow - Turn your Python and JavaScript code into DOT flowcharts.
- prospector - A tool to analyse Python code.
- vulture - A tool for finding and analysing dead Python code.
- Code Linters
- Code Formatters
- Static Type Checkers, also see awesome-python-typing
- mypy - Check variable types during compile time.
- pyre-check - Performant type checking.
- typeshed - Collection of library stubs for Python, with static types.
- Static Type Annotations Generators
- monkeytype - A system for Python that generates static type annotations by collecting runtime types.
- pytype - Pytype checks and infers types for Python code - without requiring type annotations.
Command-line Interface Development
Libraries for building command-line applications.
- Command-line Application Development
- cement - CLI Application Framework for Python.
- click - A package for creating beautiful command line interfaces in a composable way.
- cliff - A framework for creating command-line programs with multi-level commands.
- python-fire - A library for creating command line interfaces from absolutely any Python object.
- python-prompt-toolkit - A library for building powerful interactive command lines.
- Terminal Rendering
- alive-progress - A new kind of Progress Bar, with real-time throughput, eta and very cool animations.
- asciimatics - A package to create full-screen text UIs (from interactive forms to ASCII animations).
- bashplotlib - Making basic plots in the terminal.
- colorama - Cross-platform colored terminal text.
- rich - Python library for rich text and beautiful formatting in the terminal. Also provides a great
RichHandlerlog handler. - tqdm - Fast, extensible progress bar for loops and CLI.
Command-line Tools
Useful CLI-based tools for productivity.
- Productivity Tools
- copier - A library and command-line utility for rendering projects templates.
- cookiecutter - A command-line utility that creates projects from cookiecutters (project templates).
- doitlive - A tool for live presentations in the terminal.
- howdoi - Instant coding answers via the command line.
- invoke - A tool for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks.
- pathpicker - Select files out of bash output.
- thefuck - Correcting your previous console command.
- tmuxp - A tmux session manager.
- try - A dead simple CLI to try out python packages - it's never been easier.
- CLI Enhancements
- httpie - A command line HTTP client, a user-friendly cURL replacement.
- iredis - Redis CLI with autocompletion and syntax highlighting.
- litecli - SQLite CLI with autocompletion and syntax highlighting.
- mycli - MySQL CLI with autocompletion and syntax highlighting.
- pgcli - PostgreSQL CLI with autocompletion and syntax highlighting.
Computer Vision
Libraries for Computer Vision.
- easyocr - Ready-to-use OCR with 40+ languages supported.
- kornia - Open Source Differentiable Computer Vision Library for PyTorch.
- opencv - Open Source Computer Vision Library.
- pytesseract - A wrapper for Google Tesseract OCR.
- tesserocr - Another simple, Pillow-friendly, wrapper around the
tesseract-ocrAPI for OCR.
Configuration Files
Libraries for storing and parsing configuration options.
- configparser - (Python standard library) INI file parser.
- configobj - INI file parser with validation.
- hydra - Hydra is a framework for elegantly configuring complex applications.
- python-decouple - Strict separation of settings from code.
Cryptography
- cryptography - A package designed to expose cryptographic primitives and recipes to Python developers.
- paramiko - The leading native Python SSHv2 protocol library.
- pynacl - Python binding to the Networking and Cryptography (NaCl) library.
Data Validation
Libraries for validating data. Used for forms in many cases.
- cerberus - A lightweight and extensible data validation library.
- colander - Validating and deserializing data obtained via XML, JSON, an HTML form post.
- jsonschema - An implementation of JSON Schema for Python.
- schema - A library for validating Python data structures.
- schematics - Data Structure Validation.
- voluptuous - A Python data validation library.
- pydantic - Data validation using Python type hints.
Data Visualization
Libraries for visualizing data. Also see awesome-javascript.
- altair - Declarative statistical visualization library for Python.
- bokeh - Interactive Web Plotting for Python.
- bqplot - Interactive Plotting Library for the Jupyter Notebook.
- cartopy - A cartographic python library with matplotlib support.
- diagrams - Diagram as Code.
- matplotlib - A Python 2D plotting library.
- plotnine - A grammar of graphics for Python based on ggplot2.
- pygal - A Python SVG Charts Creator.
- pygraphviz - Python interface to Graphviz.
- pyqtgraph - Interactive and realtime 2D/3D/Image plotting and science/engineering widgets.
- seaborn - Statistical data visualization using Matplotlib.
- vispy - High-performance scientific visualization based on OpenGL.
Date and Time
Libraries for working with dates and times.
- arrow - A Python library that offers a sensible and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps.
- dateutil - Extensions to the standard Python datetime module.
- pendulum - Python datetimes made easy.
- pytz - World timezone definitions, modern and historical. Brings the tz database into Python.
Debugging Tools
Libraries for debugging code.
- pdb-like Debugger
- Tracing
- manhole - Debugging UNIX socket connections and present the stacktraces for all threads and an interactive prompt.
- python-hunter - A flexible code tracing toolkit.
- Profiler
- Others
- django-debug-toolbar - Display various debug information for Django.
- flask-debugtoolbar - A port of the django-debug-toolbar to flask.
- icecream - Inspect variables, expressions, and program execution with a single, simple function call.
- pyelftools - Parsing and analyzing ELF files and DWARF debugging information.
Deep Learning
Frameworks for Neural Networks and Deep Learning. Also see awesome-deep-learning.
- keras - A high-level neural networks library and capable of running on top of either TensorFlow or Theano.
- pytorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration.
- pytorch-lightning - Deep learning framework to train, deploy, and ship AI products Lightning fast.
- stable-baselines3 - PyTorch implementations of Stable Baselines (deep) reinforcement learning algorithms.
- tensorflow - The most popular Deep Learning framework created by Google.
- theano - A library for fast numerical computation.
DevOps Tools
Software and libraries for DevOps.
- Configuration Management
- ansible - A radically simple IT automation platform.
- cloudinit - A multi-distribution package that handles early initialization of a cloud instance.
- openstack - Open source software for building private and public clouds.
- pyinfra - A versatile CLI tools and python libraries to automate infrastructure.
- saltstack - Infrastructure automation and management system.
- SSH-style Deployment
- Process Management
- supervisor - Supervisor process control system for UNIX.
- Monitoring
- psutil - A cross-platform process and system utilities module.
- Backup
- borg - A deduplicating archiver with compression and encryption.
Distributed Computing
Frameworks and libraries for Distributed Computing.
- Batch Processing
- dask - A flexible parallel computing library for analytic computing.
- luigi - A module that helps you build complex pipelines of batch jobs.
- PySpark - Apache Spark Python API.
- Ray - A system for parallel and distributed Python that unifies the machine learning ecosystem.
- Stream Processing
- faust - A stream processing library, porting the ideas from Kafka Streams to Python.
- streamparse - Run Python code against real-time streams of data via Apache Storm.
Distribution
Libraries to create packaged executables for release distribution.
- py2app - Freezes Python scripts (Mac OS X).
- py2exe - Freezes Python scripts (Windows).
- pyarmor - A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
- pyinstaller - Converts Python programs into stand-alone executables (cross-platform).
- shiv - A command line utility for building fully self-contained zipapps (PEP 441), but with all their dependencies included.
Documentation
Libraries for generating project documentation.
- sphinx - Python Documentation generator. awesome-sphinxdoc
- pdoc - Epydoc replacement to auto generate API documentation for Python libraries.
Downloader
Libraries for downloading.
- akshare - A financial data interface library, built for human beings!
- s3cmd - A command line tool for managing Amazon S3 and CloudFront.
- youtube-dl - A command-line program to download videos from YouTube and other video sites.
Editor Plugins and IDEs
- Emacs
- elpy - Emacs Python Development Environment.
- Vim
- jedi-vim - Vim bindings for the Jedi auto-completion library for Python.
- python-mode - An all in one plugin for turning Vim into a Python IDE.
- YouCompleteMe - Includes Jedi-based completion engine for Python.
- Visual Studio
- PTVS - Python Tools for Visual Studio.
- Visual Studio Code
- Python - The official VSCode extension with rich support for Python.
- IDE
Libraries for sending and parsing email.
- Mail Servers
- Clients
- Others
Environment Management
Libraries for Python version and virtual environment management.
- pyenv - Simple Python version management.
- virtualenv - A tool to create isolated Python environments.
File Manipulation
Libraries for file manipulation.
- mimetypes - (Python standard library) Map filenames to MIME types.
- pathlib - (Python standard library) An cross-platform, object-oriented path library.
- path.py - A module wrapper for os.path.
- python-magic - A Python interface to the libmagic file type identification library.
- watchdog - API and shell utilities to monitor file system events.
Functional Programming
Functional Programming with Python.
- coconut - A variant of Python built for simple, elegant, Pythonic functional programming.
- funcy - A fancy and practical functional tools.
- more-itertools - More routines for operating on iterables, beyond
itertools. - returns - A set of type-safe monads, transformers, and composition utilities.
- cytoolz - Cython implementation of
Toolz: High performance functional utilities. - toolz - A collection of functional utilities for iterators, functions, and dictionaries.
GraphQL
Libraries for working with GraphQL.
- graphene - GraphQL framework for Python.
HTML Manipulation
Libraries for working with HTML and XML.
- beautifulsoup - Providing Pythonic idioms for iterating, searching, and modifying HTML or XML.
- bleach - A whitelist-based HTML sanitization and text linkification library.
- cssutils - A CSS library for Python.
- html5lib - A standards-compliant library for parsing and serializing HTML documents and fragments.
- lxml - A very fast, easy-to-use and versatile library for handling HTML and XML.
- markupsafe - Implements a XML/HTML/XHTML Markup safe string for Python.
- pyquery - A jQuery-like library for parsing HTML.
- untangle - Converts XML documents to Python objects for easy access.
- WeasyPrint - A visual rendering engine for HTML and CSS that can export to PDF.
- xmldataset - Simple XML Parsing.
- xmltodict - Working with XML feel like you are working with JSON.
HTTP Clients
Libraries for working with HTTP.
- httpx - A next generation HTTP client for Python.
- requests - HTTP Requests for Humans.
- treq - Python requests like API built on top of Twisted's HTTP client.
- urllib3 - A HTTP library with thread-safe connection pooling, file post support, sanity friendly.
Hardware
Libraries for programming with hardware.
- keyboard - Hook and simulate global keyboard events on Windows and Linux.
- mouse - Hook and simulate global mouse events on Windows and Linux.
- pynput - A library to control and monitor input devices.
- scapy - A brilliant packet manipulation library.
Implementations
Implementations of Python.
- cpython - Default, most widely used implementation of the Python programming language written in C.
- cython - Optimizing Static Compiler for Python.
- clpython - Implementation of the Python programming language written in Common Lisp.
- ironpython - Implementation of the Python programming language written in C#.
- micropython - A lean and efficient Python programming language implementation.
- numba - Python JIT compiler to LLVM aimed at scientific Python.
- peachpy - x86-64 assembler embedded in Python.
- pypy - A very fast and compliant implementation of the Python language.
- pyston - A Python implementation using JIT techniques.
Interactive Interpreter
Interactive Python interpreters (REPL).
- bpython - A fancy interface to the Python interpreter.
- Jupyter Notebook (IPython) - A rich toolkit to help you make the most out of using Python interactively.awesome-jupyter
- ptpython - Advanced Python REPL built on top of the python-prompt-toolkit.
Internationalization
Libraries for working with i18n.
- Babel - An internationalization library for Python.
- PyICU - A wrapper of International Components for Unicode C++ library (ICU).
Job Scheduler
Libraries for scheduling jobs.
- Airflow - Airflow is a platform to programmatically author, schedule and monitor workflows.
- APScheduler - A light but powerful in-process task scheduler that lets you schedule functions.
- django-schedule - A calendaring app for Django.
- doit - A task runner and build tool.
- gunnery - Multipurpose task execution tool for distributed systems with web-based interface.
- Joblib - A set of tools to provide lightweight pipelining in Python.
- Plan - Writing crontab file in Python like a charm.
- Prefect - A modern workflow orchestration framework that makes it easy to build, schedule and monitor robust data pipelines.
- schedule - Python job scheduling for humans.
- Spiff - A powerful workflow engine implemented in pure Python.
- TaskFlow - A Python library that helps to make task execution easy, consistent and reliable.
Logging
Libraries for generating and working with logs.
- logbook - Logging replacement for Python.
- logging - (Python standard library) Logging facility for Python.
- loguru - Library which aims to bring enjoyable logging in Python.
- sentry-python - Sentry SDK for Python.
- structlog - Structured logging made easy.
Machine Learning
Libraries for Machine Learning. Also see awesome-machine-learning.
- gym - A toolkit for developing and comparing reinforcement learning algorithms.
- H2O - Open Source Fast Scalable Machine Learning Platform.
- Metrics - Machine learning evaluation metrics.
- NuPIC - Numenta Platform for Intelligent Computing.
- scikit-learn - The most popular Python library for Machine Learning.
- Spark ML - Apache Spark's scalable Machine Learning library.
- vowpal_porpoise - A lightweight Python wrapper for Vowpal Wabbit.
- xgboost - A scalable, portable, and distributed gradient boosting library.
- MindsDB - MindsDB is an open source AI layer for existing databases that allows you to effortlessly develop, train and deploy state-of-the-art machine learning models using standard queries.
Microsoft Windows
Python programming on Microsoft Windows.
- Python(x,y) - Scientific-applications-oriented Python Distribution based on Qt and Spyder.
- pythonlibs - Unofficial Windows binaries for Python extension packages.
- PythonNet - Python Integration with the .NET Common Language Runtime (CLR).
- PyWin32 - Python Extensions for Windows.
- WinPython - Portable development environment for Windows 7/8.
Miscellaneous
Useful libraries or tools that don't fit in the categories above.
- blinker - A fast Python in-process signal/event dispatching system.
- boltons - A set of pure-Python utilities.
- itsdangerous - Various helpers to pass trusted data to untrusted environments.
- magenta - A tool to generate music and art using artificial intelligence.
- pluginbase - A simple but flexible plugin system for Python.
- tryton - A general purpose business framework.
Natural Language Processing
Libraries for working with human languages.
- General
- gensim - Topic Modeling for Humans.
- langid.py - Stand-alone language identification system.
- nltk - A leading platform for building Python programs to work with human language data.
- pattern - A web mining module.
- polyglot - Natural language pipeline supporting hundreds of languages.
- pytext - A natural language modeling framework based on PyTorch.
- PyTorch-NLP - A toolkit enabling rapid deep learning NLP prototyping for research.
- spacy - A library for industrial-strength natural language processing in Python and Cython.
- Stanza - The Stanford NLP Group's official Python library, supporting 60+ languages.
- Chinese
- funNLP - A collection of tools and datasets for Chinese NLP.
- jieba - The most popular Chinese text segmentation library.
- pkuseg-python - A toolkit for Chinese word segmentation in various domains.
- snownlp - A library for processing Chinese text.
Network Virtualization
Tools and libraries for Virtual Networking and SDN (Software Defined Networking).
- mininet - A popular network emulator and API written in Python.
- napalm - Cross-vendor API to manipulate network devices.
- pox - A Python-based SDN control applications, such as OpenFlow SDN controllers.
News Feed
Libraries for building user's activities.
- django-activity-stream - Generating generic activity streams from the actions on your site.
- Stream Framework - Building news feed and notification systems using Cassandra and Redis.
ORM
Libraries that implement Object-Relational Mapping or data mapping techniques.
- Relational Databases
- Django Models - The Django ORM.
- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper. awesome-sqlalchemy
- dataset - Store Python dicts in a database - works with SQLite, MySQL, and PostgreSQL.
- orator - The Orator ORM provides a simple yet beautiful ActiveRecord implementation.
- orm - An async ORM.
- peewee - A small, expressive ORM.
- pony - ORM that provides a generator-oriented interface to SQL.
- pydal - A pure Python Database Abstraction Layer.
- NoSQL Databases
- hot-redis - Rich Python data types for Redis.
- mongoengine - A Python Object-Document-Mapper for working with MongoDB.
- PynamoDB - A Pythonic interface for Amazon DynamoDB.
- redisco - A Python Library for Simple Models and Containers Persisted in Redis.
Package Management
Libraries for package and dependency management.
- pip - The package installer for Python.
- pip-tools - A set of tools to keep your pinned Python dependencies fresh. PyPI
- conda - Cross-platform, Python-agnostic binary package manager.
- poetry - Python dependency management and packaging made easy.
- uv - An extremely fast Python package and project manager, written in Rust.
Package Repositories
Local PyPI repository server and proxies.
- bandersnatch - PyPI mirroring tool provided by Python Packaging Authority (PyPA).
- devpi - PyPI server and packaging/testing/release tool.
- localshop - Local PyPI server (custom packages and auto-mirroring of pypi).
- warehouse - Next generation Python Package Repository (PyPI).
Penetration Testing
Frameworks and tools for penetration testing.
- fsociety - A Penetration testing framework.
- setoolkit - A toolkit for social engineering.
- sqlmap - Automatic SQL injection and database takeover tool.
Permissions
Libraries that allow or deny users access to data or functionality.
- django-guardian - Implementation of per object permissions for Django 1.2+
- django-rules - A tiny but powerful app providing object-level permissions to Django, without requiring a database.
Processes
Libraries for starting and communicating with OS processes.
- delegator.py - Subprocesses for Humans 2.0.
- sarge - Yet another wrapper for subprocess.
- sh - A full-fledged subprocess replacement for Python.
Recommender Systems
Libraries for building recommender systems.
- annoy - Approximate Nearest Neighbors in C++/Python optimized for memory usage.
- fastFM - A library for Factorization Machines.
- implicit - A fast Python implementation of collaborative filtering for implicit datasets.
- libffm - A library for Field-aware Factorization Machine (FFM).
- lightfm - A Python implementation of a number of popular recommendation algorithms.
- spotlight - Deep recommender models using PyTorch.
- Surprise - A scikit for building and analyzing recommender systems.
- tensorrec - A Recommendation Engine Framework in TensorFlow.
Refactoring
Refactoring tools and libraries for Python
- Bicycle Repair Man - Bicycle Repair Man, a refactoring tool for Python.
- Bowler - Safe code refactoring for modern Python.
- Rope - Rope is a python refactoring library.
Web Frameworks/RESTful API
Libraries for building RESTful APIs.
- Django
- django-rest-framework - A powerful and flexible toolkit to build web APIs.
- django-tastypie - Creating delicious APIs for Django apps.
- Flask
- eve - REST API framework powered by Flask, MongoDB and good intentions.
- flask-api - Browsable Web APIs for Flask.
- flask-restful - Quickly building REST APIs for Flask.
- Pyramid
- cornice - A RESTful framework for Pyramid.
- Framework agnostic
- falcon - A high-performance framework for building cloud APIs and web app backends.
- fastapi - A modern, fast, web framework for building APIs with Python 3.6+ based on standard Python type hints.
- hug - A Python 3 framework for cleanly exposing APIs.
- sandman2 - Automated REST APIs for existing database-driven systems.
- sanic - A Python 3.6+ web server and web framework that's written to go fast.
- Synchronous
- django - The most popular web framework in Python.awesome-django,awesome-django
- flask - A microframework for Python.awesome-flask
- pyramid - A small, fast, down-to-earth, open source Python web framework.awesome-pyramid
- masonite - The modern and developer centric Python web framework.
- Asynchronous
- tornado - A web framework and asynchronous networking library.
Robotics
Libraries for robotics.
- PythonRobotics - This is a compilation of various robotics algorithms with visualizations.
- rospy - This is a library for ROS (Robot Operating System).
RPC Servers
RPC-compatible servers.
- RPyC (Remote Python Call) - A transparent and symmetric RPC library for Python
- zeroRPC - zerorpc is a flexible RPC implementation based on ZeroMQ and MessagePack.
Science
Libraries for scientific computing. Also see Python-for-Scientists.
- astropy - A community Python library for Astronomy.
- bcbio-nextgen - Providing best-practice pipelines for fully automated high throughput sequencing analysis.
- bccb - Collection of useful code related to biological analysis.
- Biopython - Biopython is a set of freely available tools for biological computation.
- cclib - A library for parsing and interpreting the results of computational chemistry packages.
- Colour - Implementing a comprehensive number of colour theory transformations and algorithms.
- Karate Club - Unsupervised machine learning toolbox for graph structured data.
- NetworkX - A high-productivity software for complex networks.
- NIPY - A collection of neuroimaging toolkits.
- NumPy - A fundamental package for scientific computing with Python.
- ObsPy - A Python toolbox for seismology.
- Open Babel - A chemical toolbox designed to speak the many languages of chemical data.
- PyDy - Short for Python Dynamics, used to assist with workflow in the modeling of dynamic motion.
- PyMC - Markov Chain Monte Carlo sampling toolkit.
- QuTiP - Quantum Toolbox in Python.
- RDKit - Cheminformatics and Machine Learning Software.
- SciPy - A Python-based ecosystem of open-source software for mathematics, science, and engineering.
- SimPy - A process-based discrete-event simulation framework.
- statsmodels - Statistical modeling and econometrics in Python.
- SymPy - A Python library for symbolic mathematics.
- Zipline - A Pythonic algorithmic trading library.
Search
Libraries and software for indexing and performing search queries on data.
- django-haystack - Modular search for Django.
- elasticsearch-dsl-py - The official high-level Python client for Elasticsearch.
- elasticsearch-py - The official low-level Python client for Elasticsearch.
- pysolr - A lightweight Python wrapper for Apache Solr.
- whoosh - A fast, pure Python search engine library.
Serialization
Libraries for serializing complex data types
- marshmallow - A lightweight library for converting complex objects to and from simple Python datatypes.
- pysimdjson - A Python bindings for simdjson.
- python-rapidjson - A Python wrapper around RapidJSON.
- ultrajson - A fast JSON decoder and encoder written in C with Python bindings.
Serverless Frameworks
Frameworks for developing serverless Python code.
- python-lambda - A toolkit for developing and deploying Python code in AWS Lambda.
- Zappa - A tool for deploying WSGI applications on AWS Lambda and API Gateway.
Shell
Shells based on Python.
- xonsh - A Python-powered, cross-platform, Unix-gazing shell language and command prompt.
Specific Formats Processing
Libraries for parsing and manipulating specific text formats.
- General
- tablib - A module for Tabular Datasets in XLS, CSV, JSON, YAML.
- Office
- docxtpl - Editing a docx document by jinja2 template
- openpyxl - A library for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files.
- pyexcel - Providing one API for reading, manipulating and writing csv, ods, xls, xlsx and xlsm files.
- python-docx - Reads, queries and modifies Microsoft Word 2007/2008 docx files.
- python-pptx - Python library for creating and updating PowerPoint (.pptx) files.
- unoconv - Convert between any document format supported by LibreOffice/OpenOffice.
- XlsxWriter - A Python module for creating Excel .xlsx files.
- xlwings - A BSD-licensed library that makes it easy to call Python from Excel and vice versa.
- xlwt - Writing and reading data and formatting information from Excel files.
- xlrd - Writing and reading data and formatting information from Excel files.
- PDF
- pdfminer.six - Pdfminer.six is a community maintained fork of the original PDFMiner.
- PyPDF2 - A library capable of splitting, merging and transforming PDF pages.
- ReportLab - Allowing Rapid creation of rich PDF documents.
- Markdown
- Mistune - Fastest and full featured pure Python parsers of Markdown.
- Python-Markdown - A Python implementation of John Gruber’s Markdown.
- YAML
- PyYAML - YAML implementations for Python.
- CSV
- csvkit - Utilities for converting to and working with CSV.
- Archive
- unp - A command line tool that can unpack archives easily.
Static Site Generator
Static site generator is a software that takes some text + templates as input and produces HTML files on the output.
- lektor - An easy to use static CMS and blog engine.
- mkdocs - Markdown friendly documentation generator.
- makesite - Simple, lightweight, and magic-free static site/blog generator (< 130 lines).
- nikola - A static website and blog generator.
- pelican - Static site generator that supports Markdown and reST syntax.
Tagging
Libraries for tagging items.
- django-taggit - Simple tagging for Django.
Task Queues
Libraries for working with task queues.
- celery - An asynchronous task queue/job queue based on distributed message passing.
- dramatiq - A fast and reliable background task processing library for Python 3.
- huey - Little multi-threaded task queue.
- mrq - A distributed worker task queue in Python using Redis & gevent.
- rq - Simple job queues for Python.
Template Engine
Libraries and tools for templating and lexing.
- Genshi - Python templating toolkit for generation of web-aware output.
- Jinja2 - A modern and designer friendly templating language.
- Mako - Hyperfast and lightweight templating for the Python platform.
Testing
Libraries for testing codebases and generating test data.
- Testing Frameworks
- hypothesis - Hypothesis is an advanced Quickcheck style property based testing library.
- nose2 - The successor to
nose, based on `unittest2. - pytest - A mature full-featured Python testing tool.
- Robot Framework - A generic test automation framework.
- unittest - (Python standard library) Unit testing framework.
- Test Runners
- GUI/Web Testing
- locust - Scalable user load testing tool written in Python.
- PyAutoGUI - PyAutoGUI is a cross-platform GUI automation Python module for human beings.
- Schemathesis - A tool for automatic property-based testing of web applications built with Open API / Swagger specifications.
- Selenium - Python bindings for Selenium WebDriver.
- sixpack - A language-agnostic A/B Testing framework.
- splinter - Open source tool for testing web applications.
- Mock
- doublex - Powerful test doubles framework for Python.
- freezegun - Travel through time by mocking the datetime module.
- httmock - A mocking library for requests for Python 2.6+ and 3.2+.
- httpretty - HTTP request mock tool for Python.
- mock - (Python standard library) A mocking and patching library.
- mocket - A socket mock framework with gevent/asyncio/SSL support.
- responses - A utility library for mocking out the requests Python library.
- VCR.py - Record and replay HTTP interactions on your tests.
- Object Factories
- factory_boy - A test fixtures replacement for Python.
- mixer - Another fixtures replacement. Supports Django, Flask, SQLAlchemy, Peewee and etc.
- model_mommy - Creating random fixtures for testing in Django.
- Code Coverage
- coverage - Code coverage measurement.
- Fake Data
Text Processing
Libraries for parsing and manipulating plain texts.
- General
- chardet - Python 2/3 compatible character encoding detector.
- difflib - (Python standard library) Helpers for computing deltas.
- ftfy - Makes Unicode text less broken and more consistent automagically.
- fuzzywuzzy - Fuzzy String Matching.
- Levenshtein - Fast computation of Levenshtein distance and string similarity.
- pangu.py - Paranoid text spacing.
- pyfiglet - An implementation of figlet written in Python.
- pypinyin - Convert Chinese hanzi (漢字) to pinyin (拼音).
- textdistance - Compute distance between sequences with 30+ algorithms.
- unidecode - ASCII transliterations of Unicode text.
- Slugify
- awesome-slugify - A Python slugify library that can preserve unicode.
- python-slugify - A Python slugify library that translates unicode to ASCII.
- unicode-slugify - A slugifier that generates unicode slugs with Django as a dependency.
- Unique identifiers
- Parser
- ply - Implementation of lex and yacc parsing tools for Python.
- pygments - A generic syntax highlighter.
- pyparsing - A general purpose framework for generating parsers.
- python-nameparser - Parsing human names into their individual components.
- python-phonenumbers - Parsing, formatting, storing and validating international phone numbers.
- python-user-agents - Browser user agent parser.
- sqlparse - A non-validating SQL parser.
Third-party APIs
Libraries for accessing third party services APIs. Also see List of Python API Wrappers and Libraries.
- apache-libcloud - One Python library for all clouds.
- boto3 - Python interface to Amazon Web Services.
- django-wordpress - WordPress models and views for Django.
- facebook-sdk - Facebook Platform Python SDK.
- google-api-python-client - Google APIs Client Library for Python.
- gspread - Google Spreadsheets Python API.
- twython - A Python wrapper for the Twitter API.
URL Manipulation
Libraries for parsing URLs.
- furl - A small Python library that makes parsing and manipulating URLs easy.
- purl - A simple, immutable URL class with a clean API for interrogation and manipulation.
- pyshorteners - A pure Python URL shortening lib.
- webargs - A friendly library for parsing HTTP request arguments with built-in support for popular web frameworks.
Video
Libraries for manipulating video and GIFs.
- moviepy - A module for script-based movie editing with many formats, including animated GIFs.
- scikit-video - Video processing routines for SciPy.
- vidgear - Most Powerful multi-threaded Video Processing framework.
Web Asset Management
Tools for managing, compressing and minifying website assets.
- django-compressor - Compresses linked and inline JavaScript or CSS into a single cached file.
- django-pipeline - An asset packaging library for Django.
- django-storages - A collection of custom storage back ends for Django.
- fanstatic - Packages, optimizes, and serves static file dependencies as Python packages.
- fileconveyor - A daemon to detect and sync files to CDNs, S3 and FTP.
- flask-assets - Helps you integrate webassets into your Flask app.
- webassets - Bundles, optimizes, and manages unique cache-busting URLs for static resources.
Web Content Extracting
Libraries for extracting web contents.
- html2text - Convert HTML to Markdown-formatted text.
- lassie - Web Content Retrieval for Humans.
- micawber - A small library for extracting rich content from URLs.
- newspaper - News extraction, article extraction and content curation in Python.
- python-readability - Fast Python port of arc90's readability tool.
- requests-html - Pythonic HTML Parsing for Humans.
- sumy - A module for automatic summarization of text documents and HTML pages.
- textract - Extract text from any document, Word, PowerPoint, PDFs, etc.
- toapi - Every web site provides APIs.
Web Crawling
Libraries to automate web scraping.
- feedparser - Universal feed parser.
- grab - Site scraping framework.
- mechanicalsoup - A Python library for automating interaction with websites.
- scrapy - A fast high-level screen scraping and web crawling framework.
WebSocket
Libraries for working with WebSocket.
- autobahn-python - WebSocket & WAMP for Python on Twisted and asyncio.
- channels - Developer-friendly asynchrony for Django.
- websockets - A library for building WebSocket servers and clients with a focus on correctness and simplicity.
WSGI Servers
WSGI-compatible web servers.
- gunicorn - Pre-forked, ported from Ruby's Unicorn project.
- uwsgi - A project aims at developing a full stack for building hosting services, written in C.
- waitress - Multi-threaded, powers Pyramid.
- werkzeug - A WSGI utility library for Python that powers Flask and can easily be embedded into your own projects.