5

Python Web 框架三巨头:Flask、Django 和 FastAPI

 11 months ago
source link: https://www.51cto.com/article/769148.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Python Web 框架三巨头:Flask、Django 和 FastAPI

2023-10-09 18:17:52
Python 作为主要语言的受访者大多将其用于 Web 开发 (23%)。作为辅助语言,Python 最常用于数据分析 (16%) 和 DevOps (14%),Web 开发排在第三位 (13%)。

JetBrains 公布 2022 Python 开发者调查结果。

21b539a7097738d3e8b9528db7adb1b01b6aee.png

完整报告地址:https://lp.jetbrains.com/zh-cn/python-developers-survey-2022/

这是由 Python 软件基金会 (PSF) 和 JetBrains 共同开展的第六次官方年度 Python 开发者调查,回复于 2022 年 10 月至 12 月收集,来自近 200 个国家和地区的超过 23,000 名 Python 开发者和爱好者参与了调查,揭示了该语言及其生态系统的现状。

下面介绍部分值得关注的数据。

Python 3 与 Python 2

调查结果显示,7% 的 Python 开发者仍在使用 Python 2,93% 的开发者使用 Python 3。相比下在 2021 年度的调查中,95% 的开发者使用 Python 3,5% 的开发者使用 Python 2。

c530d2c56ff86a206a7598da6adc7b305d6fd3.png

Python 2 已经在 2020 年结束了支持。仍然使用 Python 2 的开发者中有 29% 将其用于数据分析,24% 用于计算机图形,23% 用于 DevOps。

对于 Python 3 版本使用情况,Python 3 开发者中有 45% 使用两年前发布的 Python 3.10,2% 使用 Python 3.5 或更低版本。

d4118817687ea27f36e727556e258266bd82bd.png

请注意,该调查于 2022 年 10 月 14 日至 11 月 14 日进行,Python 3.11 在 2022 年 10 月 24 日才发布。


  • Web 框架

Python Web 框架的使用率仍然是 Flask、Django 和 FastAPI 之间的三强之争。所有其他框架加起来只能勉强排在第三位。

71fed78324cdd45649f709f0916b048e9d16f9.png

去年以来,FastAPI 增加了 4 个百分点,现在有四分之一的 Python 开发者使用它。

MS SQL Server 和 Oracle Database 在数据科学家中的受欢迎程度是 Web 开发者的两倍,而大多数其他数据库在 Web 开发者中的采用率要高得多。

3111941530c2a75c84c786ad27e174ec4d741d.png
  • 大数据工具

31% 的 Python 开发者使用大数据工具,自 2021 年以来增长了 6 个百分点。在数据科学家中,这个数字达到 42%。

141ec89963eba38b61250724b3f75345ec47cf.png

PyCharm 和 VS Code 是 Python 开发的前两大 IDE,有三分之二的受访者选择。

只有 14% 的受访者只使用一款 IDE 或编辑器,绝大多数 (61%) 同时使用 2-3 款 IDE 或编辑器。26% 的 Python 开发者更喜欢 PyCharm 作为额外 IDE,四分之一选择 VS Code。

e6e54273660cf214976029065de80f6ee197e6.png
83ef46b73e8e481bcfa60403e362b976138d03.png

与去年相比,macOS 和 Windows 的受欢迎程度几乎保持不变,而 Linux 的使用率下降了 4 个百分点。

858a7a208f6165c51f507866389fd1a967c6bc.png

39% 的 Python 使用者使用文档工具,首选 Sphinx,与去年持平。

41b3bcc3067ee688a0c570aad3f0ca3218d205.png

调查还发现,21% 的开发者表示只在工作中使用 Python,51% 将 Python 用于工作和个人 / 教育用途或业余项目。

62c9d0d2634b8728744540fbad4b7d1db3e212.png

85% 的受访者表示 Python 是他们的主要语言。

310af2607155e81076d7638cb6df767dfad145.png

而使用 Python 作为主要语言的受访者大多将其用于 Web 开发 (23%)。作为辅助语言,Python 最常用于数据分析 (16%) 和 DevOps (14%),Web 开发排在第三位 (13%)。

责任编辑:武晓燕 来源: OSCHINA

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK