Issue 463

4000 个徦模块在 PyPI 原文: PyCoder’s Weekly - Issue #463 210310 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210310 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Poison Packages: 用户在用 4000 个徦模块访问 Python 社区 PAUL DUCKLIN Recently, a PyPI user going by the name “Remind Supply Chain Risks” uploaded nearly 4000 fake modules to the index, many of which were named as common misspellings of popular packages. Learn about the incident in this article, and read all the way to the end for four tips every Python developer should follow. (是也乎: Fake News Fake Modules Fake People Fake … ) Atlas: 从 Python 巨石到托管平台的旅程 NAPHAT SANGUANSIN AND UTSAV SHAH See how dropbox migrated their internal systems from a monolith architecture to something more service-oriented without disrupting their users while also minimizing the operation cost that typically comes with owning a service. (是也乎: Dropbox 的奇幻想之旅 ) 更快地检测/诊断和解决代码级问题, 从而优化 Python 应用性能 DATADOG sponsor Datadog’s Continuous Profiler allows you to find the most resource-consuming parts in your production code all the time, at any scale, with minimal overhead. Improve MTTR, enhance user experience and reduce cloud provider costs with Datadog APM. Start troubleshooting your Python apps today → (是也乎: 良心赞助商. ) Django View 授权: 限制访问 REAL PYTHON course Learn how to restrict your web pages to users with different roles through Django view authorization. You’ll learn about HttpRequest.user objects, view decorators that authenticate, and how to notify your users with the Django messages framework. (是也乎: ) Django 3.2 令人兴奋的新功能 HAKI BENITA Django 3.2 is just around the corner and it’s packed with new features. Django versions are usually not that exciting — and that’s a good thing — but this time many features were added to the ORM. (是也乎: 是的, 没什么特性比增强 ORM 要来的兴奋/实用 ) PEP 621 最终 PYTHON.ORG In the near future, you’ll be able to store project metadata in pyproject.toml. (是也乎: 从 yaml 开始, 现在 toml 也转正了, 世界终究回到了 ML 的手中… ) Python 3.10.0a6 可用于测试 PYTHON.ORG Test it out today and take structural pattern matching for a spin! 探讨/吐糟 Discussions ...

2021-03-10 · 4 min · 1795 words · ZoomQuiet

Issue 462

运行在火星直升机上 原文: PyCoder’s Weekly - Issue #462 210303 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210303 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 语义版本化不会挽救您 HYNEK SCHLAWACK Semantic versioning aims to both communicate the version of software as well as promise that certain versions won’t break anything. Sounds great, right? In a lot of cases it is, but a blind reliance on semantic versioning can come back to haunt you. (是也乎: 也就是说, 软件考古学, 并不依赖优雅的版本号. ) Python 和 MongoDB: 连接到 NoSQL 数据库 REAL PYTHON Learn how to use Python to interface with the NoSQL database system MongoDB. You’ll get an overview of the differences between SQL and NoSQL, and you’ll also learn about related tools, including PyMongo and MongoEngine. (是也乎: 讲真, Python 内置的 BSDDB ) 用 Python 生成可定制的PDF报告 MARTIN FITZPATRICK Learn how to generate custom PDF reports using reportlab and pdfrw with a PyQt GUI. (是也乎 实用 ) Python 在火星直升机上运行 NASA.GITHUB.IO (是也乎: 俺不相信 JPL 已经放弃了 LISP ) Python 3.10.0a6 现在可用于测试 CPYTHON DEV BLOG Now including structural pattern matching! Arrow 1.0.0 发布ed ARROW.READTHEDOCS.IO (是也乎: 嗯哼? 终于 1.0 了, 就看何时被 Python 官方内建了, 那才是真正融入历史. ) Python 开发人员2020调查结果 JETBRAINS.COM (是也乎: 为了多卖些许可证, 喷脑 很拼了… ) 祝 Python 和 Python 软件基金会周年快乐! PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-03-03 · 4 min · 1877 words · ZoomQuiet

Issue 461

