pythonista-weekly : Pyw 508

欢迎阅读《pythonista周刊》第508期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-508 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 新闻 Łukasz Langa is the inaugural CPython Developer-in-Residence! Łukasz 将全职工作一年,协助 CPython 维护者和指导委员会的工作。负责的领域将包括分析研究,以了解项目的志愿者时间和资金,调查项目的优先事项及其未来的任务,并开始为这些优先事项工作。 ...

2021-07-16 · 3 min · 1404 words · ZoomQuiet

Issue 481

WASM 支持下跑在浏览器中的 Jupyter 原文: PyCoder’s Weekly - Issue #481 210714 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210714 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 数据库事务太多 HAKI BENITA Learn how a bug was born — one that resulted in hundreds of users of an application getting a notification that they had been paid when in fact they had not! In this story, Haki Benita shares how a slip-up with Django signals caused him and his team quite a headache. You’ll learn how the application was architected, how the bug occurred, and how they fixed it, along with some other remedies to consider. (是也乎: 这得怪 SQL, 以及框架的隔离… ) 在 2021 Python 打包状态 BASTIAN VENTHUR opinion What does Python packaging look like in 2021? What are the best tools to use? In this article, you’ll see one developer’s opinion about the state of Python packaging in 2021, what tools they are using the most often, and some thoughts on how the situation can continue to improve moving forward. (是也乎: 低产作者…知名作品: Creating Beautiful Github Streaks | Bastian Venthur’s Blog ) Python 新闻: 2021 年 6 月有什么新变化? REAL PYTHON June 2021 was full of notable events in the Python world! In this article, you’ll get caught up on what’s been happening with Python during this past month, including some changes at the Python Software Foundation and the announcement of a new recipient of the PSF Fiscal Sponsorship Program. (是也乎: ) Python 3.10.0b4 可用 CPYTHON DEV BLOG This is the last beta release, which means the next release will be the first release candidate. Łukasz Langa -> 首位 CPython 筑地开发人员 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions NULL ...

2021-07-14 · 4 min · 1709 words · ZoomQuiet

pythonista-weekly : Pyw 507

欢迎阅读《pythonista周刊》第507期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-507 翻译:Dustyposa 文章、教程与话题 在你的笔记本电脑里建立一个数据中心 在你自己的计算机内建立一个虚拟交换网络。伦敦玛丽皇后大学的 Richard G Clegg 博士演示了如何建立一个用 Python 配置的软件网络。 One Database Transaction Too Many 一个关于我如何最终向数百名用户发送消息说他们得到报酬而他们没有得到报酬的故事! 在这个过程中,我们学到了关于嵌套事务和 Django 信号的宝贵经验。 逆向工程:M6智能健身手环 一篇关于黑掉6美元的 M6 健身追踪器的帖子。 Introduction to Django Rest Framework 在本系列教程中,你将学习有关 DRF 的基础知识:如何启动一个项目,处理认证,使用 ViewSets 和序列化工具。 怎样在Python中处理JWTs 学习如何使用 PyJWT 在 Python 中创建、解析和验证你的 JWTs。 外星人的梦想: 一个新兴的艺术场景 2021年1月, OpenAI 发布了他们的 CLIP 模型的权重和代码,从那时起,各种黑客、艺术家、研究人员和深度学习爱好者已经想出了新的方法,将 CLIP 与各种生成模型结合起来,仅从文本提示中创造出美丽的视觉艺术。这篇文章记录了这个新的艺术场景的演变,并分享了沿途的一些很酷的艺术作品。 Python中的变量是如何工作的|用动画解释 这段视频试图用动画来解释 Python 中的变量或名称绑定是如何工作的,以及它们的内部表现形式,如 PyObject 和 PyVarObjects。 从 Eufy 手中夺回我的数据 驱动我做这件事的原因是公司不提供一个机制来获得你的数据。用 Eufy SmartLife 我找到了 hack 方法。 用papermill对Jupyter笔记本进行参数化和自动化处理 Jupyter 笔记本经常以不同的参数运行,而自动设置参数和运行的最好方法是 papermill。 Python后端开发课程(含Django) 本视频是一个完整的用 Python 进行的后端网络开发课程。在该课程中,你将学到你需要知道的一切,以开始你的 Python 和 Django 的 Web 开发之旅。 The State of Python Packaging in 2021 当 Python 的语法忽略了评论时,Black 如何处理这些评论? Pyflyby: Improving Efficiency of Jupyter Interactive Sessions 使用谷歌表作为Python数据库 ...

2021-07-09 · 3 min · 1227 words · ZoomQuiet

Issue 480

如何在 Python 中处理 JWT 原文: PyCoder’s Weekly - Issue #480 210707 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210707 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 的类型类 NIKITA SOBOLEV • Shared by Nikita Sobolev Sometimes you need to change the behavior of a function based on the type of argument passed to it. This is a classic example of polymorphism in programming. In this article, you’ll learn how this is typically done in Python, compare that to polymorphism in other languages, and see how the new classes library can make the whole process easier. Django REST 框架中/自定义权限类 TESTDRIVEN.IO • Shared by Špela Giacomelli (aka GirlLovesToCode) One of the great things about Django REST Framework (DRF) is how easy it is to be productive with the built-in API views and permission classes. But sometimes you need a bit more control than the built-in objects allow. This article walks you through how to create and use custom permission classes in DRF so that you can have complete control over how permissions work in your REST API. (是也乎: 这种想绕过框架的尝试, 多数都没能坚持多久… ) Monitor Your Python Applications’ Performance in Real Time with Datadog APM DATADOG sponsor Pinpoint hard-to-reproduce problems in your production code without affecting your app’s performance with Datadog’s Continuous Profiler. Locate which functions (or lines of code) consume the most resources, such as CPU and memory and optimize for a better app experience. Try Datadog APM free → Python 计数器: Pythonic 方式计数对象 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use Python’s Counter to count several repeated objects at once. You’ll also learn how to use Counter objects to enhance other computations that you do in Python. Django Security 发布: 3.2.5 and 3.1.13 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2021-07-07 · 4 min · 1732 words · ZoomQuiet