pythonista-weekly : Pyw 511

欢迎阅读《pythonista周刊》第511期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-511 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): SonarLint Free and Open Source IDE Extension for Python Developers - Find & Fix Code Quality and Code Security issues in your Python codebase! Discover Now 新闻 JFrog检测到恶意的PyPI软件包窃取信用卡并注入代码 JFrog 发现一个新的供应链攻击,目标是使用 PyPI 资源库的 python 开发人员。 Replit launched replit.web Replit 让程序员能够快速构建应用程序。除了浏览器,开发者可以启动服务器,在 Repl DB 中存储数据,并使用 Repl Auth 对用户进行认证。然而,直到今天,用户还必须把所有这些组件串起来才能建立一个应用程序。这就是为什么我们很高兴地宣布 replit.web,一个专注于快速制作应用程序的 Python 框架。构建具有用户认证和持久性的应用程序从未如此简单。 2021 Django Developers Survey 2021 年的 Django 开发者调查已经开始了。它旨在阐明不同的开发者如何使用 Django 以及相关的工具和技术。 ...

2021-08-06 · 3 min · 1485 words · ZoomQuiet

Issue 484

Twisted 21.7.0 发布 原文: PyCoder’s Weekly - Issue #484 210804 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210804 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 和 REST APIs: 与Web服务交互 REAL PYTHON In this tutorial, you’ll learn how to use Python to communicate with REST APIs. You’ll learn about REST architecture and how to use the requests library to get data from a REST API. You’ll also explore different Python tools you can use to build REST APIs. (是也乎: 现代西方, 所有场景中, 不出现黑人就不政治正确, 黄色人种嘛背景中有就好… ) Launchpad 现, 跑在 Python 3 上 COLIN WATSON Python 2 was sunsetted over a year ago, but many folks still find themselves maintaining large Python 2 codebases. The Launchpad team recently finished porting their entire codebase to Python 3, and this article reflects on that process, discusses some of the difficulties they encountered, regressions that occurred, and provides a number of lessons they learned throughout the process. If you are in a position of porting a Python 2 codebase to Python 3, definitely check this out. (是也乎: 不易哪, 好象 PyPI 至今还在 Py2 上跑着呢? ) PEP 665: 为Python项目指定安装要求 PYTHON.ORG There’s a new PEP in town, and this one deals with improving how installation requirements are specified in Python projects. The PEP is still in Draft status. (是也乎: 30年后, Python 终于开始为项目部署时考虑了.. ) Twisted 21.7.0 发布 TWISTEDMATRIX.COM (是也乎: ರ_ರ_ 上古神器, 继续更新ing… ) Django Bugfix : 3.2.6 发布 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-08-04 · 4 min · 1862 words · ZoomQuiet

pythonista-weekly : Pyw 510

欢迎阅读《pythonista周刊》第510期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-510 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Complete Python 3 Ethical Hacking: Beginner To Advanced! In This Complete Python 3 Ethical Hacking Course You Will Learn To Code 10+ Penetration Testing Tools From Scratch! 文章、教程与话题 The Baked Data architectural pattern Baked Data 模式对于静态网站生成器来说有很多优点,并且可以避免大多数的限制。用 Baked Data ,数据就是应用被部署时的一部分。任何时候内容改变,一个新的站点包括内容的更新就会被部署上。非常适合于以内容为导向的站点,每天内容都会更新几次内容。比如博客,文档网站,项目网站-任何内容又一小部分作者编辑的地方。 Moment of Inertia For ANY 3D Object In Python 学习如何用两种不同的方式找到 3D 对象转动惯量。第一种技术从数学上定一个 3D 对象,并且通过评估积分来获得转动惯量的张量。第二种技术通过加载一般的 3D 物体的坐标来评估张量。 A Natural Language Processing (NLP) Primer 使用 Python 的常见 NLP 任务概述。 介绍 Triton: 用于神经网络的开源 GPU 编程 Triton 是一个开源的像 Python 的编程语言,让没有 CUDA 经验的研究人员编写高效的 GPU 代码——大多数情况下和专家能够编写的代码达到同样的水平。Triton 能够轻松的充分使用硬件的性能。 用 Pandas 1.3 的 new string dtype来节省内存 在 Pandas 1.3 中,有一个新的选项可以在大量的字符串上也节省内存,只需要简单的改变成一个新的 column 类型。让我们看看如何做到。 Python’s Operator Module 中不为人知的特性 在 Python 不太常见的的 operator 模块的帮助下,使你的代码更快、更简洁、更易读、更实用。 Python PDF 处理指南 在这个教程中,学习用 Python 在 PDF 上的各种各样的操作,例如: 提取以及添加页面,文本,图片,表格,水印以及其他。 如何用 Python 和 Tweepy 制作一个Twitter Bot 一个 reply-to-mention Twitter bot 可以在被用关键词 mentioned 的情况下用自动生成的图片回复每条 tweet 。 Python’s Import System 这个视频展示了 Python import 系统(import protocol) 的细节,涉及 models 和 packages (常规以及命名空间 packages) Building CLIs in Python with Click 在这篇指南中,你将学习如何创建你自己的可以传递上下文命令行界面,命令可以接受必传参数和可选参数,以及嵌套命令。 Demystifying boto3 How to Use Any AWS Service with Python. Testing the diff 好的单元测试是以最小的范围为重点,并尽可能地将功能与外部干扰隔离。在这篇文章中,我们展示了一个看似无害的测试是如何被误导的,并没有真正捕捉到你所期望的。然后我们展示如何通过 “测试差异 “来改进它。 Comical Data Visualization in Python Using Matplotlib 如何在 Matplotlib 中进行好玩的可视化?使用 Netflix 电影和电视节目数据集进行解释。 Django and Postgres 高效的分页 本文将帮助你了解 Django 的分页限制,并提供三种替代方法来提高你的应用程序的性能。在此过程中,你会看到每种方法的权衡和使用情况,这样你就可以决定哪种方法最适合你的应用程序 Playing around with streamlit dashboards Moving SciPy to the Meson build system How to Create a Price Comparison Tool With Python BeautifulSoup ...

2021-07-30 · 4 min · 1566 words · ZoomQuiet

Issue 483

给问题自动生成代码… 原文: PyCoder’s Weekly - Issue #483 210728 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210728 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python’s 集合: 专门数据类型自助餐 REAL PYTHON Python has a number of useful data types beyond the built-in lists, tuples, dicts, and sets. In this tutorial, you’ll learn all about the series of specialized container data types in the collections module from the Python standard library. Learning the collections module is a great way to level up your Python programming knowledge! (是也乎: ) 将 Scipy 迁移进 Meson 构建系统 RALF GOMMERS In accordance with PEP 632, distutils will be deprecated in Python 3.10 and in Python 3.12 it will be removed. This posed a big problem for SciPy, since it’s build system depends on NumPy’s distutils module — an extension of Python’s built-in distutils. The SciPy maintainers set out to find a new build system and settled on Meson, which solves a number of build issues and even scores a 4x speed-up on build times! Python’s Operator 模块的未知功能 MARTIN HEINZ • Shared by Martin Heinz Have you heard of Python’s operator module? It includes functions for common operators, including mathematical operators like +, -, *, and /, and well as operators for getting items from dictionaries and accessing object attributes. The operator module might seem confusing at first glance. This article explores why it exists, what benefits you get from it, and when it makes sense to use it in your code. Python Software Foundation Fellow 2021/Q2 成员 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-07-28 · 4 min · 1713 words · ZoomQuiet