Happy Birthday, Python;-) 原文: PyCoder’s Weekly - Issue #461 210224 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210224 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 并发: 棘手问题 HAMEL HUSAIN An exploration of threads, processes, and coroutines in Python, with interesting examples that illuminate the differences between each. (是也乎: 类似 CAP 法则, 嫑想同时什么好处都有; 通过其它经过考验的高并发能力系统转移矛盾, Py 安心作自己擅长的事儿就好. ) 为什么真的需要升级 Pip ITAMAR TURNER-TRAURING If you’re using an old version of pip, installing the latest version of a Python package might fail—or install in a slower, more complex way. Learn what the problem is exactly, how to solve it, and what causes it. (是也乎: 官方广告.. 其实, 不用任何 pip 指令就能完备部署的系统才是合格的生产系统. ) 用 Python 每秒12个请求 SUADE.ORG How much should we trust framework benchmarks? And to what extent should they influence your choice of technology? (是也乎: 嗯哼? 这就是打脸了… 标准化是技术到一个大平台期了, 大家无法作到差异化时… ) Python & APIs: 读取公共数据的成功组合 REAL PYTHON Learn what APIs are and how to consume them using Python. You’ll also learn some core concepts for working with APIs, such as status codes, HTTP methods, using the requests library, and much more. (是也乎: 其实, 开放数据接口, 最要命的一点就是: 嫑乱变 嘦是一个版本的接口, 无论多不合理, 发布后就没改, 否则, 对应下游系统就囧了. ) Python 字符串如何工作 VIKTOR SKVORTSOV Learn the ins and outs of how Python strings work, with a focus on how text is encoded and represented internally. (是也乎: 老爹最心塞的一次架构, 导致最后 2->3 无法兼容 ) Python 3.X至3.9.1的缓冲区溢出可能导致远程执行代码 NIST.GOV Upgrade to 3.8.8 or 3.9.2 to avoid the issue. 探讨/吐糟 Discussions ...

2021-02-24 · 4 min · 1958 words · ZoomQuiet

Issue 460

PEP 8 之歌 原文: PyCoder’s Weekly - Issue #460 210217 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210217 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PEP 634: 结构模式匹配 ( match / case ) PYTHON.ORG A few links related to PEP 634, which will add structural pattern matching to Python via a new match/case statement: PEP 634 (Specification), PEP 635 (Motivation and Rationale), PEP 636 (Tutorial & Examples) Python 字符串是不可变的/但仅在有时是 AUSTIN HENLEY It turns out you can mutate a string in Python… sort of. (是也乎: 困难的总是不时点 ) 用 Pandas 轻松解决困难的数据分析问题 MARTIN • Shared by Martin A great strategy to use when faced with a tricky data analysis problem is to reshape the dataset into a format that turns it into an easy problem. In this article, you’ll look at an example involving a simple calculation and extensive reshaping in pandas. (是也乎: 数据分析并不难, 难就难在: 如何清洁原始数据, 以及事先形成偏见. ) 用 Pandas 有效清洗文本 CHRIS MOFFITT In this article, you’ll see some examples of cleaning text fields in a large data file and learn several strategies for efficiently cleaning unstructured text fields using Python and pandas. (是也乎: Pandas 也变成一个通用数据清洁机了..,.. ) 构建富终端仪表板 WILL MCGUGAN Learn how to use the Rich CLI library’s new terminal dashboard feature. (是也乎: 基本上这种界面也只有影视作品中值得用, 现实中, 包含一点儿中文就全部错行了… ) 带 gRPC 的 Python 微服务 REAL PYTHON Learn how to build a robust and developer-friendly Python microservices infrastructure using gRPC and Kubernetes. You’ll also explore advanced topics such as interceptors and integration testing. (是也乎: 这个插图比较马虎… ) Python 3.7.10 和 3.6.13 安全更新现已发布 CPYTHON DEV BLOG 探讨/吐糟 Discussions ...

2021-02-17 · 4 min · 1862 words · ZoomQuiet