乐趣区

蠎周刊422-超现代-Python-开发环境配置

超现代 Python 开发环境配置

原文: PyCoder’s Weekly – Issue #422

  • 200527 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 200527 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

  • 在异步中等待

    • HYNEK SCHLAWACK

There are many ways to wait on the results of a coroutine in Python’s asyncio framework. They all have different properties and use cases. In this article, they’ve all been collected in one place to help you figure out which one you need.

  • 异步 Python 中的延迟

    • CHRTIS WELLONS

Where does latency in asynchronous programs come from? Explore some common mistakes in asyncio programming, the differences between bounded and unbounded queues, and a suggestion for some best practices for programming with asyncio.

  • 在 Python 中创建和修改 PDF 文件

    • REAL PYTHON

Explore the different ways of creating and modifying PDF files in Python. You’ll learn how to read and extract text, merge and concatenate files, crop and rotate pages, encrypt and decrypt files, and even create PDFs from scratch.

( 是也乎:

)

  • 防止 SQL 注入: Django 作者的观点

    • JACOB KAPLAN-MOSS

How do you prevent a SQL injection? Learn about best practices and tools for checking for vulnerabilities in a codebase in this post from Django creator Jacob Kaplan-Moss.

  • Python Job Hunting in a Pandemic

    • REAL PYTHON
    • podcast

Do you know someone in the Python community who recently was let go from their job due to the pandemic? What does the job landscape currently look like? What are skills and techniques that will help you in your job search? This week Kyle Stratis discusses how he is managing his job search after just being let go from his data engineering job.

( 是也乎:

其实找工作最佳姿势还是逼工作来找你吧 …

)

  • 超现代 Python

    • CLAUDIO JOLOWICZ

Opinionated guide to setting up a productive Python environment, including recommendations for testing, linting, documentation, and continuous integration.

( 是也乎:
居然上了一系列原创飞行艇漫画 …

可以说是系列文章入口:2020 年写 Python 是什么感觉 ;

对应 16 年那篇 写 JS 什么感觉 ,

早已不是拿起来 notepad 就能写的时代了, 各个环节, 都有最佳套件等着你折腾 …

当然, 到底上不上, 得看自己或是团队的问题领域 …

)

讨论

Discussions

  • 在 Pandas 中将月份从数字变为名称

    • STACK OVERFLOW

In a DataFrame indexed by month and day, how do you change the month index from numbers, like 1, to a name, like Jan?

  • 为毛 -11 % 5 等于 4 ?

    • REDDIT

How well do you know the modulo operator?

( 是也乎:

又是这种糟心的边界问题 …

)

文章, 教程和嗯哼

Articles, Tutorials and Talks

  • 用以网络 I/O 的 Python 并发

    • ABHISHEK NAGEKAR

What’s the best way to request 20,000 URLs in Python? Compare the performance of synchronous requests, multiprocessing, threading, and asyncio to find out which method is the fastest and why.

( 是也乎:

大厂面试核心问题.

)

  • Keyword-Only 参数在 Python

    • LUKE PLANT

Keyword-only arguments have been around for a while in Python, but you don’t see them used very frequently. Learn why keyword-only arguments are useful, and why you might want to start using them in your own code.

  • Python 程序猿爱的 Cloud

    • DIGITALOCEAN
    • sponsor

DigitalOcean is the cloud provider that makes it easy for developers to deploy and scale their applications. From Flask and Django apps to JupyterHub Notebook servers, DigitalOcean enables Python developers to focus their energy on creating software →

( 是也乎:

用爱驱动的平台 …

)

  • Python 社区访谈: Russell Keith-Magee

    • REAL PYTHON

Russell Keith-Magee is a Django core developer and the founder and maintainer of the BeeWare project. In the interview, he talks about his mission to help Python become a feasible option for writing and packaging mobile applications, his PyCon 2020 talk, and more.

( 是也乎:

)

  • 在 VS Code 中调试容器化的 Django 应用

    • J-O ERIKSSON
    • • Shared by J-O Eriksson

Learn how to create a VS Code run configuration to attach to a Docker container and modify manage.py to start a ptvsd (Python Tools for Visual Studio Debug Server) debug server so that you can debug a containerized Django Project in VS Code.

