# python-api-tesing **Repository Path**: mark2root/python-api-tesing ## Basic Information - **Project Name**: python-api-tesing - **Description**: python中文库-python人工智能大数据自动化接口测试开发。 书籍下载及python库汇总https://china-testing.github.io/ - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-10 - **Last Updated**: 2021-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 人脸测试的一些小脚本和教程。 bazi/bazi.py:使用python排八字 [文档地址](https://china-testing.github.io/bazi.html) flask/api_demo: 使用python3和flask构建RESTful API(接口测试服务) 的源码 [文档地址](http://t.cn/RQzD0uY) book_scraper:一些爬取书籍的脚本。如果你知道有更好的免费书籍下载站点或下载脚本,请联系xurongzhong#126.com,谢谢 [文档地址](http://t.cn/RQzD0uY) book_scraper/requests_allitbooks.py 根据搜索词下载allitbooks的书籍,[文档](http://blog.sciencenet.cn/blog-2604609-1104696.html) wingide6 破解:other/wingide6_python3_crack.py * [国学 中医 历史等社科类书籍下载](https://github.com/china-testing/python-api-tesing/blob/master/society_books.md) * [电影 视频 下载](https://github.com/china-testing/python-api-tesing/blob/master/videos.md) * [IT类书籍 下载](https://github.com/china-testing/python-api-tesing/blob/master/books.md) tools目录: * check_face.py 从excel中读取文件,进行人脸识别 * check_md5.py 多进程检查MD5值重复文件 [文档](http://blog.sciencenet.cn/blog-2604609-1105189.html) * concat_file.py 合并文件,和linux的paste命令类似 * get_gaze_value.py 获取人脸识别服务器端注视的错误统计 * get_live_server_result.py 获取人脸识别服务器端活体的错误统计 * get_range.py 获取人脸识别的区间值 * get_verify_server_result.py 获取人脸识别服务器端比对的错误统计 * raw2jpg.py 转换ir,depth等raw图为jpg图 * rotate.py 图像旋转 * split_raw.py 切分raw图为ir,depth图 * [python3快速入门教程1 turtle绘图-1开始](https://china-testing.github.io/python3_crash1.html) * [接口自动化性能测试线上培训大纲](https://china-testing.github.io/testing_training.html) * [python测试开发自动化测试数据分析人工智能自学每周一练](https://china-testing.github.io/python_weeks.html) * [软件自动化测试初学者忠告](https://china-testing.github.io/testing_automation_tips.html) * 今日头条极速版看新闻可以赚钱,邀请码DBG8ADUK * 技术支持qq群: 144081101(后期会录制视频存在该群群文件) 591302926 567351477 钉钉免费群:21745728 * 道家技术-手相手诊看相中医等钉钉群21734177 qq群:391441566 184175668 338228106 看手相、面相、舌相、抽签、体质识别。服务费50元每人次起。请联系钉钉或者微信pythontesting Table of Contents ================= * [Table of Contents](#table-of-contents) * [Python测试开发库](#python测试开发库) * [参考资料](#参考资料) * [测试开发](#测试开发) * [Web UI测试自动化](#web-ui测试自动化) * [移动测试自动化](#移动测试自动化) * [Windows UI测试自动化](#windows-ui测试自动化) * [UI测试](#ui测试) * [性能测试](#性能测试) * [跨语言调用](#跨语言调用) * [测试框架](#测试框架) * [Mock](#mock) * [其他测试工具](#其他测试工具) * [持续交付](#持续交付) * [测试工具对接](#测试工具对接) * [awesome-python](#awesome-python) * [管理面板(Admin Panels)](#管理面板admin-panels) * [算法和设计模式(Algorithms and Design Patterns)](#算法和设计模式algorithms-and-design-patterns) * [反病毒(Anti-spam)](#反病毒anti-spam) * [资产管理(Asset Management)](#资产管理asset-management) * [音频(Audio)](#音频audio) * [认证(Authentication)](#认证authentication) * [内置类增强(Built-in Classes Enhancement)](#内置类增强built-in-classes-enhancement) * [区块链(Blockchain)](#区块链blockchain) * [CMS(Content Management Systems)](#cmscontent-management-systems) * [缓存(Caching)](#缓存caching) * [自动聊天工具(ChatOps Tools)](#自动聊天工具chatops-tools) * [代码分析和lint(Code Analysis)](#代码分析和lintcode-analysis) * [命令行工具(Command-line Tools)](#命令行工具command-line-tools) * [命令行程序开发( Command-line Application Development)](#命令行程序开发-command-line-application-development) * [生产力工具(Productivity Tools)](#生产力工具productivity-tools) * [兼容性(Compatibility)](#兼容性compatibility) * [计算机视觉(Computer Vision)](#计算机视觉computer-vision) * [并发和并行及异步与网络(Concurrency and Parallelism)](#并发和并行及异步与网络concurrency-and-parallelism) * [配置(Configuration)](#配置configuration) * [加密(Cryptography)](#加密cryptography) * [数据分析(Data Analysis)](#数据分析data-analysis) * [数据验证(Data Validation)](#数据验证data-validation) * [数据可视化(Data Visualization)](#数据可视化data-visualization) * [数据库(Database)](#数据库database) * [数据库驱动(Database Drivers)](#数据库驱动database-drivers) * [日期和时间(Date and Time)](#日期和时间date-and-time) * [调试工具(Debugging Tools)](#调试工具debugging-tools) * [深度学习(Deep Learning)](#深度学习deep-learning) * [DevOps工具(DevOps Tools)](#devops工具devops-tools) * [分发(Distribution)](#分发distribution) * [文档(Documentation)](#文档documentation) * [下载器(Downloader)](#下载器downloader) * [电子商务(E-commerce)](#电子商务e-commerce) * [编辑器插件(Editor Plugins and IDEs)](#编辑器插件editor-plugins-and-ides) * [电子邮件(Email)](#电子邮件email) * [环境管理(Environment Management)](#环境管理environment-management) * [文件(Files)](#文件files) * [外部函数接口(Foreign Function Interface)](#外部函数接口foreign-function-interface) * [表单(Forms)](#表单forms) * [函数式编程(Functional Programming)](#函数式编程functional-programming) * [图形用户界面(GUI)](#图形用户界面gui) * [HTML操作(HTML Manipulation)](#html操作html-manipulation) * [HTTP](#http) * [硬件(Hardware)](#硬件hardware) * [图像处理(Image Processing)](#图像处理image-processing) * [实现(Implementations)](#实现implementations) * [交互式Python解释器(Interactive Interpreter)](#交互式python解释器interactive-interpreter) * [国际化](#国际化) * [作业调度(Job Scheduler)](#作业调度job-scheduler) * [日志(Logging)](#日志logging) * [机器学习](#机器学习) * [MapReduce](#mapreduce) * [微软Windows](#微软windows) * [杂项](#杂项) * [自然语言处理(Natural Language Processing)](#自然语言处理natural-language-processing) * [网络虚拟化(Network Virtualization)](#网络虚拟化network-virtualization) * [网络(Networking)](#网络networking) * [动态消息](#动态消息) * [ORM](#orm) * [关系型数据库](#关系型数据库) * [NoSQL 数据库](#nosql-数据库) * [其他](#其他) * [包管理(Package Management)](#包管理package-management) * [包仓库](#包仓库) * [RESTful API](#restful-api) * [RPC服务器(RPC Servers)](#rpc服务器rpc-servers) * [科学(Science)](#科学science) * [搜索](#搜索) * [序列化(Serialization)](#序列化serialization) * [无服务器框架(Serverless Frameworks](#无服务器框架serverless-frameworks) * [特殊文本格式处理(Specific Formats Processing)](#特殊文本格式处理specific-formats-processing) * [通用](#通用) * [Office](#office) * [PDF](#pdf) * [Markdown](#markdown) * [YAML](#yaml) * [CSV](#csv) * [静态网站生成器(Static Site Generator)](#静态网站生成器static-site-generator) * [标签(Tagging)](#标签tagging) * [模板引擎(Template Engine)](#模板引擎template-engine) * [文本处理(Text Processing)](#文本处理text-processing) * [通用](#通用-1) * [Slugify](#slugify) * [解析器](#解析器) * [第三方 API(Third-party APIs)](#第三方-apithird-party-apis) * [URL处理(URL Manipulation)](#url处理url-manipulation) * [Video](#video) * [WSGI 服务器(WSGI Servers)](#wsgi-服务器wsgi-servers) * [网页内容提取(Web Content Extracting)](#网页内容提取web-content-extracting) * [网络爬虫(Web Crawling)](#网络爬虫web-crawling) * [Web 框架(Web Frameworks)](#web-框架web-frameworks) * [WebSocket](#websocket) * [监控](#监控) * [持续更新](#持续更新) # Python测试开发库 ## 参考资料 https://github.com/vinta/awesome-python https://github.com/atinfo/awesome-test-automation https://westurner.github.io/wiki/awesome-python-testing 交流QQ群:python 测试开发自动化测试 144081101 Python数据分析pandas Excel 630011153 中医草药自学自救大数据 391441566 南方中医草药鉴别学习 184175668 中医草药湿热湿疹胃病 291184506 python高级人工智能视觉 6089740 wechat: pythontesting # 测试开发 ## Web UI测试自动化 * splinter - web UI测试工具,基于selnium封装。 [链接](https://github.com/cobrateam/splinter) * selenium - web UI自动化测试。 [链接](https://github.com/SeleniumHQ/selenium/tree/master/py) --推荐 [文档参考](https://china-testing.github.io/selenium_example5.html) * mechanize- Python中有状态的程序化Web浏览。[链接](https://github.com/python-mechanize/mechanize) * pyppeteer- chrome/chromium自动化。[链接](https://github.com/miyakogi/pyppeteer) * selene - 使用Python + Ajax支持+ PageObjects + Widgets进行简明UI测试 [链接](https://github.com/yashaka/selene/) * hitch - 基于服务的应用程序的高级集成测试框架。[链接](https://github.com/hitchtest/hitch) * Needle - Css 自动化测试框架。[链接](https://github.com/python-needle/needle) * seleniumbase - 端到端自动化测试框架。[链接](https://github.com/seleniumbase/SeleniumBase) * pytest_splinter - pytest spinter和selenium集成。 [链接](https://github.com/pytest-dev/pytest-splinter) * Browsermob Proxy - Browsermob Proxy的python包装器。 [链接](https://github.com/AutomatedTester/browsermob-proxy-py) * Selenium-Requests - 扩展Selenium WebDriver类以包含请求库中的请求函数,同时完成所有需要的cookie和请求头处理。[链接](https://github.com/cryzed/Selenium-Requests) ## 移动测试自动化 * appium - 移动端UI自动化测试。 [链接](https://github.com/appium/python-client) --推荐 * uiautomator- 安卓UI自动化测试。 [链接](https://github.com/xiaocong/uiautomator) * ATX - 智能手机自动化工具。支持iOS,Android,WebApp和游戏。 网易出品 [链接](https://github.com/xiaocong/uiautomator) --推荐 * uiautomator2- Android Uiautomator2 Python Wrapper。 [链接](https://github.com/openatx/uiautomator2) --推荐 * facebook-wda Facebook WebDriverAgent Python Client Library (not official) 可用于IOS应用测试。 [链接](https://github.com/openatx/facebook-wda2) --推荐 ## Windows UI测试自动化 * Winium.Desktop - 开源测试自动化工具,用于基于WinForms和WPF平台自动测试Windows应用程序,基于Selenium远程WebDriver实现。 [链接](https://github.com/2gis/Winium.Desktop/) * pyautogui- 跨平台的UI自动化工具,控制鼠标和键盘。 [链接](https://github.com/asweigart/pyautogui) * autopy - 简单的跨平台GUI自动化工具包,适用于Python。 [链接](https://github.com/msanders/autopy) * pywinauto - Windows UI自动化。 [链接](https://github.com/pywinauto/pywinauto/) * SikuliX - 基于OpenCV的GUI测试框架,使用图像识别来定位与之间的项目,来自python 2.7的脚本,跨平台。[链接](https://github.com/RaiMan/SikuliX-2014) ## UI测试 * pyautoacad - AutoCAD自动化。 [链接](https://github.com/reclosedev/pyautocad) * sikuli - 位图自动化。 [链接](http://www.sikuli.org) * monkeyrunner- 安卓自动化。 [链接](https://developer.android.com/studio/test/monkeyrunner/index.html) * ldtp - Linux UI自动化。 [链接](https://pypi.python.org/pypi/ldtp) * dogtail- Linux UI自动化。 [链接](https://pypi.python.org/pypi/dogtail) * pyautoit- autoit python api。 [链接](https://github.com/jacexh/pyautoit) * 雪峰磁针石说明: autopy、WATSUP、winGuiAuto因为较长时间未更新未收录 ## 性能测试 [软件测试专家工具包2性能测试](https://china-testing.github.io/testing_tools_perf.html) https://china-testing.github.io/testing_tools_perf.html * funkload - 性能及功能测试工具。 [链接](http://funkload.nuxeo.org/) --推荐 * [**Locust.io**](http://locust.io/) – 了解服务器端性能的好工具。 语言python3。[源码](https://github.com/locustio/locust) python3+ python2.7+ github上star和fork最多的性能测试工具。 --强烈推荐 * [**Bees with Machine Guns**](https://github.com/newsapps/beeswithmachineguns) – 进行负载测试的蜜蜂(微型EC2实例)。 语言python3+ python2.6+ --强烈推荐 * [**Multi-Mechanize**](https://github.com/cgoldberg/multi-mechanize) – 用于性能和负载测试的开源框架,它运行并发Python脚本以生成针对远程站点或服务的负载(复合事务)。它通常用于Web性能和扩展性测试,但您也可以使用Multi-Mechanize来测试任何远程API。 --基于python多进程和多线程实现,学习自行开发性能测试的佳品。 Python 2.6 or 2.7 较长时间没有更新,一般只建议改造使用。 * ngrinder - 市面上最强大的性能测试工具之一,主要用jython书写脚本,性能在loadrunner和jmeter之上,扩展性好。 [链接](https://github.com/naver/ngrinder) --强烈推荐 * boom - 类似ab(ApacheBench)的性能测试工具。 [链接](https://github.com/tarekziade/boom) ## 跨语言调用 * [python库介绍-jpype:python到java桥](https://china-testing.github.io/python3_lib_jpype1.html) * [python库介绍-pyjnius:访问java类](https://china-testing.github.io/python3_lib_pyjniu.html) * [python3外部库boost介绍 用c++为python编写扩展](https://china-testing.github.io/python3_lib_boost.html) * [C++11和Python桥](https://github.com/pybind/pybind11) ## 测试框架 * [pyresttest](https://github.com/svanoort/pyresttest) 接口测试框架 -- 推荐 * [HttpRunner](https://github.com/HttpRunner/HttpRunner) HTTP接口测试框架 -- 推荐 * [augmented-traffic-control](https://github.com/facebook/augmented-traffic-control) facebook开发的最强悍弱网网络模拟工具 --强烈推荐 * Hypothesis - 高级单元测试测试框架,支持行为驱动,基于property 。 [链接](https://github.com/HypothesisWorks/hypothesis-python) -- 推荐 * unittest - (Python 标准库) 单元测试框架 [链接](https://docs.python.org/2/library/unittest.html) -- 推荐 * mamba - 行为驱动测试框架。 [链接](https://github.com/nestorsalceda/mamba) * nose- 更好的单元测试框架。 [链接](https://github.com/nose-devs/nose) -- 推荐 * nose2- nose基于unittest2的版本。 [链接](https://github.com/nose-devs/nose2) * pytest- 很好的强大的单元测试框架,实际上广泛使用在自动化单元、接口、功能等测试。 [链接](https://github.com/pytest-dev/pytest) -- 强烈推荐 [参考](https://china-testing.github.io/python_pytest_testing1.html) * testify - 单元测试框架,提供增强的测试fixture设置,将测试套件拆分成易于并行化的存储bucket,PEP8命名约定,带有大量日志/报告选项及颜色测试运行器。[链接](https://github.com/Yelp/Testify/) * trial - Twisted的单元测试框架,基于unittest。[链接](http://twistedmatrix.com/trac/wiki/TwistedTrial) * Robot Framework- 通用的python测试框架,易于上手,生成的报告比较好看,适合小型公司使用,支持关键字和数据等驱动,系业界内很出名的框架。不过因为写用例不能很灵活的应用python,需要大量的python封装,大公司通常使用pytest,django,flask之类的库自行开发。 [链接](https://github.com/robotframework/robotframework) * macaca - Macaca 是一套面向用户端软件的测试解决方案,提供了自动化驱动,环境配套,周边工具,集成方案,旨在解决终端上的测试、自动化、性能等方面的问题。 [链接](https://github.com/alibaba/macaca/blob/master/README.zh.md) * green- 彩色(命令行能显示多种颜色)的单元测试框架。 [链接](https://github.com/CleanCut/green) * tox- 基于virtualenv的测试框架,主要用于解决多版本python问题。 [链接](https://github.com/tox-dev/tox) * sixpack- A/B 测试框架。 [链接](https://github.com/sixpack/sixpack) * lettuce- 行为驱动 测试框架。 [链接](https://github.com/gabrielfalcao/lettuce) * pyccuracy- 行为驱动 web验收测试框架。 [链接](https://github.com/heynemann/pyccuracy) * pytest-bdd- 基于pytest的行为驱动 测试框架。 [链接](https://github.com/pytest-dev/pytest-bdd) * pytest-html- pytest生成html插件。 [链接](https://github.com/pytest-dev/pytest-html/) * ddt- 数据驱动测试。 [链接](https://github.com/txels/ddt) * behave- 行为驱动测试。 [链接](https://github.com/behave/behave) * lettuce- 行为驱动测试。 [链接](https://github.com/gabrielfalcao/lettuce) * mamba - Python的测试定义工具,基于行为驱动。[链接](https://github.com/nestorsalceda/mamba) * pyvows - Python的异步行为驱动开发,Vows.js的python移植。[链接](https://github.com/heynemann/pyvows) * pyhamcrest - Python的Hamcrest匹配器。 [链接](https://github.com/hamcrest/PyHamcrest) * sure - 强大而灵活的断言python测试库。[链接](https://github.com/gabrielfalcao/sure) * factory_boy - 基于thinkbot的factory_girl的fixture替代。[链接](https://github.com/FactoryBoy/factory_boy) ## Mock * doublex:强大的测试桩框架。[链接](https://bitbucket.org/DavidVilla/python-doublex) * mock:(Python3 标准库) mock和patch。[链接](https://docs.python.org/3/library/unittest.mock.html) * freezegun:伪造时间。[链接]https://github.com/spulec/freezegun) * httmock:Python 2.7+ 和 3.4+ mock requests库。[链接](https://github.com/patrys/httmock) * httpretty:Python 的 HTTP 请求 客户端mock 工具,暂时不支持python3。[链接](https://github.com/tox-dev/tox) * responses:针对requests 库的mock库。[链接](https://github.com/getsentry/responses) * VCR.py:录制HTTP请求加快测试执行速度并可进行mock。[链接](https://github.com/kevin1024/vcrpy) -- 推荐 * factoryboy:Python测试fixtures(setup和teardown)替代库。[链接](https://github.com/FactoryBoy/factory_boy) * mixer:另外一个测试fixtures(setup和teardown)替代库,支持 Django, Flask, SQLAlchemy, Peewee 等。[链接](https://github.com/klen/mixer) * modelmommy:为 Django测试创建随机fixtures [链接](https://github.com/vandersonmota/model_mommy) * faker:生成多种伪数据。[链接](https://github.com/joke2k/faker) * fake2db:伪造数据库生成器。[链接](https://github.com/emirozer/fake2db) * mimesis:生成mock数据。[链接]https://github.com/lk-geimfari/mimesis) * 雪峰磁针石说明: radar 因为github星级太少而未收录 最近版本参见原文:https://github.com/china-testing/python-api-tesing ## 其他测试工具 * coverage:代码覆盖率。[链接](https://bitbucket.org/ned/coveragepy) * FuckIt.py:代码出错也可以执行。[链接](https://github.com/ajalt/fuckitpy) * RoboBrowser:一个简单的,Python 风格的库,用来浏览网站,而不需要一个独立安装的浏览器。[链接](https://github.com/jmcarp/robobrowser) * MechanicalSoup:用于自动和网络站点交互的 Python 库。[链接](https://github.com/MechanicalSoup/MechanicalSoup) * augmented-traffic-control:网络模拟工具。[链接](https://github.com/facebook/augmented-traffic-control) -- 强烈推荐 ## 持续交付 * buildbot - google等公司使用的持续集成框架,上手比Jenkins难,功能和性能远比Jenkins强大。 [链接](https://github.com/buildbot/buildbot/) [python库介绍-buildbot教程](https://china-testing.github.io/python3_lib_buildbot.html) * BitBake – 嵌入式Linux上类似make工具。[链接](http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html) * buildout – 用于从多个部分创建,组装和部署应用程序的构建系统。[链接](hhttps://github.com/buildout/buildout/blob/master/doc/index.rst) * PlatformIO – 在不同的开发平台的控制台构建工具。[链接](https://github.com/platformio/platformio-core) * PyBuilder – 纯Python编写的持续构建工具。[链接](https://github.com/buildbot/buildbot/) * SCons – 软件构建工具。[链接](https://github.com/SCons/scons) * jenkinsapi – Hudson & Jenkins python API。[链接](https://github.com/pycontribs/jenkinsapi) ## 测试工具对接 * jira –自动化JIRA。[链接](https://github.com/pycontribs/jira) # awesome-python ## 管理面板(Admin Panels) * Ajenti - Linux & BSD web管理面板。管理进程和文件等。 [链接](https://github.com/ajenti/ajenti) * django-suit - 现代主题的Django管理界面(仅限非商业用途)。[链接](https://github.com/darklow/django-suit) * django-xadmin - 方便的Django admin替代。 完全支持插件扩展,基于 Twitter Bootstrap,并有站内书签、支持 xls, csv, xml和json数据导入等不少增强。 [链接](https://github.com/sshwsfc/xadmin) * flask-admin - Flask的简单和可扩展的 web 管理界面框架。 [链接](https://github.com/flask-admin/flask-admin) * flower - Celery的实时监控和网络。 [链接](https://github.com/flask-admin/flask-admin) * Grappelli - Django管理界面的爵士皮肤。[链接]https://github.com/sehmaschine/django-grappelli) * Wooey - 为Python脚本创建自动Web UI的Django应用程序。 [链接](https://github.com/wooey/wooey) ## 算法和设计模式(Algorithms and Design Patterns) Python的算法和设计模式的实现。 * algorithms - Python的算法模块。 [链接](https://github.com/nryoung/algorithms) * PyPattyrn - 简单有效实现通用设计模式。 [链接](https://github.com/tylerlaberge/PyPattyrn) * python-patterns - Python中设计模式的集合。 [链接](https://github.com/faif/python-patterns) * sortedcontainers - SortedList,SortedDict和SortedSet类型的快速,纯Python实现。 [链接](https://github.com/grantjenks/sorted_containers/) ## 反病毒(Anti-spam) * django-simple-captcha - 简单且高度可定制的Django应用,可以将验证码图像添加到任何Django表单。 [链接](https://github.com/mbi/django-simple-captcha) * 雪峰磁针石说明: django-simple-spam-blocker因为github星级太少而未收录 最近版本参见原文:https://github.com/china-testing/python-api-tesing ## 资产管理(Asset Management) 用于管理,压缩和缩小网站资产的工具。 * django-compressor - 将链接和内联的JavaScript或CSS压缩到单个缓存文件中。 [链接](https://github.com/django-compressor/django-compressor) * django-pipeline - Django的资产包装库。 [链接](https://github.com/jazzband/django-pipeline) * django-storages - Django自定义存储后端集。 [链接](https://github.com/jschneier/django-storages) * fanstatic - 用 Python 的包的方式封装,优化静态文件并解依赖。 [链接](http://www.fanstatic.org/en/latest/intro.html) * fileconveyor - 检测和同步文件到CDN,S3和FTP的后台程序。 [链接](https://github.com/wimleers/fileconveyor) * flask-assets - 集成web 资源到Flask应用。 [链接](https://github.com/faif/python-patterns) * jinja-assets-compressor - Jinja扩展程序,用于编译和压缩资源。 [链接](https://github.com/faif/python-patterns) -- github星级不到100. * webassets - 为静态资源打包,优化和管理基于缓存的唯一URL。 [链接](https://github.com/miracle2k/webassets) ## 音频(Audio) 操作音频的库。 * audiolazy - 数字信号处理(DSP)软件包。 [链接](https://github.com/danilobellini/audiolazy) * audioread - 跨库(GStreamer +Core Audio+ MAD + FFmpeg)音频解码。[链接](https://github.com/beetbox/audioread) * beets - 音乐库管理和MusicBrainzb标签。[链接](https://github.com/beetbox/beets) -- 推荐 * dejavu - 音频指纹识别。[链接](https://github.com/worldveil/dejavu) -- 推荐 * id3reader - 用于读取MP3元数据的Python模块。[链接](https://nedbatchelder.com/code/modules/id3reader.py) * m3u8 - 解析m3u8文件的模块。[链接](https://github.com/globocom/m3u8) * mingus - 先进的音乐理论和MIDI文件和播放支持符号包。[链接](https://github.com/bspaans/python-mingus) * mutagen - 用于处理音频元数据的Python模块。[链接](https://github.com/quodlibet/mutagen) * pyAudioAnalysis - Python音频分析库:特征提取,分类,分割和应用。[链接](https://github.com/tyiannak/pyAudioAnalysis) -- 推荐 * pydub - 通过简单易用的高级界面处理音频。[链接](https://github.com/jiaaro/pydub) -- 推荐 * pyechonest - Echo Nest API的Python客户端。[链接](https://github.com/echonest/pyechonest) * talkbox - 用于语音/信号处理的Python库。[链接](https://github.com/miracle2k/webassets) * TimeSide - 开放的Web音频处理框架。[链接](https://github.com/Parisson/TimeSide) * tinytag - 用于读取MP3,OGG,FLAC和Wave文件的音乐元数据的库。[链接](https://github.com/devsnd/tinytag) * 雪峰磁针石说明: django-elastic-transcoder, eyeD3 因为github星级太少而未收录 scikits.talkbox 因长时间未更新未收录 最近版本参见原文:https://github.com/china-testing/python-api-tesing ## 认证(Authentication) * Authomatic:简单但是强大的框架,身份验证/授权客户端。[链接](https://github.com/authomatic/authomatic) * django-allauth:Django 的验证应用。[链接](https://github.com/pennersr/django-allauth) * django-oauth-toolkit: Django OAuth2。[链接](https://github.com/evonove/django-oauth-toolkit) * django-oauth2-provider:Django OAuth2。[链接](https://github.com/caffeinehit/django-oauth2-provider) * Flask-OAuthlib: Flask OAuthlib 。[链接](https://github.com/lepture/flask-oauthlib) * OAuthLib: 通用完整的实现OAuth请求-签名逻辑。[链接](https://github.com/idan/oauthlib) * python-oauth2:创建 OAuth 客户端和服务端完全测试的抽象接口。[链接](https://github.com/joestump/python-oauth2) * python-social-auth:设置简单的社交认证。[链接](https://github.com/python-social-auth/social-core) * rauth:OAuth 1.0/a, 2.0, 和 Ofly。[链接](https://github.com/litl/rauth) * sanction:一个超级简单的OAuth2 客户端实现。[链接](https://github.com/demianbrecht/sanction) * PyJWT:JSON Web 令牌草案 01。[链接](https://github.com/jpadilla/pyjwt) * python-jwt:生成和验证 JSON Web 令牌。[链接](https://github.com/davedoesdev/python-jwt) * 雪峰磁针石说明: jose,python-jws因为github星级太少而未收录 scikits.talkbox 因长时间未更新未收录 ## 内置类增强(Built-in Classes Enhancement) * [attrs](https://github.com/python-attrs/attrs) - 替换类定义中的__init__,__eq__,__repr__等样板文件。 * [bidict](https://github.com/jab/bidict) - 高效的双向字典。 * [Box](https://github.com/cdgriffith/Box) - 点符号访问的Python字典 ## 区块链(Blockchain) * [blockchain](https://github.com/dvf/blockchain) - 简单的区块链。 * [bidict](https://github.com/jab/bidict) - 高效的双向字典。 * [Box](https://github.com/cdgriffith/Box) - 点符号访问的Python字典 ## CMS(Content Management Systems) 内容管理系统 * django-cms:开源的,基于Django的企业级 CMS。[链接](https://www.django-cms.org/en/) * djedi-cms:轻量级但却非常强大的 Django CMS ,考虑到了插件,内联编辑以及性能。[链接]http://djedi-cms.org/) * FeinCMS:基于 Django 构建的最先进的内容管理系统之一。[链接](https://github.com/feincms/feincms/) * Kotti:高层的的web应用框架,基于 Pyramid 构建。[链接](https://github.com/Kotti/Kotti) * Mezzanine:强大的,一致的,灵活的内容管理平台。[链接](https://github.com/stephenmcd/mezzanine) -- 推荐 * Opps:杂志,报纸网站以及大流量门户网站设计的 CMS 平台,基于 Django。[链接]https://github.com/opps/opps) * Plone:构建于开源应用服务器 Zope 之上的 CMS。[链接](https://plone.org/) * Quokka:灵活,可扩展的小型 CMS,基于 Flask 和 MongoDB。[链接](https://github.com/quokkaproject/quokka) * Wagtail:Django 内容管理系统。[链接](https://github.com/wagtail/wagtail) -- 推荐 * Widgy: CMS 框架,基于 Django。[链接](https://wid.gy/) ## 缓存(Caching) 缓存数据的库。 * Beaker:缓存和会话库,可以用在 web 应用和独立 Python脚本和应用上。[链接](https://github.com/bbangert/beaker) * DiskCache:Python磁盘缓存(Django兼容)。。[链接](https://github.com/grantjenks/python-diskcache/) * django-cache-machine:Django 模型的自动缓存和失效。[链接](https://github.com/django-cache-machine/django-cache-machine) * django-cacheops:具有自动颗粒化事件驱动失效功能的 ORM。[链接](https://github.com/Suor/django-cacheops) * dogpile.cache:dogpile.cache 是 Beaker 的替代,由同一作者开发。[链接](http://dogpilecache.readthedocs.io/en/latest/) * HermesCache:Python 缓存库,具有基于标签的失效和 dogpile effect 保护功能。[链接](https://bitbucket.org/saaj/hermes/) * johnny-cache:django应用缓存框架。[链接]https://github.com/jmoiron/johnny-cache) * pylibmc:libmemcached 接口的 Python 封装。[链接](https://github.com/lericson/pylibmc) * 雪峰磁针石说明: django-viewlet因为github星级太少而未收录 ## 自动聊天工具(ChatOps Tools) * Errbot:最简单和最流行的聊天机器人用来实现自动聊天工具。[链接](https://github.com/errbotio/errbot/) ## 代码分析和lint(Code Analysis) * coala:语言独立和易于扩展的代码分析应用程序。[链接](https://pypi.python.org/pypi/coala/0.12.0.dev20171216122902) * code2flow:把你的 Python 和 JavaScript 代码转换为流程图。暂时无法继续维护。[链接](https://github.com/scottrogowski/code2flow) * pycallgraph:这个库可以把你的Python 应用的流程(调用图)进行可视化。[链接](https://github.com/gak/pycallgraph) * Flake8:模块化源码检查工具: pep8, pyflakes 以及 co。[链接](https://gitlab.com/pycqa/flake8) * Pylint:一个完全可定制的源码分析器。[链接](https://github.com/PyCQA/pylint) * pylama:python代码审计。[链接](https://github.com/klen/pylama) * YAPF: Google的Python代码格式化工具。[链接](https://github.com/google/yapf) --推荐 * pylama:Python 和 JavaScript 的代码审查工具。[链接](https://github.com/klen/pylama/blob/develop/docs/index.rst) * autopep8:自动格式化 Python 代码,以使其符合 PEP8 规范。[链接](https://github.com/hhatto/autopep8) --推荐 * mypy :静态类型检查。[链接](https://github.com/python/mypy) --推荐 * pep8 :python风格检查。[链接](https://github.com/PyCQA/pycodestyle) --推荐 * prospector - 分析Python代码并输出有关错误,潜在问题,违反常规和复杂性的信息的工具。[链接](https://github.com/landscapeio/prospector) ## 命令行工具(Command-line Tools) ### 命令行程序开发( Command-line Application Development) * asciimatics:跨平台,全屏终端包(即鼠标/键盘输入和彩色,定位文本输出),完整的复杂动画和特殊效果的高级API。[链接](https://github.com/peterbrittain/asciimatics) * cement:Python 的命令行程序框架。[链接](https://github.com/datafolklabs/cement/) * click:一个通过组合的方式来创建精美命令行界面的包。[链接](https://github.com/pallets/click) --推荐 * cliff:一个用于创建命令行程序的框架,可以创建具有多层命令的命令行程序。[链接](https://git.openstack.org/cgit/openstack/cliff) * clint:Python 命令行程序工具。[链接](https://github.com/kennethreitz/clint) * colorama:跨平台彩色终端文本。[链接](https://github.com/tartley/colorama) * docopt:Python 风格的命令行参数解析器。[链接](https://github.com/docopt/docopt) --推荐 * Gooey:一条命令,将命令行程序变成一个 GUI 程序。[链接](https://github.com/chriskiehl/Gooey) * Python-Fire:将命令行程序变成一个 GUI 程序。[链接](https://github.com/google/python-fire) --推荐 * python-prompt-toolkit:构建强大的交互式命令行程序的库。[链接](https://github.com/jonathanslenders/python-prompt-toolkit) --推荐 * Pythonpy:在命令行中直接执行任何Python指令。[链接](https://github.com/Russell91/pythonpy) ### 生产力工具(Productivity Tools) * aws-cli:Amazon Web Services 的通用命令行界面。[链接](https://github.com/aws/aws-cli) * bashplotlib:在终端中进行基本绘图。[链接](https://github.com/glamp/bashplotlib) * caniusepython3:判断是哪个项目妨碍你你移植到 Python 3。[链接](https://github.com/brettcannon/caniusepython3) * cookiecutter:从 cookiecutters(项目模板)创建项目的一个命令行工具。[链接](https://github.com/brettcannon/caniusepython3) * doitlive:一个用来在终端中进行现场演示的工具。[链接](https://github.com/sloria/doitlive) * howdoi:通过命令行获取即时的编程问题解答。[链接](https://github.com/gleitz/howdoi) --推荐 * httpie:命令行HTTP 客户端,cURL 的替代品,易用性更好。[链接](https://github.com/jakubroztocil/httpie) * PathPicker:从bash输出中选出文件。[链接](https://github.com/facebook/PathPicker) * percol:向UNIX shell 传统管道概念中加入交互式选择功能。[链接](https://github.com/mooz/percol) * SAWS:一个加强版的 AWS 命令行。[链接](https://github.com/donnemartin/saws) * thefuck:修正你之前的命令行指令。[链接](https://github.com/nvbn/thefuck) * mycli:一个 MySQL 命令行客户端,具有自动补全和语法高亮功能。[链接](https://github.com/dbcli/mycli) --推荐 * pgcli:Postgres 命令行工具,具有自动补全和语法高亮功能。[链接](https://github.com/dbcli/pgcli) --推荐 * try:很简单的命令行工具,用来试用python库。[链接](https://github.com/timofurrer/try) ## 兼容性(Compatibility) 帮助从 Python 2 向 Python 3迁移的库。 * Python-Future:这就是 Python 2 和 Python 3 之间丢失的那个兼容性层。[链接](https://github.com/PythonCharmers/python-future) * Python-Modernize:使 Python 代码更加现代化以便最终迁移到 Python 3。[链接]https://github.com/mitsuhiko/python-modernize) * Six:Python 2 和 3 的兼容性工具。[链接](https://github.com/benjaminp/six) ## 计算机视觉(Computer Vision) 计算机视觉库。 * OpenCV:开源计算机视觉库。[链接](https://opencv.org/) [2018最佳人工智能图像处理工具OpenCV书籍下载](https://www.jianshu.com/p/62a32f108341) * pyocr:Tesseract 和 Cuneiform 的包装库。[链接](https://github.com/openpaperwork/pyocr) * pytesseract:Google Tesseract OCR 的另一包装库。[链接](https://github.com/madmaze/pytesseract) [文档](https://china-testing.github.io/python3_lib_pytesseract.html) * SimpleCV:一个用来创建计算机视觉应用的开源框架。[链接](https://github.com/sightmachine/SimpleCV) ## 并发和并行及异步与网络(Concurrency and Parallelism) 用以进行并发和并行操作的库。 * multiprocessing:(Python 标准库) 基于进程的“线程”接口。[链接](https://docs.python.org/2/library/multiprocessing.html) --推荐 * threading:(Python 标准库)更高层的线程接口。 [链接](https://docs.python.org/2/library/threading.html) --推荐 * eventlet:支持 WSGI 的异步框架。[链接](https://github.com/eventlet/eventlet/) * gevent:一个基于协程的 Python 网络库,使用greenlet。[链接](https://github.com/gevent/gevent) --推荐 * Tomorrow:用于产生异步代码的神奇的装饰器语法实现。 [链接](https://github.com/madisonmay/Tomorrow)  * uvloop:在libuv之上超快速实现asyncio事件循环。[链接](https://github.com/MagicStack/uvloop) --推荐 * asyncio - (Python 标准库) 异步 I/O, 事件循环, 协程以及任务 [链接](https://docs.python.org/3/library/asyncio.html) --推荐 * aiohttp 异步http client/server框架(asyncio) [链接](https://github.com/aio-libs/aiohttp) --推荐 * curio 协程并发库. [链接](https://github.com/dabeaz/curio) * pulsar - 事件驱动的并发框架. [链接](https://github.com/quantmind/pulsar) * pyzmq - ZeroMQ 消息库的 Python 封装. [链接](https://github.com/zeromq/pyzmq/blob/master/docs/source/index.rst) * Twisted - 事件驱动的网络引擎. 和asyncio有很多类似的地方,逐渐被代替,需要数据库等相关生态圈的支持 [链接](https://github.com/twisted/twisted) * diesel - 基于Greenlet 的事件 I/O 框架。. [链接](https://github.com/dieseldev/diesel) * Tornado - web 框架和异步网络库. [链接](https://github.com/tornadoweb/tornado/blob/master/docs/index.rst) * Trio – 异步I/O [链接](https://github.com/python-trio/trio) 可能会飙升 * NAPALM - 处理网络设备的跨供应API. [链接](https://github.com/napalm-automation/napalm) * txZMQ - 基于 Twisted 的 ZeroMQ 消息库的 Python 封装。[链接](https://github.com/smira/txZMQ) ## 配置(Configuration) 用来保存和解析配置的库。 * config:logging 模块作者写的分级配置模块。[链接](https://pypi.python.org/pypi/config) -- 较长时间未更新 * ConfigObj:INI 文件解析器,带验证功能。[链接](https://github.com/DiffSK/configobj) * ConfigParser:(Python 标准库) INI 文件解析器。[链接](https://docs.python.org/2/library/configparser.html) * profig:通过值转换配置多种格式。[链接](https://bitbucket.org/dhagrow/profig/) * python-decouple:将设置和代码完全隔离。[链接](https://github.com/henriquebastos/python-decouple) ## 加密(Cryptography) * cryptography:这个软件包意在提供密码学基本内容和方法提供给 Python 开发者。[链接](https://github.com/pyca/cryptography/blob/master/docs/index.rst) * hashids:在 Python 中实现 hashids 。[链接](https://github.com/davidaurelio/hashids-python) * Paramiko:SSHv2 协议的 Python (2.6+, 3.3+) ,提供客户端和服务端的功能。[链接](https://github.com/paramiko/paramiko/) -- 推荐 * Passlib:安全密码存储/哈希库,[链接](https://bitbucket.org/ecollins/passlib/overview) * PyCrypto:Python 密码学工具箱。[链接](https://github.com/dlitz/pycrypto) * PyNacl:网络和密码学(NaCl) 库的 Python 绑定。[链接](https://github.com/pyca/pynacl) ## 数据分析(Data Analysis) * blaze:NumPy 和 Pandas 的大数据接口。[链接](https://github.com/blaze/blaze) * Open Mining:使用 Python 挖掘商业情报 (BI) (Pandas web 接口)。[链接](https://github.com/mining/mining) * orange:通过可视化编程或 Python 脚本进行数据挖掘,数据可视化,分析和机器学习。[链接](https://github.com/biolab/orange3) * Pandas:提供高性能,易用的数据结构和数据分析工具。[链接](https://github.com/pandas-dev/pandas) --强烈推荐 * [facets](https://github.com/PAIR-code/facets) 机器学习数据集可视化 --推荐 * 书籍:利用Python进行数据分析 2017 第二版 代码 [链接](https://github.com/wesm/pydata-book) --推荐 * [利用Python进行数据分析·第2版](https://www.jianshu.com/p/ac7bec000dad) --推荐 ## 数据验证(Data Validation) 数据验证库。多用于表单验证。 * Cerberus: 轻量级可扩展的数据验证库.[链接](https://github.com/pyeve/cerberus/) * colander:验证并反序列化XML、JSON、HTML表单获取的数据。[链接](https://github.com/Pylons/colander/blob/master/docs/index.rst) * jsonschema:json模式的实现。[链接](https://github.com/Julian/jsonschema) * kmatch:一种用于匹配/验证/筛选 Python 字典的语言。[链接]() * schema:一个用于对 Python 数据结构进行验证的库。[链接]() * Schematics:人性化的python数据结构。[链接](https://github.com/schematics/schematics) * valideer:轻量级可扩展的数据验证和适配库。[链接](https://github.com/podio/valideer) * voluptuous:Python 数据验证库。主要是为了验证传入 Python的 JSON,YAML 等数据。[链接](https://github.com/alecthomas/voluptuous) ## 数据可视化(Data Visualization) 进行数据可视化的库。 参见: [awesome-javascript](https://github.com/sorrycc/awesome-javascript#data-visualization)。 * matplotlib:Python 2D 绘图库。[链接](https://github.com/matplotlib/matplotlib) --推荐 * bokeh:用Python进行交互式web绘图。[链接](https://github.com/bokeh/bokeh) --推荐 [英文快速入门](http://bokeh.pydata.org/en/latest/docs/user_guide/quickstart.html) [中文快速入门](https://github.com/DonaldDai/Bokeh-CN) * ggplot:ggplot的 Python移植。[链接](https://github.com/yhat/ggpy) -荐 * plotly:交互式基于浏览器的绘图。[链接](https://github.com/plotly/plotly.py) * pyecharts:基于百度 Echarts 的数据可视化库。[链接](https://github.com/pyecharts/pyecharts) -荐 * pygal:Python SVG 图表创建工具。[链接](https://github.com/Kozea/pygal/blob/master/docs/index.rst) * pygraphviz:Graphviz 的 Python 接口。[链接](https://github.com/pygraphviz/pygraphviz) * PyQtGraph:交互式实时 2D/3D/ 图像绘制及科学/工程学组件。[链接](https://github.com/pyqtgraph/pyqtgraph) * SnakeViz:基于浏览器的 Python cProfile 模块输出结果查看工具。[链接](https://github.com/jiffyclub/snakeviz/) * vincent:把 Python 转换为 Vega 语法的转换工具。[链接](https://github.com/wrobstory/vincent) * VisPy:基于 OpenGL 的高性能科学可视化工具。[链接](https://github.com/vispy/vispy) * Altair - 用于Python的声明式统计可视化库。[链接](https://github.com/altair-viz/altair) * bqplot - Jupyter Notebook的互动绘图库。[链接](https://github.com/bloomberg/bqplot) * Seaborn - 使用Matplotlib进行统计数据可视化。[链接](https://github.com/mwaskom/seaborn) -荐 * [plotly.py](https://github.com/plotly/plotly.py) 交互式基于浏览器的绘图 -荐 [A Dramatic Tour through Python’s Data Visualization Landscape (including ggplot and Altair)](https://dsaber.com/2016/10/02/a-dramatic-tour-through-pythons-data-visualization-landscape-including-ggplot-and-altair/) [Python data visualization: Comparing 7 tools](https://www.dataquest.io/blog/python-data-visualization-libraries/) [10 Useful Python Data Visualization Libraries for Any Discipline](https://blog.modeanalytics.com/python-data-visualization-libraries/) [Overview of Python Visualization Tools](http://pbpython.com/visualization-tools-1.html) [Effectively Using Matplotlib ](http://pbpython.com/effective-matplotlib.html) [pyecharts + notebook](https://www.kesci.com/apps/home/project/5a01adce60680b295c19deb4) [Bokeh vs Dash](https://blog.sicara.com/bokeh-dash-best-dashboard-framework-python-shiny-alternative-c5b576375f7f) [01+ Resources to Learn Data Science](http://code-love.com/2017/05/27/learn-data-science/) [chinese](http://www.dianyue.me/archives/498/y4xzcivaqf7shw5n/) ## 数据库(Database) Python实现的数据库。 * pickleDB:简单,轻量级键值储存数据库。[链接](https://github.com/patx/pickledb) * PipelineDB:流式 SQL 数据库。[链接](https://github.com/pipelinedb/pipelinedb) * TinyDB:轻型的,面向文档型数据库。[链接](https://github.com/msiemens/tinydb) * ZODB: Python 原生对象数据库。键值和对象图数据库。[链接](https://github.com/zopefoundation/zodb/blob/master/doc/index.rst) ## 数据库驱动(Database Drivers) 连接和操作数据库的库。 * mysql-python:Python 的 MySQL 数据库连接器。[链接](https://sourceforge.net/projects/mysql-python/) 不支持python3,不推荐 * PyMySQL:纯 Python MySQL 驱动,兼容 mysql-python。[链接](https://github.com/PyMySQL/PyMySQL) --推荐 * mysql-connector-python:mysql官方python API。[链接](https://pypi.python.org/pypi/mysql-connector-python) --推荐 * psycopg :Python 中最流行的 PostgreSQL 适配器。[链接](http://initd.org/psycopg/) --推荐 * queries:psycopg2 库的封装,用来和 PostgreSQL 进行交互。[链接](https://github.com/gmr/queries) * txpostgres:基于 Twisted 的异步 PostgreSQL 驱动。[链接](https://github.com/wulczer/txpostgres) * apsw:另一个 Python SQLite 封装。[链接](https://rogerbinns.github.io/apsw/) * dataset:在数据库中存储 Python 字典 pymssql:简单的 Microsoft SQL Server 数据库接口。[链接](https://github.com/pudo/dataset) * cassandra-python-driver:Cassandra 的 Python 驱动。[链接](https://github.com/datastax/python-driver) * HappyBase:Apache HBase。[链接](https://github.com/wbolster/happybase) * Plyvel:快速且功能丰富的 LevelDB 的 Python 接口。[链接](https://github.com/wbolster/plyvel) * pycassa:Cassandra 的 Python Thrift 驱动。[链接](https://github.com/pycassa/pycassa) * PyMongo:MongoDB 的官方 Python 客户端。[链接](https://github.com/mongodb/mongo-python-driver) -- 推荐 * redis-py:Redis 的 Python 客户端。[链接](https://github.com/andymccurdy/redis-py) -- 推荐 * telephus:基于 Twisted 的 Cassandra 客户端。[链接](https://github.com/driftx/Telephus) * txRedis:基于 Twisted 的 Redis 客户端。[链接](https://github.com/driftx/Telephus) ## 日期和时间(Date and Time) 操作日期和时间的类库。 * arrow:更好的 Python 日期时间操作类库。[链接](https://github.com/crsmithdev/arrow) -- 推荐 * Chronyk:Python 3 的类库,用于解析手写格式的时间和日期。[链接](https://github.com/KoffeinFlummi/Chronyk) * dateutil:Python datetime 模块的扩展。[链接](https://github.com/dateutil/dateutil) * delorean:解决 Python 中有关日期处理的棘手问题的库。[链接](https://github.com/myusuf3/delorean/) * moment:用来处理时间和日期的 Python 库。灵感来自于 Moment.js。[链接](https://github.com/zachwill/moment) * pendulum:更处理datetime。[链接](https://github.com/sdispater/pendulum) * PyTime:简单易用的 Python 模块,用于通过字符串来操作日期/时间。[链接](https://github.com/shinux/PyTime) * pytz:现代以及历史版本的世界时区定义。将时区数据库引入 Python。[链接](https://git.launchpad.net/pytz) --推荐 * when.py:提供用户友好的函数来帮助用户进行常用的日期和时间操作。[链接](https://github.com/dirn/When.py) * when.py:人性化的datetime。[链接](https://github.com/dirn/When.py) ## 调试工具(Debugging Tools) 代码调试的库。 * PySnooper: 让你做print的事情,但不需要麻烦地添加很多语句,你只需要添加装饰器就可以得到运行日志,包括线运行,及对应变量的值。[链接](https://github.com/cool-RR/PySnooper/) [介绍](https://www.jianshu.com/p/5e9b79673f39) * ipdb:IPython的 pdb。[链接](https://github.com/gotcha/ipdb) * pudb:pdb的替代。[链接](https://bitbucket.org/antocuni/pdb/) -- 推荐 * pudb:全屏,基于控制台的 Python 调试器。[链接](https://github.com/inducer/pudb) * pyringe:可以在 Python 进程中附加和注入代码的调试器。[链接]() * wdb:一个奇异的 web 调试器,通过 WebSockets 工作。[链接]() * winpdb:一个具有图形用户界面的 Python 调试器,可以进行远程调试,基于 rpdb2。[链接]() * django-debug-toolbar:为 Django 显示各种调试信息。[链接]() * django-devserver:一个 Django 运行服务器的替代品。[链接]() * flask-debugtoolbar:django-debug-toolbar 的 flask 版。[链接]() * 性能分析器 lineprofiler:逐行性能分析。[链接]() * Memory Profiler:监控 Python 代码的内存使用。官网、内存 profiling:一个交互式 Python 性能分析工具。[链接]() * 其他 pyelftools:解析和分析 ELF 文件以及 DWARF 调试信息。[链接]() * python-statsd:statsd 服务器的 Python 客户端。[链接]() ## 深度学习(Deep Learning) 机器学习库。 参见:[awesome-deep-learning](https://github.com/ChristosChristofidis/awesome-deep-learning).* [2018最佳机器学习工具书及下载(持续更新)](https://www.jianshu.com/p/e32fb5827acf) * [Caffe](https://github.com/BVLC/caffe) - 快速开放的深度学习框架 --推荐 * [Keras](https://github.com/fchollet/keras) - 高级神经网络库,能够在TensorFlow或Theano之上运行。 --推荐 * [MXNet](https://github.com/dmlc/mxnet) - 高效率和灵活的深度学习框架。 * [Neupy](http://neupy.com/pages/home.html) - 运行和测试不同的人工神经网络算法. * [Pytorch](http://pytorch.org/) - Python中的张量和动态神经网络,具有强大的GPU加速功能。 --推荐 * [Serpent.AI](https://github.com/SerpentAI/SerpentAI) - 游戏代理框架。 使用任何视频游戏作为深度学习沙盒。 --推荐 * [TensorFlow](https://github.com/tensorflow/tensorflow) - 由Google创建的最受欢迎的深度学习框架。 --强烈推荐 * [Theano](https://github.com/Theano/Theano) - 用于快速数值计算的库. --推荐 * [Shogun](https://github.com/shogun-toolbox/shogun/) C++实现,为包括Python在内的多种语言和平台提供统一的接口。 它侧重于可扩展的内核方法,以解决回归和分类问题。 Shogun关注生物信息学,可以扩展以处理超过1000万个数据样本,同时保持准确性。 * [CNTK](https://github.com/Microsoft/CNTK/tree/master/bindings/python) 微软的深度学习框架。 * [sqlflow](https://github.com/sql-machine-learning/sqlflow) SQLFlow是连接SQL引擎的桥梁,例如 MySQL,Hive,SparkSQL或SQL Server,带有TensorFlow和其他机器学习工具包。 SQLFlow扩展了SQL语言,以支持模型训练,预测和推理。 国内唯一的技术大公司 阿里巴巴出品! ## DevOps工具(DevOps Tools) * DevOps的软件和库。* * [Ansible](https://github.com/ansible/ansible) - 极其简单的IT自动化平台。 --推荐 * [Cloud-Init](http://cloudinit.readthedocs.io/en/latest/) - 处理云实例的早期初始化的多分发包。 * [cuisine](https://github.com/sebastien/cuisine) - 为 Fabric 提供一系列高级函数。 * [Docker Compose](https://github.com/docker/compose) - 使用[Docker](https://www.docker.com/)的快速隔离开发环境。 --推荐 * [Fabric](https://github.com/fabric/fabric/) - 简单的Pythonic远程执行和部署工具。 --推荐 * [Fabtools](https://github.com/fabtools/fabtools) - 编写真棒Fabric文件的工具。 * [honcho](https://github.com/nickstenning/honcho) - 一个[Foreman]的Python克隆(https://github.com/ddollar/foreman),用于管理基于Procfile的应用程序。 * [nova](https://github.com/openstack/nova) - OpenStack计算。 --推荐 * [swift](https://github.com/openstack/swift) - OpenStack存储。 --推荐 * [pexpect](https://github.com/pexpect/pexpect) - 在像GNU expect这样的伪终端中控制交互式程序。 --强烈推荐 * [psutil](https://github.com/giampaolo/psutil) - 跨平台的进行和系统实用程序模块。 --推荐 * [SaltStack](https://github.com/saltstack/salt) - 基础设施自动化和管理系统。 --推荐 * [supervisor](https://github.com/Supervisor/supervisor) - 用于UNIX的Supervisor进程控制系统。 * gitapi:Git 的纯 Python API。[官网](https://bitbucket.org/haard/gitapi) * hgapi:Mercurial 的纯 Python API。[官网](https://bitbucket.org/haard/hgapi) * honcho:[Foreman](https://github.com/ddollar/foreman) 的 Python 克隆版,用来管理基于 [Procfile](https://devcenter.heroku.com/articles/procfile) 的应用。[官网](https://github.com/nickstenning/honcho) ## 分发(Distribution) 打包为可执行文件以便分发。 * PyInstaller:将 Python 程序转换成独立的执行文件(跨平台)。[链接](https://github.com/pyinstaller/pyinstaller) --推荐 * dh-virtualenv:构建并将 virtualenv 虚拟环境作为Debian 包来发布。[链接](https://github.com/spotify/dh-virtualenv) * Nuitka:将脚本、模块、包编译成可执行文件或扩展模块。[链接](https://github.com/kayhayen/Nuitka) * py2app:将 Python 脚本变为独立软件包(Mac OS X)。[链接](https://bitbucket.org/ronaldoussoren/py2app) --推荐 * py2exe:将 Python 脚本变为独立软件包(Windows)。[链接](https://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/) --已经比较久没有更新了。 * pynsist:用来创建 Windows 安装程序的工具,可以在安装程序中打包 Python本身。[链接](https://github.com/takluyver/pynsist/blob/master/doc/index.rst) ## 文档(Documentation) 用以生成项目文档的库。 * Sphinx:Python 文档生成器。[链接](https://github.com/sphinx-doc/sphinx/) * awesome-sphinxdoc:[链接](https://github.com/yoloseem/awesome-sphinxdoc) * MkDocs:对 Markdown 友好的文档生成器。[链接](https://github.com/mkdocs/mkdocs/) -- 推荐 * pdoc:替换Epydoc 的库,可以自动生成 Python 库的 API 文档。[链接](https://github.com/BurntSushi/pdoc ) * Pycco:文学编程风格的文档生成器。[链接](https://github.com/pycco-docs/pycco) * readthedocs:一个基于 Sphinx/MkDocs 的在线文档托管系统,对开源项目免费开放使用。[链接](https://github.com/rtfd/readthedocs.org/) -- 推荐 ## 下载器(Downloader) 用来进行下载的库. * s3cmd:一个用来管理Amazon S3 和 CloudFront 的命令行工具。[链接](https://github.com/s3tools/s3cmd) * s4cmd:超级 S3 命令行工具,性能更加强劲。[链接](https://github.com/bloomreach/s4cmd) * you-get:YouTube/Youku/Niconico 视频下载器,使用 Python3 编写。[链接](https://github.com/soimort/you-get) --推荐 * youtube-dl:一个小巧的命令行程序,用来下载 YouTube 视频。[链接](http://rg3.github.io/youtube-dl/) ## 电子商务(E-commerce) 用于电子商务以及支付的框架和库。 * django-oscar:基于Django 的开源的电子商务框架。[链接](https://github.com/django-oscar/django-oscar/) -- 推荐 * django-shop: 基于 Django 的店铺系统。[链接](https://github.com/awesto/django-shop ) * Cartridge:一个基于 Mezzanine 构建的购物车应用。[链接](https://github.com/stephenmcd/cartridge) * shoop:基于 Django 的开源电子商务平台。[链接](https://www.shuup.com/ ) * alipay:非官方的 Python 支付宝 API。[链接](https://github.com/lxneng/alipay) * merchant:可以接收来自多种支付平台支付的 Django 应用。[链接](https://github.com/agiliq/merchant) * money:Python钱类,带有可选的CLDR支持的区域识别格式和可扩展的货币兑换解决方案。[链接](https://github.com/carlospalol/money) * forex-python:外汇汇率,比特币价格指数和货币兑换。[链接](https://github.com/MicroPyramid/forex-python) * saleor - Python和Django的电子商务店面。[链接](https://github.com/mirumee/saleor) * 雪峰磁针石说明: python-currencies因为星级较少没有收录 ## 编辑器插件(Editor Plugins and IDEs) 编辑器和 IDE 的插件 * Elpy:Emacs Python 开发环境。[链接](https://github.com/jorgenschaefer/elpy) * SublimeJEDI:Sublime Text 插件,用来实现自动补全库 Jedi。[链接](https://github.com/srusskih/SublimeJEDI) * Anaconda:把你的 Sublime Text 3 变成功能齐全的 Python IDE。[链接](https://github.com/DamnWidget/anaconda) * YouCompleteMe:引入基于 Jedi 的 Python 自动补全引擎。[链接](https://github.com/Valloric/YouCompleteMe) * Jedi-vim:绑定 Vim 和 Jedi 自动补全库对 Python 进行自动补全。[链接](https://github.com/davidhalter/jedi-vim) * Python-mode:Vim 变成 Python IDE 的多合一插件。[链接](https://github.com/python-mode/python-mode) * PTVS:Visual Studio 的 Python 工具[链接](https://github.com/Microsoft/PTVS) * wingIDE:商业化的 Python IDE,功能强大,占用资源少,python开发。也有免费的社区版提供。[链接]https://wingware.com/) -- 推荐 * PyCharm:商业化的 Python IDE ,由 JetBrains 开发。也有免费的社区版提供。[链接](https://www.jetbrains.com/pycharm/) * LiClipse:基于 Eclipse 的免费多语言 IDE 。使用 PyDev 来支持 Python 。[链接](http://www.liclipse.com/) * Spyder:开源 Python IDE。[链接](https://github.com/spyder-ide/spyder) * komodo-ide [链接](https://www.activestate.com/komodo-ide/python-editor) ## 电子邮件(Email) 用来发送和解析电子邮件的库。 * mailer:用简单的方式发送邮件。[链接](https://pypi.python.org/pypi/mailer) -- 推荐 * envelopes:人性化的电子邮件库。[链接](https://github.com/tomekwojcik/envelopes/) * flanker:email 地址和 Mime 解析库。[链接](https://github.com/mailgun/flanker) * imbox:人性化的Python IMAP 库[链接](https://github.com/martinrusev/imbox) * inbox.py:人性化的Python SMTP 服务器。[链接](https://github.com/kennethreitz/inbox.py) * inbox:具有时尚API的IMAP/SMTP同步系统。[链接](https://github.com/nylas/sync-engine) -- 推荐 * lamson:Python 风格的 SMTP 应用服务器。[链接](https://github.com/zedshaw/lamson) * marrow.mailer:高性能可扩展邮件分发框架。[链接](https://github.com/marrow/mailer) * modoboa:一个邮件托管和管理平台,具有现代的、简约的 Web UI。[链接](https://github.com/modoboa/modoboa) * pyzmail:创建,发送和解析电子邮件。[链接](https://pypi.python.org/pypi/pyzmail) * Talon:Mailgun 库,用来抽取信息和签名。[链接](https://github.com/mailgun/talon) * yagmail- 另外一个 Gmail/SMTP客户端。[链接](https://github.com/kootenpv/yagmail) * sync-engine - IMAP/SMTP同步。 [链接](https://github.com/nylas/sync-engine) -- 推荐 ## 环境管理(Environment Management) Python版本和环境管理 * Pipenv:Pipfile,Pip和Virtualenv的结合。[链接](https://github.com/pypa/pipenv) --强烈推荐 * p:简单的python版本管理工具。[链接](https://github.com/qw3rtman/p) * pyenv:简单的python版本管理。[链接](https://github.com/pyenv/pyenv) --强烈推荐 * venv:创建python虚拟环境,python3标准库。[链接](https://docs.python.org/3/library/venv.html) --强烈推荐 * virtualenv:创建独立的Python 环境。[链接](https://github.com/pypa/virtualenv/) --强烈推荐 * virtualenvwrapper:virtualenv 的扩展。[链接](https://bitbucket.org/virtualenvwrapper/virtualenvwrapper) --强烈推荐 ## 文件(Files) 文件管理和 MIME(多用途的网际邮件扩充协议)类型检测。 * imghdr:(Python 标准库)检测图片类型。[链接](https://docs.python.org/2/library/imghdr.html) * mimetypes:(Python 标准库)将文件名映射为 MIME 类型。[链接](https://docs.python.org/2/library/mimetypes.html) * path.py:对 os.path 进行封装的模块。[链接](https://github.com/jaraco/path.py) * pathlib:(Python3.4+ 标准库)跨平台的、面向对象的路径操作库。[链接](https://docs.python.org/dev/library/pathlib.html) --强烈推荐 * python-magic:文件类型检测的第三方库 libmagic 的 Python 接口。[链接](https://github.com/ahupp/python-magic) * Unipath:用面向对象的方式操作文件和目录。[链接](https://github.com/mikeorr/Unipath) * watchdog:管理文件系统事件的 API 和 shell 工具。[链接](https://github.com/gorakhargosh/watchdog) --推荐 ## 外部函数接口(Foreign Function Interface) * cffi:调用 C 代码。[链接](https://bitbucket.org/cffi/cffi) --强烈推荐 * ctypes:(Python 标准库) 调用 C 代码。[链接](https://docs.python.org/2/library/ctypes.html) --强烈推荐 * PyCUDA:Nvidia CUDA API 的封装。[链接](https://github.com/inducer/pycuda) * SWIG:简单的包装器和接口生成器。[链接](http://www.swig.org/Doc1.3/Python.html) ## 表单(Forms) * Deform:Python HTML 表单生成库,受到了 formish 表单生成库的启发。[链接](https://github.com/Pylons/deform) * django-bootstrap3:集成了 Bootstrap 3 的 Django。[链接](https://github.com/dyve/django-bootstrap3) --推荐 * django-crispy-forms:非常优雅且 DRY(Don't repeat yourself) 的方式来创建美观的表单。[链接](https://github.com/dyve/django-bootstrap3) --推荐 * django-remote-forms:平台独立的 Django 表单序列化工具。[链接](https://github.com/WiserTogether/django-remote-forms) * WTForms:灵活的表单验证和渲染库。[链接](https://github.com/wtforms/wtforms) ## 函数式编程(Functional Programming) * CyToolz:Toolz 的 Cython 实现 : 高性能函数工具。[链接](https://github.com/pytoolz/cytoolz/) * fn.py:在 Python 中进行函数式编程 : 实现了一些函数式编程缺失的功能。[链接](https://github.com/kachayev/fn.py) -- 推荐 * funcy:炫而实用的函数式工具。[链接](https://github.com/Suor/funcy) * Toolz:一组用于迭代器,函数和字典的函数式编程工具。[链接](https://github.com/pytoolz/toolz) ##动态消息 用来创建用户活动的库。 * django-activity-stream:从你的站点行为中生成通用活动信息流。[链接](https://github.com/justquick/django-activity-stream) * Stream-Framework:使用 Cassandra 和 Redis 创建动态消息和通知系统。[链接](https://github.com/tschellenbach/Stream-Framework) ## 图形用户界面(GUI) * curses:内置的ncurses 封装,用来创建终端图形用户界面。标准库。[链接](https://docs.python.org/3/library/curses.html) * Eel - 用于制作简单电子类离线HTML / JS GUI应用程序的小程序库。[链接](https://github.com/ChrisKnott/Eel) * enaml:使用类似 QML 的 Declaratic 语法来创建美观的用户界面。[链接](https://github.com/nucleic/enaml) * kivy:创建NUI应用程序的库,可以运行在 Windows, Linux, Mac OS X, Android 以及 iOS 平台上。[链接](https://github.com/kivy/kivy) -推荐 * pyglet:Python 的跨平台窗口及多媒体库。[链接](https://bitbucket.org/pyglet/) * PyQt:跨平台用户界面框架 Qt 的 Python 绑定 ,支持 Qt v4 和 Qt v5。[链接](https://riverbankcomputing.com/software/pyqt/intro) * PySide:跨平台用户界面框架 Qt 的 Python 绑定 ,支持 Qt v4。[链接](https://wiki.qt.io/PySide) * Tkinter:Python GUI 标准库。[链接](https://wiki.python.org/moin/TkInter) * Toga:Python 原生的, 操作系统原生的 GUI 工具包。[链接](https://github.com/pybee/toga) * urwid:创建终端 GUI 应用的库,支持组件,事件和丰富的色彩等。[链接](https://github.com/urwid/urwid) * wxPython:wxPython 是 wxWidgets C++ 类库和 Python 语言混合的产物。[链接](https://github.com/wxWidgets/Phoenix/) * PyGObject:GLib/GObject/GIO/GTK+ (GTK+3) 的 Python 绑定。[链接](https://wiki.gnome.org/Projects/PyGObject) * Flexx:纯 Python编写的用来创建 GUI 程序的工具集,它使用 web 技术进行界面的展示。[链接](https://github.com/flexxui/flexx) ## 游戏开发(Game Development) * [Cocos2d](https://github.com/los-cocos/cocos) - 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 ctypes绑定及其相关的API。 * [PySDL2](http://pysdl2.readthedocs.io/en/rel_0_9_5/) - SDL2库的基于ctypes的包装器。 * [RenPy](https://github.com/renpy/renpy) - Visual Novel引擎。 ## 地理位置(Geolocation) *地理编码地址和纬度和经度的图书馆。* * [django-countries](https://github.com/SmileyChris/django-countries) - Django应用程序,提供与表单一起使用的国家选项,标志图标静态文件和模型的国家/地区字段。 * [GeoDjango](https://docs.djangoproject.com/en/dev/ref/contrib/gis/) - 世界级的地理网络框架。 -推荐 * [GeoIP](https://github.com/maxmind/geoip-api-python) - MaxMind GeoIP遗留数据库的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。 ## HTML操作(HTML Manipulation) *用于处理HTML和XML的库。* * [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) - Python风格的方式来对HTML或XML进行迭代,搜索和修改。 -推荐 * [bleach](https://github.com/mozilla/bleach) - 基于白名单的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/pallets/markupsafe) - 为Python实现XML / HTML / XHTML标记安全字符串。 * [pyquery](https://github.com/gawel/pyquery) - 用于解析HTML的jQuery类库。 * [untangle](https://github.com/stchris/untangle) - 将XML文档转换为Python对象以便于访问。 * [WeasyPrint](https://github.com/Kozea/WeasyPrint) - 可导出为PDF的HTML和CSS可视化呈现引擎。 * [xmldataset](https://xmldataset.readthedocs.io/en/latest/) - 简单的XML解析。 * xhtml2pdf:HTML/CSS 转 PDF 工具。[官网](https://github.com/xhtml2pdf/xhtml2pdf) * [xmltodict](https://github.com/martinblech/xmltodict) - 像处理 JSON 一样处理 XML。 ## HTTP 使用 HTTP 的库。 * aiohttp:基于 asyncio 的异步 HTTP 网络库。[官网](https://github.com/aio-libs/aiohttp) * requests:人性化的 HTTP 请求库。[官网](http://docs.python-requests.org/en/latest/) --强烈推荐 * grequests:requests 库 + gevent ,用于异步 HTTP 请求.[官网](https://github.com/kennethreitz/grequests) * httplib2:全面的 HTTP 客户端库。[官网](https://github.com/jcgregorio/httplib2) * treq:类似 requests 的 Python API 构建于 Twisted HTTP 客户端之上。[官网](https://github.com/twisted/treq) * urllib3:一个具有线程安全连接池,支持文件 post,清晰友好的 HTTP 库。[官网](https://github.com/shazow/urllib3) ## 硬件(Hardware) *用于硬件编程的库。* * [ino](http://inotool.org/) - 用于[Arduino](https://www.arduino.cc/)的命令行工具包。 * [keyboard](https://github.com/boppreh/keyboard) - 钩和模拟Windows和Linux上的全球键盘事件。 * [鼠标](https://github.com/boppreh/mouse) - 在Windows和Linux上挂钩并模拟全局鼠标事件。 * [Pingo](https://github.com/pingo-io/pingo-py) - Pingo提供统一的API来编程像Raspberry Pi,pcDuino,Intel Galileo等设备。 * [PyUserInput](https://github.com/SavinaRoja/PyUserInput) - 用于跨平台控制鼠标和键盘的模块。 * [scapy](https://github.com/secdev/scapy) - 出色的数据包操作库。 * [thrift-tools](https://github.com/pinterest/thrift-tools) thrift抓包工具。 * mitmproxy:HTTP和抓包库。[官网](https://github.com/mitmproxy/mitmproxy) * [wifi](https://github.com/rockymeza/wifi) - 用于在Linux上使用WiFi的Python库和命令行工具。 * Pyro:Python 机器人编程库。[官网](http://pyrorobotics.com/) * PyUserInput:跨平台的,控制鼠标和键盘的模块。[官网](https://github.com/SavinaRoja/PyUserInput) ## 图像处理(Image Processing) *用于处理图像的库。* * [pillow](http://hao.jobbole.com/pillow/):Pillow 是一个更加易用版的 [PIL](http://www.pythonware.com/products/pil/)。[官网](http://pillow.readthedocs.org/en/latest/) -推荐 [python库介绍-图像处理工具pillow中文文档-手册(2018 5.*)](https://china-testing.github.io/python3_lib_pil.html) * hmap:图像直方图映射。[官网](https://github.com/rossgoodwin/hmap) * imgSeek:使用视觉相似性搜索一组图片集合的项目。[官网](https://sourceforge.net/projects/imgseek/) 较长时间没有更新 * nude.py:裸体检测。[官网](https://github.com/hhatto/nude.py) * pyBarcode:不借助 PIL 库在 Python 程序中生成条形码。[官网](https://pythonhosted.org/pyBarcode/) * pygram:类似 Instagram 的图像滤镜。[官网](https://github.com/ajkumar25/pygram) * python-qrcode:纯 Python 实现的二维码生成器。[官网](https://github.com/lincolnloop/python-qrcode) --推荐 * Quads:基于四叉树的计算机艺术。[官网](https://github.com/fogleman/Quads) * scikit-image:一个用于(科学)图像处理的 Python 库。[官网](http://scikit-image.org/) --推荐 * thumbor:小型图像服务,具有剪裁,尺寸重设和翻转功能。[官网](https://github.com/thumbor/thumbor) --推荐 * wand:[MagickWand](http://www.imagemagick.org/script/magick-wand.php)的 Python 绑定。MagickWand 是 ImageMagick 的 C API 。[官网](https://github.com/dahlia/wand) * face_recognition:简单易用的 python 人脸识别库。[官网](https://github.com/ageitgey/face_recognition) --强烈推荐 * [pagan](https://github.com/daboth/pagan) - 基于输入字符串和散列的复古identicon(阿凡达)生成。 * [opencv-python](https://github.com/skvark/opencv-python) 预编译的opencv-python, opencv-python-headless, opencv-contrib-python and opencv-contrib-python-headless。 --推荐 * [imutils](https://github.com/jrosebr1/imutils) 一系列便利函数,可以使用OpenCV和Python轻松进行基本图像处理操作,如平移,旋转,调整大小,骨架化和显示Matplotlib图像。 --推荐 ## 实现(Implementations) * Python的实现。* * [CLPython](https://github.com/metawilm/cl-python) - 用Common Lisp编写的Python编程语言。 * [CPython](https://github.com/python/cpython) - **用C编写的Python编程语言的默认,最广泛使用的实现。** --强烈推荐 * [Cython](http://cython.org/) - 优化Python的静态编译器。使用类型mixin将Python编译为C或C ++模块,从而获得巨大的性能提升 --强烈推荐 * [Grumpy](https://github.com/google/grumpy) - 更多的编译器比解释器更强大的CPython2.7替换(alpha)。 --推荐 * [IronPython](https://github.com/IronLanguages/ironpython3) - 实现用C#编写的面向.NET Framework和Mono的Python编程语言。 --推荐 * [Jython](https://hg.python.org/jython) - 为Java虚拟机(JVM)实现用Java编写的Python编程语言。 --推荐 * [MicroPython](https://github.com/micropython/micropython) - MicroPython - 精简高效的Python编程语言实现,用于微控制器和受限制的系统 --推荐 * [Numba](https://github.com/numba/numba/) - 针对科学Python的LLVM的Python JIT编译器。 --推荐 * [PeachPy](https://github.com/Maratyszcza/PeachPy) - 嵌入在Python中的x86-64汇编程序。可以用作Python的内联汇编程序,也可以用作Windows,Linux,OS X,Native Client和Go的独立汇编程序。 --推荐 * [Pyjion](https://github.com/Microsoft/Pyjion) - 基于CoreCLR的Python JIT。 * [PyPy](https://bitbucket.org/pypy/pypy) - 实现用RPython编写并编译为C的Python编程语言.PyPy关注速度,效率以及与原始CPython解释器的兼容性。解释器使用黑魔法使Python非常快速,而无需添加额外的类型信息。 --强烈推荐 * [PySec](https://github.com/ebranca/owasp-pysec) - python的强化版本,使安全专业人员和开发人员可以更轻松地编写应用程序,从而更有弹性地处理攻击和操作。 * [Pyston](https://github.com/dropbox/pyston) - 使用LLVM和现代JIT技术构建的Python实现,其目标是实现良好的性能。 --推荐 * [Stackless Python](https://bitbucket.org/stackless-dev/stackless/wiki/Home) - Python编程语言的增强版本,它允许程序员在没有性能和复杂性的情况下获得基于线程编程的好处与传统线程相关的问题。 --推荐 ## 交互式Python解释器(Interactive Interpreter) * [bpython](https://github.com/bpython/bpython) - 界面丰富的 Python 解析器。 * [IPython](https://github.com/ipython/ipython) - 功能丰富的工具,非常有效的使用交互式Python。 --强烈推荐 * [Jupyter Notebook](https://github.com/jupyter/jupyter) - 功能丰富的工具,非常有效的使用交互式Python。 --推荐 * [ptpython](https://github.com/jonathanslenders/ptpython) - 在[python-prompt-toolkit]之上构建的高级Python REPL(https://github.com/jonathanslenders/python-prompt-toolkit) 。 --推荐 ## 国际化 *与i18n合作的图书馆* * [Babel](https://github.com/python-babel/babel) - Python国际化库。 * [PyICU](https://github.com/ovalhub/pyicu) - Unicode C ++库的国际组件封装([ICU](http://site.icu-project.org/))。 ## 作业调度(Job Scheduler) *用于调度作业的库。* * [APScheduler](https://github.com/agronholm/apscheduler) - 轻量但功能强大的进程内任务调度程序,可让您安排功能。 * [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) - 用Python编写crontab文件就像一个魅力一样。 * [schedule](https://github.com/dbader/schedule) - 人性化的 Python 任务调度库。 --推荐 * [Spiff](https://github.com/knipknap/SpiffWorkflow) - 以纯Python实现的强大的工作流引擎。 * [TaskFlow](https://github.com/openstack/taskflow) - 可以让你方便执行任务的 Python 库,一致并且可靠。 * AirFlow:Airflow 是Airbnb公司开源的,是一个工作流分配管理系统,通过有向非循环图的方式管理任务流程,设置任务依赖关系和时间调度。[官方](https://github.com/apache/incubator-airflow) ## 日志(Logging) *用于生成和处理日志的库。* * [Eliot](https://github.com/ScatterHQ/eliot) - 复杂和分布式系统日志。 * [logbook](https://github.com/getlogbook/logbook) - 记录Python的替代品。 * [logging](https://docs.python.org/2/library/logging.html) - (Python标准库)Python的日志工具。 --推荐 * [raven](https://github.com/getsentry/raven-python) - Sentry的Python客户端,用于Web应用程序的日志/错误跟踪,崩溃报告和聚合平台。 ## 机器学习 *机器学习库。请参阅:[awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning#python)。* * [Metrics](https://github.com/benhamner/Metrics) - 机器学习评估指标。 * [NuPIC](https://github.com/numenta/nupic) - 用于智能计算的Numenta平台。 --推荐 * [scikit-learn](http://scikit-learn.org/) - 流行的机器学习Python库。 --推荐 * [Spark ML](http://spark.apache.org/docs/latest/ml-guide.html) - [Apache Spark](http://spark.apache.org/)的可扩展机器学习库。--推荐 * [vowpal_porpoise](https://github.com/josephreisinger/vowpal_porpoise) - 用于[Vowpal Wabbit]的轻量级Python包装器(https://github.com/JohnLangford/vowpal_wabbit/)。 * [xgboost](https://github.com/dmlc/xgboost) - 可扩展,可移植且分布式的渐变增强库。 --推荐 ## MapReduce * MapReduce的框架和库。* * [PySpark](https://github.com/apache/spark) - Apache Spark Python API。 * [dpark](http://hao.jobbole.com/dpark/):Spark 的 Python 克隆版,类似 MapReduce 的框架。[官网](https://github.com/douban/dpark) * dumbo:这个 Python 模块可以让人轻松的编写和运行 Hadoop 程序。[官网](https://github.com/klbostee/dumbo) * [luigi](https://github.com/spotify/luigi) - 可帮助您构建批处理作业复杂管道的模块。 * [mrjob](https://github.com/Yelp/mrjob) - 在Hadoop或Amazon Web Services上运行MapReduce作业。 * [streamparse](https://github.com/Parsely/streamparse) - 针对实时数据流运行Python代码。与[Apache Storm](http://storm.apache.org/)集成。 * [dask](https://github.com/dask/dask) - 灵活的分析计算并行计算库。 ## 微软Windows * Microsoft Windows上的Python编程。* * [Python(x,y)](http://python-xy.github.io/) - 基于Qt和Spyder的面向科学应用的Python发行版。 --推荐 * [pythonlibs](http://www.lfd.uci.edu/~gohlke/pythonlibs/) - Python扩展包的非官方Windows二进制文件。 --推荐 * [PythonNet](https://github.com/pythonnet/pythonnet) - .NET公共语言运行时(CLR)的Python集成。 * [PyWin32](https://sourceforge.net/projects/pywin32/) - Python的Windows扩展。 --推荐 * [WinPython](https://winpython.github.io/) - Windows 7/8的便携式开发环境。 --推荐 ## 杂项 *不适合上述类别的有用库或工具。* * blinker:快速的 Python 进程内信号/事件分发系统。[官网](https://github.com/jek/blinker) * itsdangerous:一系列辅助工具用来将可信的数据传入不可信的环境。[官网](https://github.com/pallets/itsdangerous) * pluginbase:一个简单但是非常灵活的 Python 插件系统。[官网](https://github.com/mitsuhiko/pluginbase) * Pychievements:一个用来创建和追踪成就的 Python 框架。[官网](https://github.com/PacketPerception/pychievements) * [Tryton](http://hao.jobbole.com/tryton/):通用商务框架。[官网](http://www.tryton.org/) ## 自然语言处理(Natural Language Processing) * NLTK:构建Python程序以处理人类语言数据的领先平台。[连接](https://github.com/nltk/nltk) - 推荐 * jieba:中文分词工具。[官网](https://github.com/fxsjy/jieba) - 推荐 * langid.py:独立的语言识别系统。[官网](https://github.com/saffsd/langid.py) * Pattern:Python 网络信息挖掘模块。[官网](https://github.com/clips/pattern) - 推荐 * SnowNLP:用来处理中文文本的库。[官网](https://github.com/isnowfy/snownlp) - 推荐 * TextBlob:为进行普通自然语言处理任务提供一致的 API。[官网](http://textblob.readthedocs.org/en/latest/) - 推荐 * TextGrocery:一简单高效的短文本分类工具,基于 LibLinear 和 Jieba。[官网](https://github.com/2shou/TextGrocery) *   thulac:清华大学自然语言处理与社会人文计算实验室研制推出的一套中文词法分析工具包[官网](https://github.com/thunlp/THULAC-Python) * [gensim](https://github.com/RaRe-Technologies/gensim) -人 性化的话题建模库。 * [spaCy](https://github.com/explosion/spaCy) - 用于Python和Cython的工业强度自然语言处理的库。 -推荐 ## 网络虚拟化(Network Virtualization) *用于虚拟网络和SDN(软件定义网络)的工具和库。* * Mininet:流行的网络模拟器以及用 Python 编写的 API。[官网](http://mininet.org/) -推荐 * POX:一个针对基于 Python 的软件定义网络应用(例如 OpenFlow SDN 控制器)的开源开发平台。[官网](https://github.com/noxrepo/pox) * Pyretic:火热的 SDN 编程语言中的一员,为网络交换机和模拟器提供强大的抽象能力。[官网](https://github.com/frenetic-lang/pyretic) *   SDX Platform:基于 SDN 的 IXP 实现,影响了 Mininet, POX 和 Pyretic。[官网](https://github.com/sdn-ixp/internet2award) *   NRU:一个基于组件的软件定义网络框架。[官网](http://ryu.readthedocs.io/en/latest/) ## 网络(Networking) 用于网络编程的库。 * asyncio:(Python 标准库) 异步 I/O, 事件循环, 协程以及任务。[官网](https://docs.python.org/3/library/asyncio.html) -推荐 * [Twisted](https://github.com/twisted/twisted):一个事件驱动的网络引擎。[官网](https://twistedmatrix.com/trac/) -推荐 * pulsar:事件驱动的并发框架。[官网](https://github.com/quantmind/pulsar) * diesel:基于 Greenlet 的事件 I/O 框架。[官网](https://github.com/dieseldev/diesel) * pyzmq:ZeroMQ 消息库的 Python 封装。[官网](http://zeromq.github.io/pyzmq/) * Toapi:轻巧,简单,快速的 Flask 库,致力于为所有网站提供 API 服务。[官网](https://github.com/gaojiuli/toapi) -推荐 * txZMQ:基于 Twisted 的 ZeroMQ 消息库的 Python 封装。[官网](https://github.com/smira/txZMQ) * [NAPALM](https://github.com/napalm-automation/napalm) - 用于操纵网络设备的跨供应商API。 ### 动态消息 用来创建用户活动的库。 * django-activity-stream:从你的站点行为中生成通用活动信息流。[官网](https://github.com/justquick/django-activity-stream) * Stream-Framework:使用 Cassandra 和 Redis 创建动态消息和通知系统。[官网](https://github.com/tschellenbach/Stream-Framework) -推荐 ## ORM 实现对象关系映射或数据映射技术的库。 ### 关系型数据库 * Django Models:Django 的一部分。[链接](https://docs.djangoproject.com/en/dev/topics/db/models/) * SQLAlchemy:Python SQL 工具以及对象关系映射工具。[链接](http://www.sqlalchemy.org/) * awesome-sqlalchemy系列 [链接](https://github.com/justquick/django-activity-stream) * Peewee:一个小巧,富有表达力的 ORM, 支持postgresql, mysql and sqlite。[链接]https://github.com/coleifer/peewee) * PonyORM:提供面向生成器的 SQL 接口的 ORM。[链接](https://github.com/ponyorm/pony/) * python-sql:编写 Python 风格的 SQL 查询。[链接](http://python-sql.tryton.org/) ### NoSQL 数据库 * django-mongodb-engine:Django MongoDB 后端。[链接](https://github.com/django-nonrel/mongodb-engine) * PynamoDB:Amazon DynamoDB 的一个 Python 风格接口。[链接](https://aws.amazon.com/cn/dynamodb/) * flywheel:Amazon DynamoDB 的对象映射工具。[链接](https://github.com/stevearc/flywheel) * MongoEngine:Python 对象文档映射工具,用于 MongoDB。[链接](https://github.com/MongoEngine/mongoengine) * hot-redis:为 Redis 提供 Python 丰富的数据类型。[链接](https://github.com/stephenmcd/hot-redis) * redisco:一个 Python 库,提供可以持续存在在 Redis 中的简单模型和容器。[链接](https://github.com/kiddouk/redisco) ### 其他 * butterdb:Google Drive 电子表格的 Python ORM。[链接](https://github.com/terrible-ideas/butterdb) * dataset :基于JSON的数据库。[链接](https://github.com/pudo/dataset) ## 包管理(Package Management) 管理包和依赖 * pip:管理包和依赖。[链接](https://github.com/pypa/pip/) [pypi](https://pypi.python.org/pypi) --强烈推荐 * conda:跨平台,Python 二进制包管理工具。[链接](https://github.com/conda/conda/) --强烈推荐 * Curdling:管理 Python 包的命令行工具。[链接](https://github.com/clarete/curdling) * pip-tools:保证 Python 包依赖关系更新的工具。[链接](https://github.com/jazzband/pip-tools) * wheel:Python 分发的新标准,意在取代 eggs。[链接](https://github.com/meshy/pythonwheels) --强烈推荐 ## 包仓库 本地 PyPI 仓库服务和代理。 * warehouse:下一代 PyPI。[链接](https://github.com/pypa/warehouse) * Warehouse:[链接](https://pypi.org/) * bandersnatch:PyPA 提供的 PyPI 镜像工具。[链接](https://bitbucket.org/pypa/bandersnatch) * devpi:PyPI 服务和打包/测试/分发工具。[链接](https://github.com/devpi/devpi/) * localshop:本地 PyPI 服务(自定义包并且自动对 PyPI 镜像)。[链接](https://github.com/mvantellingen/localshop) ##权限(Permissions) *允许或拒绝用户访问数据或功能的库。* * [Carteblanche](https://github.com/neuman/python-carteblanche/) - 将代码与用户和设计师的想法对齐的模块。也神奇地处理导航和权限。 * [django-guardian](https://github.com/django-guardian/django-guardian) - 为Django 1.2+权限管理 * [django-rules](https://github.com/dfunckt/django-rules) - 小巧但功能强大的应用程序,它为Django提供对象级权限,而不需要数据库。 ##进程(Processes) *用于启动和与OS进程进行通信的库。* * [delegator.py](https://github.com/kennethreitz/delegator.py) - [Subprocesses](https://docs.python.org/3.6/library/subprocess.html)用于Humans™2.0。 --推荐 * [sarge](http://sarge.readthedocs.io/en/latest/) - Subprocesses的另一个封装。 * [sh](https://github.com/amoffat/sh) - 一个全面的Python子程序替代品。 --推荐 ##队列(Queue) *用于处理事件和任务队列的库。* * [celery](http://www.celeryproject.org/) - 基于分布式消息传递的异步任务队列/作业队列。 --推荐 * [huey](https://github.com/coleifer/huey) - 小多线程任务队列。 * [mrq](https://github.com/pricingassistant/mrq) - Queue先生 - 使用Redis&gevent的Python中的分布式工作者任务队列。 * [rq](http://python-rq.org/) - 简单的Python作业队列。 --推荐 * [simpleq](https://github.com/rdegges/simpleq) - 一个简单的,无限可扩展的基于Amazon SQS的队列。 ##推荐系统(Recommender Systems) *用于构建推荐系统的库。* * [annoy](https://github.com/spotify/annoy) - 针对内存使用进行了优化的C ++ / Python近似最近邻居。 --推荐 * [fastFM](https://github.com/ibayer/fastFM) - 因式分解机器库。 * [implicit](https://github.com/benfred/implicit) - 隐式数据集协作过滤的快速Python实现。 * [libffm](https://github.com/guestwalk/libffm) - Field-aware因式分解机(FFM)库。 * [LightFM](https://github.com/lyst/lightfm) - 一些流行推荐算法的Python实现。 * [surprise](http://surpriselib.com) - 用于构建和分析推荐系统的scikit。 * [TensorRec](https://github.com/jfkirk/tensorrec) - TensorFlow中的推荐引擎框架 ## RESTful API *用于开发RESTful API的库。* * Django     * [django-rest-framework](http://www.django-rest-framework.org/) - 功能强大且灵活的工具包,用于构建Web API。 --强烈推荐     * [django-tastypie](http://tastypieapi.org/) - 为Django应用程序创建美味的API。 --推荐 * Flask     * [eve](https://github.com/pyeve/eve) - 由Flask,MongoDB提供支持的REST API框架和。 --推荐     * [flask-api-utils](https://github.com/marselester/flask-api-utils) - 负责Flask的API表示和身份验证。     * [flask-api](http://www.flaskapi.org/) - 适用于Flask的Browsable Web API。     * [flask-restful](https://github.com/flask-restful/flask-restful) - 快速构建适用于Flask的REST API。 --推荐     * [flask-restless](https://github.com/jfinkels/flask-restless) - 为使用SQLAlchemy定义的数据库模型生成RESTful API。 *Pyramid     * [cornice](https://github.com/Cornices/cornice) - Pyramid的RESTful框架。 *其他     * [falcon](http://falconframework.org/) - 一个用于构建云API和Web应用后端的高性能框架。     * [hug](https://github.com/timothycrosley/hug) - 一个Python3框架,用于通过HTTP干净地公开API以及带有自动文档和验证的命令行。 --推荐     * [restless](https://github.com/toastdriven/restless) - 基于从Tastypie学到的经验教训的框架不可知的REST框架。     * [ripozo](https://github.com/vertical-knowledge/ripozo) - 快速创建REST / HATEOAS / Hypermedia API。     * [sandman](https://github.com/jeffknupp/sandman) - 现有数据库驱动系统的自动化REST API。     * [apistar](https://github.com/encode/apistar) - 为Python 3设计的智能Web API框架。--推荐 ## RPC服务器(RPC Servers) * RPC兼容服务器。* * [SimpleJSONRPCServer](https://github.com/joshmarshall/jsonrpclib/) - 该库是JSON-RPC规范的实现。 * [SimpleXMLRPCServer](https://docs.python.org/3/library/xmlrpc.server.html) - (Python标准库)简单的XML-RPC服务器实现,单线程。 * [zeroRPC](https://github.com/0rpc/zerorpcpython) - zerorpc是基于[ZeroMQ](http://zeromq.org/)和[MessagePack](http:// msgpack.org/)。 --推荐 ## 科学(Science) * [astropy](http://www.astropy.org/) - 用于天文学的社区Python库。 * [bcbio-nextgen](https://github.com/chapmanb/bcbio-nextgen) - 为全自动高通量测序分析提供最佳实践管道。 * [bccb](https://github.com/chapmanb/bcbb) - 收集与生物分析相关的有用代码。 * [Biopython](https://github.com/biopython/biopython) - Biopython是一套免费的生物计算工具。 * [cclib](http://cclib.github.io/) - 用于解析和解释计算化学软件包结果的库。 * [Color](http://colour-science.org/) - 一种颜色科学软件包,用于实现各种颜色理论转换和算法。 * [NetworkX](https://networkx.github.io/) - 适用于复杂网络的高效软件。 * [NIPY](http://nipy.org) - 一套神经影像工具包。 --推荐 * [NumPy](http://www.numpy.org/) - 用Python进行科学计算的基础软件包。 --强烈推荐 * [Open Babel](http://openbabel.org/wiki/Main_Page) - 一种化学工具箱,专门用于讲述多种化学数据的语言。 * [ObsPy](https://github.com/obspy/obspy/wiki/) - 地震学的Python工具箱。 * [PyDy](http://www.pydy.org/) - Python Dynamics的缩写,用于协助动态运动建模中的工作流程。 * [PyMC](https://github.com/pymc-devs/pymc3) - 马尔可夫链蒙特卡洛采样工具包。 * [RDKit](http://www.rdkit.org/) - Cheminformatics和机器学习软件。 * [SciPy](https://www.scipy.org/) - 一个基于Python的数学,科学和工程开放源码软件生态系统。 --强烈推荐 * [statsmodels](https://github.com/statsmodels/statsmodels) - Python中的统计建模和计量经济学。 --推荐 * [SymPy](https://github.com/sympy/sympy) - 符号数学的Python库。 * [Zipline](https://github.com/quantopian/zipline) - Pythonic算法交易库。 --推荐 * [SimPy](https://bitbucket.org/simpy/simpy) - 基于流程的离散事件仿真框架。 --推荐 ## 搜索 *用于索引和执行数据搜索查询的库和软件。* * [django-haystack](https://github.com/django-haystack/django-haystack) - Django模块化搜索。 * [elasticsearch-dsl-py](https://github.com/elastic/elasticsearch-dsl-py) - Elasticsearch的官方高级Python客户端。 * [elasticsearch-py](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html) - [Elasticsearch]的官方低级Python客户端(https: //www.elastic.co/products/elasticsearch)。 * [esengine](https://github.com/seek-ai/esengine) - 用于Python的ElasticSearch ODM(对象文档映射器)。 * [pysolr](https://github.com/django-haystack/pysolr) - Apache Solr的轻量级Python包装(包括SolrCloud认知)。 * [solrpy](https://github.com/edsu/solrpy) - [solr]的一个Python客户端(http://lucene.apache.org/solr/)。 * [Whoosh](http://whoosh.readthedocs.io/en/latest/) - 快速,纯粹的Python搜索引擎库。 --推荐 ## 序列化(Serialization) *用于序列化复杂数据类型的库* * [marshmallow](https://github.com/marshmallow-code/marshmallow) - marshmallow是一个ORM / ODM /框架无关的库,用于将复杂数据类型(如对象)转换为本机Python数据类型和从本地Python数据类型转换。 ## 无服务器框架(Serverless Frameworks *用于开发无服务器Python代码的框架。* * [apex](https://github.com/apex/apex) - 轻松构建,部署和管理[AWS Lambda](https://aws.amazon.com/lambda/)功能。 --推荐 * [python-lambda](https://github.com/nficano/python-lambda) - 用于在AWS Lambda中开发和部署Python代码的工具包。 * [Zappa](https://github.com/Miserlou/Zappa) - AWS Lambda和API网关上部署WSGI应用程序的工具。--推荐 ## 特殊文本格式处理(Specific Formats Processing) 一些用来解析和操作特殊文本格式的库。 ### 通用 * tablib:处理 XLS, CSV, JSON, YAML表格数据的模块。[链接](https://github.com/kennethreitz/tablib) ### Office * Marmir:把输入的Python 数据结构转换为电子表单。[链接](https://github.com/brianray/mm) * openpyxl:用来读写 Excel 2010 xlsx/xlsm/xltx/xltm 文件的库。[链接](https://bitbucket.org/openpyxl/openpyxl) --强烈推荐 * python-docx:读取,查询以及修改 Microsoft Word 2007/2008 docx 文件。[链接](https://github.com/python-openxml/python-docx) * unoconv:在 LibreOffice/OpenOffice 支持的任意文件格式之间进行转换。[链接](https://github.com/dagwieers/unoconv) * XlsxWriter:一个用于创建 Excel .xlsx 文件的 Python 模块。[链接](https://github.com/jmcnamara/XlsxWriter) -- 推荐 * xlwings: Excel 中方便调用 Python 的库(反之亦然),基于 BSD 协议。[链接](https://github.com/zoomeranalytics/xlwings) * xlwt/xlrd:读写 MS Excel 97/2000/XP/2003 XLS Excel 文件的数据和格式信息。[链接](https://github.com/python-excel/xlrd) * relatorio:输出odt和pdf的模板。[链接](https://pypi.python.org/pypi/relatorio) * pyexcel:用于读取,操作和写入CSV,ODS,XLS,XLSX和XLSM文件数据的单一API。[链接](https://github.com/pyexcel/pyexcel) -- 实际pandas为第一数据处理库,支持所有excel格式, 不过会依赖上面的一些库。 合并多个excel表,插件mergebooks.dll和vba可以搞定。多表统计求和VBA可以搞定,[参考资料](https://www.zhihu.com/question/20366713), 当然pandas会比它们更强大。 [PyXLL](http://www.opentradingsystem.com/PythonForExcel/main.html)用于在excel中用python替代VBA. Pywin32 也可通过COM口连接excel。 ### PDF * PDFMiner:从PDF文档中抽取信息的工具。[链接](https://github.com/euske/pdfminer) * PyPDF2:可以分割,合并和转换 PDF 页面的库。[链接](https://github.com/mstamy2/PyPDF2) * ReportLab:快速创建富文本 PDF 文档。[链接](http://www.reportlab.com/opensource/) ### Markdown * Mistune:快速并且功能齐全的纯 Python 实现的 Markdown 解析器。[链接](https://github.com/lepture/mistune) * Python-Markdown:John Gruber’s Markdown 的 Python 版实现。[链接](https://github.com/waylan/Python-Markdown) * Python-Markdown2:纯 Python 实现的 Markdown 解析器,比 Python-Markdown 更快,更准确,可扩展。[链接](https://github.com/trentm/python-markdown2) ### YAML * PyYAML:Python 版本的 YAML 解析器。[链接](https://github.com/yaml/pyyaml) ### CSV * csv: 标准库,csv文件读写。[链接](https://docs.python.org/2/library/csv.html) * csvkit:用于转换和操作 CSV 的工具。[链接](https://github.com/wireservice/csvkit) -- 推荐 Archive * unp:方便解包归档文件的命令行工具。[链接](https://github.com/mitsuhiko/unp) ## 静态网站生成器(Static Site Generator) * [Cactus(https://github.com/eudicots/Cactus) - 为设计师设计的静态网站生成器。 * [Hyde](http://hyde.github.io/) - 基于Jinja2的静态网站生成器。 * [Lektor](https://www.getlektor.com/) - 易于使用的静态CMS和博客引擎。 * [Nikola](https://www.getnikola.com/) - 静态网站和博客生成器。 * [Pelican](https://blog.getpelican.com/) - 将Markdown或ReST用于内容,Jinja 2用于主题。 支持DVCS,Disqus。AGPL。 --强烈推荐 * [Tinkerer](http://tinkerer.me/) - 博客引擎和静态网站生成器,由Sphinx提供支持。 ## 标签(Tagging) * [django-taggit](https://github.com/alex/django-taggit) - 简单Django的标签。 ## 模板引擎(Template Engine) * [Genshi](https://genshi.edgewall.org/) - 用于生成网络感知输出的Python模板工具包。 * [Jinja2](https://github.com/pallets/jinja) - 现代和设计友好的模板语言。 -- 推荐 * [Mako](http://www.makotemplates.org/) - Python平台的超快速和轻量级模板。 ## 文本处理(Text Processing) 用于解析和操作文本的库。 ### 通用 * chardet:字符编码检测器,兼容 Python2 和 Python3。[链接](https://github.com/chardet/chardet) * difflib:(Python 标准库)帮助我们进行差异化比较。[链接](https://docs.python.org/2/library/difflib.html) * ftfy:让Unicode文本更完整更连贯。[链接](https://github.com/LuminosoInsight/python-ftfy) * fuzzywuzzy:模糊字符串匹配。[链接](https://github.com/seatgeek/fuzzywuzzy) --推荐 * Levenshtein:快速计算编辑距离以及字符串的相似度。[链接](https://github.com/ztane/python-Levenshtein/) * pyfiglet:pyfiglet -figlet 的 Python实现。[链接](https://github.com/pwaller/pyfiglet) * shortuuid:生成器库,用以生成简洁的,明白的,URL 安全的 UUID。[链接](https://github.com/skorokithakis/shortuuid) * unidecode:Unicode 文本的 ASCII 转换形式 。[链接](https://github.com/avian2/unidecode) * uniout:打印可读的字符,而不是转义的字符串。[链接](https://github.com/moskytw/uniout) * xpinyin:把汉字转换为拼音的库。[链接](https://github.com/lxneng/xpinyin) * pypinyin :把汉字转换为拼音的库。[链接](https://github.com/mozillazg/python-pinyin) * simplejson:Python的JSON编码、解码器。[链接](https://github.com/simplejson/simplejson) * smassedit:Python的sed。[链接](https://github.com/elmotec/massedit) ### Slugify * awesome-slugify:一个 Python slug 化库,可以保持 Unicode。[链接](https://github.com/dimka665/awesome-slugify) * python-slugify:Python slug 化库,可以把 unicode 转化为 ASCII。[链接](https://github.com/un33k/python-slugify) * unicode-slugify:slug 工具,可以生成 unicode slugs ,需要依赖 Django 。[链接](https://github.com/mozilla/unicode-slugify) ### 解析器 * phonenumbers:解析,格式化,储存,验证国际电话号码。[链接](https://github.com/daviddrysdale/python-phonenumbers) * PLY:lex 和 yacc 解析工具的 Python 实现。[链接](https://github.com/dabeaz/ply) * Pygments:通用语法高亮工具。[链接](https://bitbucket.org/birkenfeld/pygments-main) --强烈推荐 * pyparsing:生成通用解析器的框架。[链接](https://sourceforge.net/projects/pyparsing/) * python-nameparser:把人名分解为几个独立的部分。[链接](https://github.com/derek73/python-nameparser) * python-user-agents:浏览器 user agent 解析器。[链接](https://github.com/selwin/python-user-agents) * sqlparse:无验证的 SQL 解析器。官网[链接](https://github.com/andialbrecht/sqlparse) ## 第三方 API(Third-party APIs) 用来访问第三方 API的库。 参见: List of Python API Wrappers and Libraries。 [链接](https://github.com/realpython/list-of-python-api-wrappers) * apache-libcloud:为各种云设计的 Python 库。[链接](https://github.com/apache/libcloud) * boto3:Amazon Web Services 的 Python 接口。[链接](https://github.com/boto/boto3) * django-wordpress:WordPress models and views for Django.[链接](https://github.com/istrategylabs/django-wordpress) * facebook-sdk:Facebook 平台的 Python SDK.[链接](https://github.com/mobolic/facebook-sdk) * facepy:Facepy 让和 Facebook's Graph API 的交互变得更容易。[链接](https://github.com/jgorset/facepy) * gmail:Gmail 的 Python 接口。[链接](https://github.com/charlierguo/gmail) * google-api-python-client:Python 用的 Google APIs 客户端库。[链接](https://github.com/google/google-api-python-client) * gspread:Google 电子表格的 Python API.[链接](https://github.com/burnash/gspread) * twython:Twitter API 的封装。[链接](https://github.com/ryanmcgrath/twython) ## URL处理(URL Manipulation) 解析URLs的库 * furl:处理 URL 更简单小型 Python 库。[链接](https://github.com/gruns/furl) * purl:简单的,不可变的URL类,具有简洁的 API 来进行询问和处理。[链接](https://github.com/codeinthehole/purl) * pyshorteners:纯 Python URL 缩短库。[链接](https://github.com/ellisonleao/pyshorteners) * shorturl:生成短小 URL 和类似 bit.ly 短链的Python 实现。[链接](https://github.com/Alir3z4/python-short_url) * webargs:解析 HTTP 请求参数的库,内置对流行 web 框架的支持,包括 Flask, Django, Bottle, Tornado和 Pyramid。[链接](https://github.com/sloria/webargs) ## Video 用来操作视频和GIF的库。 * moviepy:一个用来进行基于脚本的视频编辑模块,适用于多种格式,包括动图 GIFs。[链接](https://github.com/Zulko/moviepy/) ## WSGI 服务器(WSGI Servers) 兼容 WSGI 的 web 服务器 * gunicorn:Pre-forked, 部分是由 C 语言编写的。[链接](https://github.com/benoitc/gunicorn/) --推荐 * uwsgi:uwsgi 项目的目的是开发一组全栈工具,用来建立托管服务, 由 C 语言编写。[链接](https://github.com/unbit/uwsgi-docs/blob/master/index.rst) * bjoern:异步,非常快速,由 C 语言编写。[链接](https://github.com/jonashaag/bjoern) * fapws3:异步 (仅对于网络端),由 C 语言编写。[链接](https://github.com/william-os4y/fapws3) * meinheld:异步,部分是由 C 语言编写的。[链接](https://github.com/mopemope/meinheld) * netius:异步,非常快速。[链接](https://github.com/hivesolutions/netius) * paste:多线程,稳定,久经考验。[链接](https://bitbucket.org/ianb/paste) --推荐 * waitress:多线程, 是它驱动着 Pyramid 框架。[链接](https://github.com/Pylons/waitress/blob/master/docs/index.rst) * Werkzeug:一个 WSGI 工具库,驱动着 Flask ,而且可以很方便大嵌入到你的项目中去。[链接](https://github.com/pallets/werkzeug) --推荐 ## 网页内容提取(Web Content Extracting) 用于进行网页内容提取的库。 * Haul:可以扩展的图像爬取工具。[链接](https://github.com/vinta/Haul) * html2text:将 HTML 转换为 Markdown 格式文本[链接](https://github.com/Alir3z4/html2text) * lassie:人性化的网页内容检索库。[链接](https://github.com/michaelhelmick/lassie) * micawber:一个小型网页内容提取库,用来从 URLs 提取富内容。[链接](https://github.com/coleifer/micawber) * newspaper:使用 Python 进行新闻提取,文章提取以及内容策展。[链接](https://github.com/codelucas/newspaper) --推荐 * opengraph:用来解析开放图形协议的 Python模块。[链接](https://github.com/erikriver/opengraph) * python-goose:HTML内容/文章提取器。[链接](https://github.com/grangier/python-goose) * python-readability:arc90的易读性工具的移植。[链接](https://github.com/buriy/python-readability) * sumy:一个为文本文件和 HTML 页面进行自动摘要的模块。[链接](https://github.com/miso-belica/sumy) * textract:从任何格式的文档中提取文本,Word,PowerPoint,PDFs 等等。[链接](https://github.com/deanmalmgren/textract) ## 网络爬虫(Web Crawling) [2018最佳人工智能数据采集(爬虫)工具书下载](https://www.jianshu.com/p/8fb0d209491c) * Scrapy:快速高级的屏幕爬取及网页采集框架。[链接](https://github.com/scrapy/scrapy) --强烈推荐 * cola:高层分布式爬虫框架。[链接](https://github.com/chineking/cola) * Demiurge:基于PyQuery 的爬虫微型框架。[链接](https://github.com/matiasb/demiurge) * feedparser:通用 feed 解析器。[链接](https://github.com/kurtmckee/feedparser) * Grab:站点爬取框架。[链接](https://github.com/lorien/grab/) * MechanicalSoup:用于自动和网络站点交互的 Python 库。[链接](https://github.com/MechanicalSoup/MechanicalSoup) * portia:Scrapy 可视化爬取。[链接](https://github.com/scrapinghub/portia) --推荐 * pyspider:一个强大的爬虫系统。[链接](https://github.com/binux/pyspider) --强烈推荐 * RoboBrowser:一个简单的,Python 风格的库,用来浏览网站,而不需要一个独立安装的浏览器。[链接](https://github.com/jmcarp/robobrowser) * MechanicalSoup:用于自动和网络站点交互的 Python 库。[链接](https://github.com/MechanicalSoup/MechanicalSoup) ## Web 框架(Web Frameworks) 全栈 Web 框架。 * Django:Python 界最流行的 web 框架。[链接](https://github.com/django/django) wesome-django系列 [链接](https://github.com/rosarior/awesome-django) --强烈推荐 * Flask:Python 微型框架。[链接](https://github.com/pallets/flask) awesome-flask系列 [链接](https://github.com/humiaozuzu/awesome-flask) --强烈推荐 python web框架第一名 * pyramid:一个小巧,快速,接地气的开源Python web 框架。[链接](https://github.com/Pylons/pyramid/) awesome-pyramid系列 [链接](https://github.com/uralbash/awesome-pyramid) * Bottle:一个快速小巧,轻量级的 WSGI 微型 web 框架。[链接](https://github.com/bottlepy/bottle) --推荐 * CherryPy:一个极简的 Python web 框架,支持HTTP/1.1 协议且具有WSGI 线程池。[链接](https://github.com/cherrypy/cherrypy) * sanic:python3 快速的web服务器,类似flask。[链接](https://github.com/channelcat/sanic) --推荐 * web.py:既简单,又强大的web 框架。[链接](https://github.com/webpy/webpy/tree/master) * TurboGears:易于扩展的全栈微框架。[链接](https://github.com/TurboGears/tg2) * web2py:全栈 web 框架和平台,用于安全数据库访问的web用。[链接](https://github.com/web2py/web2py) * Tornado - web 框架和异步网络库. [链接](https://github.com/tornadoweb/tornado/blob/master/docs/index.rst) ## WebSocket * AutobahnPython:WebSocket & WAMP 基于 Twisted 和 asyncio。[链接](https://github.com/crossbario/autobahn-python) * Crossbar:开源统一应用路由(Websocket & WAMP for Python on Autobahn).[链接](https://github.com/crossbario/crossbar/) * django-channels:Django异步。[链接](https://github.com/django/channels) * django-socketio:Django WebSocket。[链接](https://github.com/stephenmcd/django-socketio) * WebSocket-for-Python:为Python2/3 以及 PyPy 编写的 WebSocket 客户端和服务器库。[链接](https://github.com/Lawouach/WebSocket-for-Python) ## 监控 [python应用性能监控工具简介](https://china-testing.github.io/python_monitor.html) https://china-testing.github.io/python_monitor.html * [sentry](https://github.com/getsentry/sentry) Sentry is cross-platform application monitoring, with a focus on error reporting. https://sentry.io 推荐 * [Graphite](https://github.com/graphite-project/graphite-web/blob/master/docs/overview.rst) 存储时间序列数据,并通过Django Web应用程序在图形中显示它们。 ### 持续更新 [接口自动化性能测试线上培训大纲](https://china-testing.github.io/testing_training.html) 交流QQ群:python 测试开发自动化测试 144081101 python高级人工智能视觉 6089740 wechat: pythontesting