跳转至

531-540

Issue #531 Tic-Tac-Toe With Tkinter, 6 Steps After Django startproject, AsyncIO for Web Apps, and More June 28, 2022

Django的关注度是真的高,几乎每期都要有俩相关文章,我flask真没牌面

Cite

3 Things to Know Before Building With PyScript
PyScript is a browser-embedded python environment built on top of Pyodide. Although it is a powerful tool, there are some things you need to be careful with. Read on to find out more. BRADEN RIGGS

已经13K的star了

Issue #532 Functional Programming, Single Page Apps with Pyodide, Composing Music, and More July 5, 2022

程序调度框架,感觉有点用处

from redengine import RedEngine

app = RedEngine()

@app.task('daily')
def do_daily():
    ...

if __name__ == '__main__':
    app.run()

Issue #533 TOML in Python 3.11, Django and Angular, Constrain With assert, and More July 12, 2022

Cite

Python 3.11 Preview: TOML and tomllib
Python 3.11 will be released in the fall of 2022. In this tutorial, you’ll install the latest beta release of Python 3.11 in order to preview the new tomllib module that’s added to the standard library. You’ll also explore some of the static typing enhancements that are coming. REAL PYTHON

又火了一个Toml

Issue #534 Measuring Python Code Quality, Subtests, Parallel Processing, and More July 19, 2022

Cite

Subtests in Python
“unittest.TestCase.subTest was originally introduced in Python 3.4 as a lightweight mechanism for test parameterization; it allows you to mark a section of your test as a separate test in its own right using a context manager.” Learn all about sub-tests in both the unittest module and pytest. PAUL GANSSLE

https://github.com/pytest-dev/pytest-subtests 单元测试参数化

约定优于约束

相比于Celery没感觉有啥特别惊艳的功能

Issue #535 Flashcards in Django, Persistent Auth in CLIs, Replace These Libraries, and More July 26, 2022

Issue #536 NLP, Python at Meta, Testing PyPy, and More Aug. 2, 2022

Cite

How to Create a Python Package in 2022
From how to get structure your package and its tests to dealing with pre-commit hooks and publishing to PyPI, this article walks you through recommended tools and techniques for creating a Python package. RODRIGO GIRÃO SERRÃO

讲怎么做一个Python的包,从新建环境一直讲到了上传到PyPi,还是挺好的。里面用的Poetry管理的环境,没想到还活着,我以为已经没人维护了

Cite

pls: A Prettier ls
GITHUB.COM/DHRUVKB

写得好,懒得学

Issue #537 Finding & Fixing Python Bugs, Uncommon Usage, NBA Highlights, and More Aug. 9, 2022

用不到,看个热闹

Cite

7 Things I’ve Learned Building a Modern TUI Framework
“I’ve be working on Textual for over a year now. Here’s a few things I’ve discovered (or re-discovered) regarding terminals in Python, and software development in general.” WILL MCGUGAN

TUI,多么美妙的组合

看起来愿景倒是不小,不过完成度太低了,组件看起来还没有PySimpleGUI好用。先观望观望看看会不会凉吧

Issue #538 NLP Forward, Python Unstoppable, Auditing in Pip, and More Aug. 16, 2022

Cite

10 Malicious Python Packages Found
Ten more malicious packages have been found in a series of supply-chain attacks on PyPi. Increasingly, hosting sites are discussing how to handle the situation, with GitHub creating an RFC on package signing. KEVIN PURDY

签名是个好主意,就是感觉增加了用户使用成本。感觉还是要上传包的时候来审核一下比较合理

Issue #539 Python async on the Web, GitHub Copilot, PyTorch Snake, and More Aug. 23, 2022

Cite

GitHub Copilot: Fly With Python at the Speed of Thought
In this tutorial, you’ll get your hands dirty with GitHub Copilot, a virtual pair programmer powered by artificial intelligence trained on billions of lines of code. You’ll explore several practical use cases in Python for this amazing productivity tool. REAL PYTHON

写注释然后生成代码一般都是玩一玩,实际使用过程中还是使用AI智能补全技术。大多数时候Copilot可以帮助写很多冗余重复的代码,绝大多数情况下还是比较 舒服。难受的地方是有的时候用的太熟练了,补全了但是补全的是一个错误的代码,往往还一眼看不出来,反而增加了debug难度。不过总体还是比较香的

Issue #540 Build a URL Shortener With FastAPI, Pythonic Mobile Apps, Mypy at Scale, and More Aug. 30, 2022

Cite

Making Plots in Your Terminal With Plotext
This article shows you how to use the plotext package to quickly plot data from your terminal. It describes a small project that uses requests to fetch data from an API and plotext to graph it. BOB BELDERBOS

介绍了一下plotext这个库的使用,花里胡哨

评论