561-570¶
Issue #561 Time, Property-Based Pytest, Continuous Profiling, and More Jan. 24, 2023¶
Cite
socketify.py: High Performance Python Web Server
GITHUB.COM/CIROSPACIARI
用的PyPy,还比较少见
Issue #562 Apache Airflow, Nox, Simulating Broken DB Connections, and More Jan. 31, 2023¶
Cite
Why I Like Nox
Both nox and tox are multi-environment testing tools. This opinion piece by Hynek compares and contrasts them and explains why increasingly he is using nox.
HYNEK SCHLAWACK
https://github.com/wntrblm/nox star太少就不看了,等他成长一波吧
Cite
So, Single (') or Double (") Quotes in Python?
The article addresses the following question. Many claim you should prefer single over double quotes in Python. Should you?
MEDIUM.COM/PYTHONIQ • Shared by Marcin
听pep8的,愿意用哪个就用哪个
Issue #563 Wordle Clone, Wasm, Three Python Trends, and More Feb. 7, 2023¶
Cite
Dictionary Dispatch Pattern in Python
The dictionary dispatch pattern uses a dict to store references to functions, allowing you to replace long if/else statements or as an alternative to the match statement. Read on for how and where to use it.
MARTIN HEINZ
当我拉到文章的最下面,果然看到了match case。总结起来说如果你的Python版本没有match case,那么就用这个方法来代替,有match case还是match case比较香
Issue #564 Monorepos, SpiffWorkflow, Functional Python, and More Feb. 14, 2023¶
Cite
SQLAlchemy 2.0 Released
SQLALCHEMY.ORG
Flask-sqlalchemy已经跟进了,速度极快 https://github.com/pallets-eco/flask-sqlalchemy/blob/main/pdm.lock
Cite
Mypy 1.0 Released
MYPY-LANG.BLOGSPOT.COM
速度更快,没感觉到,升级了之后倒是新检测出一些0.991版本没检测到的error
Issue #565 Buffer Flushing, Async Bugs, SQLAlchemy 2.0, and More Feb. 21, 2023¶
Cite
What’s New in SQLAlchemy 2.0?
SQLAlchemy 2.0 was launched in January. This article reviews the latest changes, whether it is worth the upgrade, and how to go about it.
MIGUEL GRINBERG
一些更新,用Flask-sqlalchemy的话感知不强
Issue #566 NumPy for Speed, Multiprocessing Performance, XML to YAML, and More Feb. 28, 2023¶
Cite
Understanding Python Metaclasses
Metaclasses are part of the darker corners of Python and many developers avoid them. This article dives deep into how you can use them to reduce boilerplate code and build APIs.
IONEL CRISTIAN MĂRIEȘ
大概看了一遍梗概,主要介绍了元类的概念,确实在实际开发中用到的场景太少了
Cite
GPT in 60 Lines of NumPy
Everybody is talking about GPT, this article is actually building one. Learn how to implement a GPT model from scratch in NumPy.
JAY MODY
没仔细看,但是感觉挺有意思的 mark一下
Cite
modelscope: Model-as-a-Service Platform for ML Learning
GITHUB.COM/MODELSCOPE
官网是 https://www.modelscope.cn/home ,各种算法上面又封装了一层,看起来想做的事情还不少,找时间再看看
Issue #567 Inlined Comprehensions PEP, Iterators, Pandas 2.0, and More March 7, 2023¶
Cite
PEP 709: Inlined Comprehensions
Python Enhancement Proposal 709 covers a change to how comprehensions are handled. Currently they are compiled as nested functions. Benchmarking shows that treating list, dict, and set comprehensions as in-line code can result in a 2x speedup on the comprehension.
PYTHON.ORG
看起来是改解释器的,用户感知不强
Issue #568 BeeWare, Asyncio Overhead, Python & Julia, and More March 14, 2023¶
肉眼可见的文章里多了好多关于ChatGPT的文章
Cite
Python 3.12.0 Alpha 6 Released
CPYTHON DEV BLOG
pep 693是py12的发布计划
Cite
pylyzer: A Fast Static Code Analyzer for Python
GITHUB.COM/MTSHIBA
静态代码分析工具,star还太少,todo还太多,等他成熟一点再看
Issue #569 Evaluating Packages, PyTorch 2.0, Lazy Recursion, and More March 21, 2023¶
Cite
How Virtual Environments Work
This article attempts to demystify virtual environments, why they exist and how they work. It even delves into why Brett is heading down this alley: running into challenges with cross platform tools and microenv.
BRETT CANNON
虚拟环境被认为是一次性的
Cite
How to Evaluate the Quality of Python Packages
Just like you shouldn’t download any file from the Internet, you shouldn’t blindly install third-party Python packages without evaluating them first. This tutorial will give you the toolset to evaluate the quality of external Python packages before you implement them into your Python projects.
REAL PYTHON
github最好用
Issue #570 Lessons Learned, Pydantic, ChatGPT Outage, and More March 28, 2023¶
Cite
reduce(): The Power of a Single Python Function
“While Python is not a pure functional programming language, you still can do a lot of functional programming in it. In fact, just one function - reduce() - can do most of it.” This article introduces you to reduce().
MARTIN HEINZ
这个博客风格还挺酷的
Cite
pooch: A Friend to Fetch Your Data Files
GITHUB.COM/FATIANDO
管理文件,有点低配版dvc的意思,如果容量管够速度够快,那还是很好用的
Cite
nicegui: Create Web-Based UI With Python
GITHUB.COM/ZAUBERZEUG
看了一下文档,组件比我想象的还是多了的,各种常用组件都有,而且基于web的渲染也确实好看很多,感觉可以用来做一些小工具,
目测可以高替换掉PySimpleGUI