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

pythonista-weekly : Pyw 506

欢迎阅读《pythonista周刊》第506期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-506 翻译: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 新闻 Introducing GitHub Copilot: your AI pair programmer GitHub Copilot 是一个新的人工智能驱动的配对程序员,它与人类程序员合作,建议新的功能或代码行,支持广泛的框架和语言,包括 Python。 ...

2021-07-02 · 3 min · 1206 words · ZoomQuiet

Issue 479

2021 Python Web Conference 视频发布 原文: PyCoder’s Weekly - Issue #479 210630 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210630 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python Redux 中的子类化 HYNEK SCHLAWACK Have you ever heard someone say that composition is better than inheritance? It’s an age-old conflict in object-oriented programming that’s been the impetus for numerous online debates. Author Hynek Schlawack, who describes himself as “firmly in the composition-over-inheritance camp” explains in this article how “Python is designed in a way that you can’t write idiomatic code without subclassing sometimes.” (是也乎: 组合总比继承香? 看场景了, 如果要分包给印度弟兄们, 还是继承吧… ) Python 中的相关分析初步 OLGA BEREZOVSKY • Shared by Olga Berezovsky Correlation analysis is a useful part of exploratory data analysis. It can help you identify potential relationships between various features of your data. In this helpful guide, you’ll learn how to do correlation analysis in a pandas DataFrame. You’ll see how to display a correlation matrix as a heatmap and explore some guidelines for identifying when correlation might imply causation. 反转 Python 列表: 超越 .reverse() 和 reversed() REAL PYTHON In this step-by-step tutorial, you’ll learn about Python’s tools and techniques to work with lists in reverse order. You’ll also learn how to reverse your list by hand. (是也乎: ) Python 3.9.6, 3.8.11, 3.7.11, and 3.6.14 现已推出 CPYTHON DEV BLOG 2021 Python Web Conference 视频发布 SIXFEETUP.COM • Shared by Laura Stephens DjangoCon US 2021 提案征集已开放 PAPERCALL.IO CPython 内幕/平装本现已上市! REAL PYTHON With CPython Internals: Your Guide to the Python 3 Interpreter, you’ll unlock the inner workings of the Python language, learn how to compile the Python interpreter from source code, and cover what you’ll need to know to confidently start contributing to CPython yourself. (是也乎: ) 探讨/吐糟 Discussions ...

2021-06-30 · 4 min · 1961 words · ZoomQuiet