![1e86fe33bdc98660f3b02eff2384d1aa.png](https://i-blog.csdnimg.cn/blog_migrate/4fcb881c1cdb2f12e67ef977166ac8b7.jpeg)
授权自AI科技大本营(ID:rgznai100)
本文多干货,建议收藏。
本文为你整理2019年最值得关注的34个Python开源项目。
![f51283bc7a4ab3d4cf997ad644b9f12e.png](https://i-blog.csdnimg.cn/blog_migrate/30ee7748a7f5549d9f254cb065fd5811.jpeg)
[ 导读 ]踏着人工智能、区块链的东风,近年来一路“横冲直撞”的 Python 在实现了从小众语言到主流的完美转身后,一头扎进了 2019,依旧没有透出丝毫停下来的架势,反倒有些越烧越热的味道。本文将为你介绍 2019 年最值得关注的 34 个 Python 开源项目——Let's go!
在过去的一年里,Mybridge 比较了近 10000 个 Python 开源库,并从中挑选出最实用的 34 个工具来帮助你开发。
这些开源项目的平均 Star 数为3293,下面将把它们分为 8 类进行分享:
![556b04c386d2263275d07cb51aff59f9.png](https://i-blog.csdnimg.cn/blog_migrate/1dee20e8b15d9d3949d585df4e7a369c.jpeg)
开源项目对程序员来说意义非凡,可以大大提升软件开发速度,让我们花些时间,一起来看看这些在可能被你错过了的 Python 开源项目吧。
Python Toolkit
1. Pipenv
Star 数:15710
GitHub:https://github.com/pypa/pipenv
介绍:Pipenv 是 Python.org 官方推进的 基于 pip 的 Python包管理工具,旨在将所有包管理工具(如 bundler、composer、npm、cargo、yarn 等)的优点集中应用于 Python 领域中的工具,对各个平台都有很好的支持。
![a46c5229685a0690494369813ad03429.png](https://i-blog.csdnimg.cn/blog_migrate/3d7c000f6709082688c306af4cb2b82d.jpeg)
2. Pyxel
Star 数:4884
GitHub:https://github.com/kitao/pyxel
介绍:一个用 Python 编写复古游戏的开发环境。
![c0e4b316eb18162b443ad00409cc2965.png](https://i-blog.csdnimg.cn/blog_migrate/442499d3eb9040b868f60bc797298308.jpeg)
3. PyTest v3.5
Star 数:3631
GitHub:https://github.com/pytest-dev/pytest
介绍:一个非常成熟的全功能的 Python 测试框架,使编写小型测试变得容易,同时支持复杂的功能测试。
![fdd509f88918b4845bb7f190c221433e.png](https://i-blog.csdnimg.cn/blog_migrate/61e5f5512ae24c7a3d8c9c6329584264.jpeg)
4. Poetry
Star 数:3228
GitHub:https://github.com/sdispater/poetry
介绍:让 Python 依赖管理和打包变得容易。
![29870b8be3075aa5588bc68d4edef5a2.png](https://i-blog.csdnimg.cn/blog_migrate/ea23722c35a7474a2d1f880e5c91bd79.jpeg)
5. Loguru
Star 数:3048
GitHub:https://github.com/Delgan/loguru
介绍:一个 Python 日志记录库,使 Python 日志变得极端简单。
![da72173db9cb27d79cfa825c2dbf9f15.png](https://i-blog.csdnimg.cn/blog_migrate/e5b797cdaffe037079eebda93476cb02.jpeg)
6. Faust
Star 数:2733
GitHub:https://github.com/robinhood/faust
介绍:Faust 是一个流处理库,用于构建 Python 流应用程序,将 Kafka 流中的思想移植到 Python 中。
![929a93e8dc18dfb3917de1ba808fe13c.png](https://i-blog.csdnimg.cn/blog_migrate/d201a1914308b3f1aedb7c7ada3ee900.jpeg)
7. Pampy
Star 数:2399
GitHub:https://github.com/santinic/pampy
介绍:优雅的 Python 模式匹配库——你梦寐以求的 Python 模式匹配。Pampy 相当小(150行),速度相当快,并且使代码更具可读性,更容易推理。
![f845060d7f2a4fa536af8b7f881c6a8d.png](https://i-blog.csdnimg.cn/blog_migrate/afb4409cdb8f4f5bbd2a8f3dd23fa4cb.jpeg)
8. Pyre-check
Star 数:2242
GitHub:https://github.com/facebook/pyre-check
介绍:Facebook 开源的 Python 快速静态类型检查器。
![f2e2d8fad8dd318b06f54dcc579fc67d.png](https://i-blog.csdnimg.cn/blog_migrate/0f8e92a8a2eaabaf0046836ae078bddb.jpeg)
9. Delorean
Star 数:1519
GitHub:https://github.com/myusuf3/delorean
介绍:Delorean 是 Python 里一个很方便的日期时间库,可以让人更简单省心的获取时间,不必受困于时间模块中的各种问题。
![f4e4ef147f04b0af51f6bae65c5e6a8a.png](https://i-blog.csdnimg.cn/blog_migrate/064e54b585df7b8ad47f4517d95463f5.jpeg)
10. Cirq
Star 数:1394
GitHub:https://github.com/quantumlib/Cirq
介绍:是 Google 专为 NISQ 算法打造的框架,用于创建、编辑和调用嘈杂中型量子 (NISQ,Noisy Intermediate-Scale Quantum),允许开发者为特定的量子处理器编写量子算法。
![15e0cbbc0bd320666592d49a551d3cf3.png](https://i-blog.csdnimg.cn/blog_migrate/f12c40dc82f8787bbeacf562819dedcb.jpeg)
11. Python-nubia
Star 数:1032
GitHub:https://github.com/facebookincubator/python-nubia
介绍:一款由 Python 编写的,用于建立命令行应用的轻型框架(命令行与交互式 shell 框架),由 Facebook 团队开发。
![144ac2d536d5187009d6980d30931b91.png](https://i-blog.csdnimg.cn/blog_migrate/1daa60e58b29cfee05259dd49b4a8ec8.jpeg)
Web
12. Requests-HTML
Star 数:8995
GitHub:https://github.com/kennethreitz/requests-html
介绍:一个解析 HTML 的库。
![a2760d114f3107c8fa9fdb8d2f395f8c.png](https://i-blog.csdnimg.cn/blog_migrate/b76534d38729139af9f15d0b265a44df.jpeg)
13. Bokeh
Star 数:8943
GitHub:https://github.com/bokeh/bokeh
介绍:一个 Python 交互式可视化库,支持在现代 Web 浏览器中对数据进行美观且有意义的可视化表示。
![ab2308162e2e9bc342c08c73fa2d77c2.png](https://i-blog.csdnimg.cn/blog_migrate/cf198d43d5135e163a257752c89dec3d.jpeg)
14. Vibora
Star 数:4665
GitHub:https://github.com/vibora-io/vibora
介绍:一个快速、异步且性感的 Python Web 框架。
![53f6458e0268d65e6291ec2adb31c778.png](https://i-blog.csdnimg.cn/blog_migrate/f1f578d97dc090738520a90d1514468e.jpeg)
15. Pywebview v2.0
Star 数:1208
GitHub:https://github.com/r0x0r/pywebview
介绍:一个webview 组件的轻量级跨平台原生封装,实现利用 Web 技术开发 GUI 应用,允许在它自己的专用窗口中显示 HTML 内容。
![b8e453b3de067c2b6517a7749aec9dce.png](https://i-blog.csdnimg.cn/blog_migrate/86df85f2f8db73b681bfe9a0c02340bf.jpeg)
16. WhatWaf
Star 数:995
GitHub:https://github.com/Ekultek/WhatWaf
介绍:检测并绕过 Web 应用程序防火墙和保护系统。
![6da19a2ba708d64be45f01d2eff48d3a.png](https://i-blog.csdnimg.cn/blog_migrate/92aada1c93114ea87f3da7fb60bcdf79.jpeg)
17. Molten
Star 数:796
GitHub:https://github.com/Bogdanp/molten
介绍:一个用 Python 3.6 或更高版本构建 HTTP API 的迷你、可扩展、快速且高效的框架。
![e521c90c655499a289f25573bec874ec.png](https://i-blog.csdnimg.cn/blog_migrate/8b7068613b417a1ee3c2a0adf86a4606.jpeg)
Terminal
18. Termtosvg
Star 数:7522
GitHub:https://github.com/nbedos/termtosvg
介绍:一款录制终端操作的命令行工具,它可以将终端会话录制成一个单独的用 Python 编写的 SVG 动画。
![76e57dce10fa6485485edcfc108edcd5.png](https://i-blog.csdnimg.cn/blog_migrate/beab130897ebfac80b75fa5c76ddb54b.jpeg)
19. Asciinema v2.0
Star 数:6668
GitHub:https://github.com/asciinema/asciinema
介绍:Python 内置的终端会话记录器,能够在 Linux 等终端上进行录屏,并且录屏不生成视频文件,而是生成文字形式。
![b56a41aa813df57840ba44fa20403a5c.png](https://i-blog.csdnimg.cn/blog_migrate/dd266ad0e06274b8ad5866e5c885c46a.jpeg)
20. Termgraph
Star 数:2005
GitHub:https://github.com/mkaz/termgraph
介绍:在终端中绘制基本图形的 Python 命令行工具。
![7ff126c212f0edbd335cc472a09a408b.png](https://i-blog.csdnimg.cn/blog_migrate/8fb67eeaebf5bc173358a96517d4b2c5.jpeg)
Code Editor
21. Black
Star 数:7629
GitHub:https://github.com/ambv/black
介绍:“不妥协”的 Python 代码格式化工具。之所以称之为“不妥协”是因为它检测到不符合规范的代码风格直接就帮你全部格式化好,根本不需要你确定,直接替你做好决定,因此速度也很快。
![57270673dff2c6439b59c1133db44325.png](https://i-blog.csdnimg.cn/blog_migrate/9ffbcd60b11b788ea392660b8ea8408e.jpeg)
22. Algojammer
Star 数:2750
GitHub:https://github.com/ChrisKnott/Algojammer
介绍:是一个实验性的概念验证代码编辑器,用于在 Python 中编写算法。
![806674e330b2b24edaa33d9497d9b351.png](https://i-blog.csdnimg.cn/blog_migrate/b68c5f18fe42a11d547d09f26767e91d.jpeg)
23. Bowler
Star 数:879
GitHub:https://github.com/facebookincubator/bowler
介绍:一种用于在语法树级(syntax tree level)操纵 Python 的重构工具,可以实现安全而大规模的代码修改任务,同时保证生成的代码可以编译和运行。它提供了一个简单的命令行界面和流畅的 Python API 接口,用于在代码中进行复杂的代码修改。
具体来说,Bowler 通过一系列选择器、过滤器和修改器来调用 Query API 接口实现脚本重构。使用现有的 API 可以进行许多简单的修改,但你也可以根据需要,自定义选择器、过滤器和修改器来构建更复杂的重构过程。
![78e8e1cb2168a3176259e18f4a59247b.png](https://i-blog.csdnimg.cn/blog_migrate/66519d6c8cbc74285d3adf28aa795a2c.jpeg)
Debugging
24. Py-spy
Star 数:3479
GitHub:https://github.com/benfred/py-spy
介绍:一种由 Python 程序驱动的采样分析器,它允许可视化 Python 程序内容,而无需重新启动程序或以任何方式修改代码。它是用 Rust 语言编写的,运行速度快,计算成本极低,不需要在配置 Python 程序的进程中同时运行,也不会以任何方式中断当前正在运行的程序,这意味着 Py-Spy 可以安全地用于 Python 代码的生成。此外,Py-Spy 适用于 Linux,OSX 和 Windows 等平台,并支持在最新版本的 CPython 解释器上进行分析工作。
![06880749daa470d5da610b9e41ede2ca.png](https://i-blog.csdnimg.cn/blog_migrate/bc76fa8aea5e501f6dfc9bf2594cdb05.jpeg)
25. Birdseye
Star 数:1068
GitHub:https://github.com/alexmojaki/birdseye
介绍:一个使用 AST 的快速、便捷、表达式为中心的图形化 Python 调试器。
![bc2a2d28bed0cc7ea5aca771724add75.png](https://i-blog.csdnimg.cn/blog_migrate/5be125e4493b0e8b0ed000927a79a25d.jpeg)
26. Icecream
Star 数:728
GitHub:https://github.com/gruns/icecream
介绍: 一个用于甜美和奶油色打印调试的小库。
![1bbc76a533d0a689ee567dd8e1b60735.png](https://i-blog.csdnimg.cn/blog_migrate/398e5b5cc2642a75a5a0306f890097f4.jpeg)
Compiler
27. Transcrypt
Star 数:1561
GitHub:https://github.com/qquick/Transcrypt
介绍:一款把 Python(Python 3.7)编写的代码转换成 JavaScript 的工具,精简、快速、开放。让你告别手写繁复的 JavaScript 代码,使用相对简明清晰的Python代替这一工作。
![6d66547bba93249769a637cd40a18285.png](https://i-blog.csdnimg.cn/blog_migrate/46a62d3459b63b3ea407290e2d2f3df5.jpeg)
28. Pyodide
Star 数:1041
GitHub:https://github.com/iodide-project/pyodide
介绍:编译成 WebAssembly 的 Python 科学栈。
![9b575ba63ff26ad8f799ec2e487908ca.png](https://i-blog.csdnimg.cn/blog_migrate/7b2c52003bc4e15c163334b1786f1a63.jpeg)
Data Related
29. Voluptuous
Star 数:1368
GitHub:https://github.com/alecthomas/voluptuous
介绍:虽然顶着个 Voluptuous(性感丰满的)的名字,但就是一个 Python 数据验证库。
![ef23129b338f3d8fcfa0b404937f6ad9.png](https://i-blog.csdnimg.cn/blog_migrate/2d3d9f616fb0fe9d7eb4d126b00147cd.jpeg)
30. Botflow
Star 数:933
GitHub:https://github.com/kkyon/botflow
介绍:用于数据管道工作(如网络爬虫、机器学习、量化交易等等)的 Python 快速数据驱动编程框架。
![806da157496c796148f9e7cb20922944.png](https://i-blog.csdnimg.cn/blog_migrate/d35bac60912afbae2d70ceacaf6fe042.jpeg)
31. Fast-Pandas
Star 数:798
GitHub:https://github.com/mm-mansour/Fast-Pandas
介绍:Pandas 中针对不同大小数据帧(DataFrame)的不同运算基准。
![df0dea29b9fedab816129e8dfd932374.png](https://i-blog.csdnimg.cn/blog_migrate/1129aef100fe51e88d573b9b19d7a55c.jpeg)
Chart
32. pywonderland:A Tour in the Wonderland of Math with Python(基于 Python 的数学仙境之旅)
Star 数:3172
GitHub:https://github.com/neozhaoliang/pywonderland
介绍:一组 Python 脚本,用于绘制漂亮的图形及模拟有趣的数学算法。
![ef23129b338f3d8fcfa0b404937f6ad9.png](https://i-blog.csdnimg.cn/blog_migrate/2d3d9f616fb0fe9d7eb4d126b00147cd.jpeg)
33. Chartify
Star 数:1817
GitHub:https://github.com/spotify/chartify
介绍:让数据科学家画图变得更轻松的 Python 库。
![5147a2e42626b315675617c1d0292cc0.png](https://i-blog.csdnimg.cn/blog_migrate/561db2bfb3819d1f2d0c19cb5cb01437.jpeg)
34. Hypertools v0.5
Star 数:1353
GitHub:https://github.com/ContextLab/hypertools
介绍:高维数据可视化&处理的 Python 工具包(数据降维&可视化工具)。
![48f154a9026767a1967584a6f14a4473.png](https://i-blog.csdnimg.cn/blog_migrate/8443a2f303e9cbb6b252690def9bd3fc.jpeg)
原文链接:
https://medium.mybridge.co/34-amazing-python-open-source-libraries-for-the-past-year-v-2019-93d6ee11aceb
— 完 —
关注清华-青岛数据科学研究院官方微信公众平台“THU数据派”及姊妹号“数据派THU”获取更多讲座福利及优质内容。