Twisted 21.7.0 发布

原文: PyCoder's Weekly - Issue #484

pycoder

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

In this tutorial, you’ll learn how to use Python to communicate with REST APIs. You’ll learn about REST architecture and how to use the requests library to get data from a REST API. You’ll also explore different Python tools you can use to build REST APIs.

(是也乎:

REST

现代西方, 所有场景中, 不出现黑人就不政治正确, 黄色人种嘛背景中有就好...

)

Python 2 was sunsetted over a year ago, but many folks still find themselves maintaining large Python 2 codebases. The Launchpad team recently finished porting their entire codebase to Python 3, and this article reflects on that process, discusses some of the difficulties they encountered, regressions that occurred, and provides a number of lessons they learned throughout the process. If you are in a position of porting a Python 2 codebase to Python 3, definitely check this out.

(是也乎:

不易哪, 好象 PyPI 至今还在 Py2 上跑着呢?

)

There’s a new PEP in town, and this one deals with improving how installation requirements are specified in Python projects. The PEP is still in Draft status.

(是也乎:

30年后, Python 终于开始为项目部署时考虑了.. )

(是也乎:

ರ_ರ_ 上古神器, 继续更新ing...

)


探讨/吐糟

Discussions

How do you learn a new library? Do you start with the docs? What do you do if the documentation is lacking? Or do you first search for video lessons or written tutorials?

(是也乎:

作人呢就是为了开心, 不开心时, 多读读文档就能更加不开心了...

)


文章/教程/嗯哼

Articles, Tutorials and Talks

In this step-by-step tutorial, you’ll learn about Python’s ChainMap and how to use it to group multiple dictionaries together and manage them as a single one. ChainMap is handy when you need to manage multiple scopes and contexts and define access priorities.

(是也乎:

ChainMap

)

The folks over at Ethical Ads recently broke their ads out of the codebase for Read the Docs, where it had been served from a Django app as part of the Read the Docs code line up until 2019. They decided to use Python and Django for their application since the team already knew that stack well. This article compares the performance of hosting services and explains how they stress-tested their application to ensure the best performance at the right cost.

(是也乎:

在 100KC 时代, Python 从 100C 重新开始?

)

Are you still sprinkling print statements throughout your code while writing it? Print statements are often clunky and offer only a limited view of the state of your code. Have you thought there must be a better way? This week on the Real Python Podcase, Nina Zakharenko discusses her conference talk titled “Goodbye Print, Hello Debugger.”

(是也乎:

叕来推荐 Debugger 了, 不过, print 警车依然好用.

print

)

The folks over at replit have released a new Python web framework with built-in authentication and database support and, more interestingly, hosting. In a few lines of code, you can have a Python web app connected to a database, authenticating users, and hosted on replit. This could be a great tool for quickly building and hosting prototypes or experimental projects.

(是也乎:

看起来就是对自己 Repl DB 的广告模块...

)

Do you enjoy collecting and analyzing data, or are you looking for a fun project to improve your data skills? Do you also enjoy tinkering with hardware? Then this project might be a fun one for you to check out! Learn how to set up a RaspberryPi using Prometheus to collect and monitor temperature sensor data.

(是也乎:

等等, 那个 Prometheus ? 大炮打蚊子?

)

Learn how to add time delays to your Python programs. You’ll use the built-in time module to add Python sleep() calls to your code. To practice, you’ll use time.sleep() when making an uptime bot that checks whether a website is still live.

(是也乎:

sleep

)

This short yet informative tutorial explains how to Dockerize a Django application. The tutorial clocks in at less than a 10 minute read, but still finds time to explain why you should consider using Docker in your Django projects.

(是也乎:

继续努力到 5秒, 才有吸引力...

)


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

NoSQL 之后, NEWSQL 基本都是要: 支持 SQL 以及最好时序优先...

毕竟应对越来越复杂的数据之海, 只有时序是唯一不变的了...

等等,时间 也是相对的哪, 人类从现在开始就自学建筑地球时间轴霸权了?

)

(是也乎:

cargo install python-launcher

嗯哼? Rust 软件仓库可以拿来干这种事儿?

可怜的 path 寻找..

这个终端效果很丰富了...

zsh

)

(是也乎:

以往嘦load 到 Python 就足够时尚, 后来最好同时 load 到 golang, 现在必须同时 load 到 rust 才 COOL;

)


📆🐍 活动/大会

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


DAMA

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

(是也乎:

独创 logging + debug 模块

)

(是也乎:

老司机开新坑, 时隔10年, 沈游侠再次开声, 值得关注:

Bilibili

)

(是也乎:

私人初体验, 现在 http/https 资源混用浏览器越来越傲娇了, 最好有工具可以统一迁移...

)


PS:


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->