用 Python 分析 Python 代码
原文: PyCoder's Weekly - Issue #434
- 200819 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 200819 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- 异步视图在 Django 3.1
- TESTDRIVEN.IO
- • Shared by Michael Herman
Django 3.1 introduced support for asynchronous views, middleware, and tests. This tutorial shows you how to get started with async views.
- Python 网络爬取实用指北
- REAL PYTHON
In this tutorial, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup.
(是也乎:
从 美汤
-> '呆汤'
都没说无头浏览器的... )
- Delegation: OOP 中的组合和继承
- LEONARDO GIORDANI
Delegation is often considered one of the three pillars of object-oriented programming. Learn how to use this powerful concept in Python.
- Python 数据API标准联盟官宣
- RALF GOMMERS
Proposed by Quantsight Labs, and with initial sponsors including Intel, Microsoft, and Google Research, the consortium aims to tackle fragmentation across libraries by developing API standards for n-dimensional arrays and dataframes.
(是也乎:
Python 数据接口标准, 果然在 Google 发布前, 大家先抱团了.
)
- 用 Python 分析 Python 代码
- ROTEM TAMIR
Take a dip into static code analysis using abstract syntax trees and Python’s built-in ast modue.
(是也乎:
这非常 PyPy
很少有语言能象 Python 这样内置语法解析器的, AST 的功能远远没有发挥出来呢.
)
-
- CPYTHON DEV BLOG
-
- WINGWARE.COM
Now supports Python 3.9!
(是也乎:
为什么俺见 IDE 就脑仁儿痛?
)
- Python 3.7.9 and 3.6.12 安全更新现已发布
- CPYTHON DEV BLOG
(是也乎:
嗯哼? 也学习 Django 分功能领域来分形升级了?
)
讨论
Discussions
- 对高中生有什么好 Python 项目?
Honestly, some of these ideas are good for any beginning Pythonista!
(是也乎:
太多了, 从身边具体问题开始.
当然, 多数图书都是以游戏为开始,其实, 这并不 COOL.
专门去吐个糟
)
- 在哪里可以接触到编写良好的代码?
Maybe someone needs to start a Python reading club…
(是也乎:
即: 如何形成码感?
Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015
以及: vinta/awesome-python: A curated list of awesome Python frameworks, libraries, software and resources
)
文章,教程和嗯哼
Articles, Tutorials and Talks
- 迷你 Raspberry Pi 机器人/Boston Dynamics启发的
- ASHLEY WHITTAKER
See how one Redditor taught themselves robotics by building a miniature version of a Boston Dynamic’s robot dog “Spot” using a Raspberry Pi, C++, and Python.
(是也乎:
Q 的...
)
- 识别无效 Python 语法
- REAL PYTHON
- course
In this video course, you’ll see common examples of invalid syntax in Python and learn how to resolve the issue. If you’ve ever received a SyntaxError when trying to run your Python code, then this is the guide for you!
(是也乎:
初学时, 最难以忍受的错误...
)
- 用 NetworkX 和 Matplotlib 可视化 Prim 算法
- KYLE KIZIRIAN
- • Shared by Kyle Kizirian
Learn how to implement Prim’s algorithm for finding a minimum spanning tree of a network from scratch and then visualize the algorithm using the NetworkX and Matplotlib libraries.
(是也乎:
总之 Graphviz 永远伟大.
)
- 在 Python 和 Django 中使用 Postgres 行级安全性
- JOSH ALETTO
- • Shared by Manuel Weiss
This article shows how to create and implement a row level security policy with Django middleware and Django signals, giving database administrators a way to limit the rows a user can access, adding an extra layer of data protection.
(是也乎:
行级安全...哗...
)
- Python 社区专访 Bruno Oliveira
- REAL PYTHON
Bruno Oliveira is a core developer for pytest, the Python testing library. In this interview, we cover migrating a large codebase from C++ to Python, how to get started with pytest, and his love of Dark Souls.
(是也乎:
何时能有中国社区访问?
嗯哼, 还有中国Py社区嘛?
)
- 增强您的 Python 构建
- MAN.COM
With Man Group’s PartialTesting tool, you can speed up build-times and reduce compute requirements by running only the tests that matter and ignoring those that don’t!
Learn how to use Nix to create highly reproducible Python builds that are aware of native dependencies.
(是也乎:
叕一个尝试脱离 PyPi 的方案 -> Nixpkgs;
可惜无论从形式上还是兼容性上, 都不是有足够吸引力的样子.
)
好物
Interesting Projects, Tools and Libraries, Projects & Code
- urlify: macOS Python 应用/从剪贴板文本创建有效的文件和URL名称
- GITHUB.COM/MIKECKENNEDY
(是也乎:
Python 实现 mac 驻留应用好案例.
作者使用的版本形式非常同意.
)
-
- GITHUB.COM/PALASHIO
-
public-apis: 在软件和 Web 开发中可用的免费 API 汇总
- GITHUB.COM/PUBLIC-APIS
(是也乎:
放心, 多数对于我们并不存在...
)
-
InvoiceNet: 深度神经网络/ 可从发票 中提取智能信息
- GITHUB.COM/NAIVEHOBO
-
- GITHUB.COM/NACKJICHOLSON
(是也乎:
真正 Py 原生 SQL 解析模块.
)
- partialtesting: 仅运行更改相关的测试
- GITHUB.COM/MAN-GROUP
(是也乎:
哈? 好象代码都是原子化的一样...
)
- poetry2nix: 自动将 Poetry 项目转化为 Nix
- GITHUB.COM/NIX-COMMUNITY
(是也乎:
嗯哼? poetry 有次级市场了? )
- poetry: 令 Python 依赖管理和打包变得容易
- GITHUB.COM/PYTHON-POETRY
(是也乎:
对 pyproject.toml 的深度包装.
和 pipenv 类似, 都是对包依赖的自动化管理, 但是, 也都没涉及到运行时环境的备份/迁移/恢复/...
)
- minGPT: OpenAI GPT 的最小 PyTorch 重新实现
- GITHUB.COM/KARPATHY
(是也乎:
嗯哼? 最小后效能呢? 人家上亿参数, 最小后....
)
- itslit: 在浏览器中 发现附近的闪电谈话
- GITHUB.COM/VINAYAK-MEHTA • Shared by Vinayak Mehta
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
- ⋅ PyCon Japan 2020
- (Online Conference)
- August 28 to August 30, 2020
DAMA
❤️ Happy Pythonic ;-(
大妈私人无责任播报
)
101camp11py 报名最后4天
课程规划:
报名截止 2020.08.23
正式开课 2020.08.30
课程结束 2020.10.11
详情 => 蟒营™ Python 入门班第11
PS:
好文笔,感叹号年度配额: 1/3
投稿/反馈邮箱:
askdama@googlegroups.com
(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)
ZoomQuiet/大妈
就是四处 是也乎,( ̄▽ ̄)
的那个大妈:
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)
as 创始组织者:
PyChina (订阅号: PyChinaOrg)
本地社区:
GDG珠海 (订阅号: GDG-ZhuHai)
TFUG珠海 (订阅号: ZH_TFUG)
NN 4110
Comments