( 是也乎:

VSCode 只用一个开放插件体系就抢走了所有风光 …

)

  • Pip 新手入门指南

    • REAL PYTHON
    • video

What is pip? In this beginner-friendly course, you’ll learn how to use pip, the standard package manager for Python, so that you can install and manage additional packages that are not part of the Python standard library.

( 是也乎:

深刻怀念当初想用 pip , 得先手工安装两个前后依赖的包管理工具的时代 …

)

  • Fil: 面向数据科学家和科学家的新型 Python 内存探查器

    • ITAMAR TURNER-TRAURING

Fil is a Python memory profiler specifically designed for batch processing applications that read in data, process it, and write out the result.

( 是也乎:

那什么, 一见 Fil 这名字, 想起来的只能是 摩登家庭 里那位没谱老爹吧 …

)

  • 用 Python 和 Redis 进行 API 请求缓存

    • REDOWAN DELOWAR
    • • Shared by Redowan Delowar

( 是也乎:

其实 Mneisa 早 20 年就内建了.

)

好物

Interesting Projects, Tools and Libraries, Projects & Code

  • einsteinpy: 用于广义相对论的社区 Python 软件包

    • GITHUB.COM/EINSTEINPY
  • filprofiler: Memory Profiler 用于 Python 编写的数据批处理应用程序

    • GITLAB.COM/PYTHONSPEED
  • pdm: 含 PEP582 支持的现代 Python 软件包管理器

    • GITHUB.COM/FROSTMING
    • • Shared by Frost Ming

( 是也乎:

作为大陆用户就关心:
有内网镜像嘛?
兼容 Pyenv 嘛?

)

  • cascadia-code: 有趣的新等距字体 / 包括编程连接符

    • GITHUB.COM/MICROSOFT

( 是也乎:

注意, 首先兼容 Windows Terminal 的编程字体 …
这是 M$ 这么多年来首次关注终端体验哪 …

)

  • django-grpc-gramework: 适用于 Django 的 gRPC

    • GITHUB.COM/FENGSP
    • • Shared by Shipeng Feng

( 是也乎:

真的是 30 年河东 30 年河西;

动态网站刚刚开始时, 都是 CGI 吐所有,
网站也都是 S/C 结构的, 远程调用简直天经地义 …

经过 30 年折腾, 又回去了 …

PS: 连汇编也重新进入浏览器了 …

)

?? 活动 / 大会

Events, MeetUp 真的是全球线下活动组织中心

NIL

( 是也乎:

记忆中, 首次出现活动消息空窗 …

不过, 中国已经接到有关通知, 允许线下集会申报了 …

)

DAMA

❤️ Happy Pythonic ;-( 大妈私人无责任播报 )

101camp9py 即将报名 (能开发票 ;-)


课程规划:
    开始报名 2020.5.31
    报名截止 2020.6.21
    正式开课 2020.6.28
    课程结束 2020.8.09

详情 => 蟒营™ Python 入门班第 9 期

PS:

  • 首发: Issue 422 ~ 蠎周刊 ~ 汇集全球蠎事儿 ;-)
  • 修订: issue-422.md

NN 4026

好文笔, 感叹号年度配额: 1/3

投稿 / 反馈邮箱:

askdama@googlegroups.com

(邮件列表地址,
当成正常邮件发送邮件就好, 不用注册, 不用翻越 …)


ZoomQuiet/ 大妈

就是四处 是也乎,(~▽~) 的那个大妈:


私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG 珠海 (订阅号: GDG-ZhuHai)
        TFUG 珠海 (订阅号: ZH_TFUG)

蟒营™Python 入门班 第 9 期 报名:

  • 6.1~6.7 第一周报名, 统惠 500 元
  • 报名截止 2020.6.21
  • 正式开课 2020.6.28
  • 课程结束 2020.8.09

(明确: 能开发票 )

蟒营™原创课程服务:

 伴你重享学习乐趣 

蟒营™:Py 入门班

  • 自怼圈
  • 蟒周刊

Powered by: Zoom.Quiet / 昧因科技®

本文由博客一文多发平台 OpenWrite 发布;

退出移动版