Testing with nox, Async Iterators, Log Propagation, and More

#642 – AUGUST 13, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Testing Coverage and Using nox
This is part 9 in an in-depth series on testing. This part talks about using coverage tools to check how much of your code gets executed during tests, and how to use the nox tool to test against a matrix of Python and dependency versions.
BITE CODE!

Asynchronous Iterators and Iterables in Python
In this tutorial, you’ll learn how to create and use asynchronous iterators and iterables in Python. You’ll explore their syntax and structure and discover how they can be leveraged to handle asynchronous operations more efficiently.
REAL PYTHON

500 Devs, Deploying 200x a Day, While Maintaining 4 Million Lines of Code 😮‍💨
Sounds tricky right? Well that’s exactly what Kraken Technologies is doing. Learn how they manage 100s of deployments a day and how they handle errors when they crop up. Sneak peak: they use Sentry to reduce noise, prioritize issues, and maintain code quality–without relying on a dedicated QA team →
SENTRYsponsor

Log Context Propagation in Python ASGI Apps
This explains how to automatically attach contextual information to all the log messages coming out of a Python ASGI application.
REDOWAN DELOWAR • Shared by Redowan Delowar

PEP 750: Tag Strings for Domain-Specific Languages (Added)
PEP

Python 3.12.5 Released
CPYTHON DEV BLOG

Django Security Releases: 5.0.8 and 4.2.15
DJANGO SOFTWARE FOUNDATION

Django 5.1 Released
DJANGO SOFTWARE FOUNDATION

Quiz: Python Basics: Lists and Tuples
REAL PYTHON

Quiz: How to Write Beautiful Python Code With PEP 8
REAL PYTHON


Articles & Tutorials


Fixing CTRL+left and CTRL+right in the REPL on macOS
The upcoming release of Python 3.13 has some great new features in the REPL making it easier to move around and edit your code. One feature is the ability to move word by word using CTRL+left and right arrow keys. Unfortunately, macOS traps these keys. This quick TIL post shows you how to fix that.
RODRIGO GIRÃO SERRÃO

Strings and Character Data in Python
In this tutorial, you’ll learn how to use Python’s rich set of operators and functions for working with strings. You’ll cover the basics of creating strings using literals and the str() function, applying string methods, using operators and built-in functions with strings, and more!
REAL PYTHON

Learning Through Building the Black Python Devs Community
What hurdles must be cleared when starting an international organization? How do you empower others in a community by sharing responsibilities? This week on the show, we speak with Jay Miller about Black Python Devs.
REAL PYTHON podcast

Taking Notes on a New Codebase
Nat is a consultant which means they spend a lot of time reading other people’s code. When trying to understand large systems taking notes along the way can help. This post talks about the techniques Nat uses.
NAT BENNETT

Create Amazing Progress Bars in Python With alive-progress
Have you ever needed a progress bar in your Python command-line application? One great way of creating a progress bar is to use the alive-progress package. This article shows you how.
MIKE DRISCOLL

PyCon US 2024 Recap and Recording Release
PyCon US 2024 had a record breaking attendance with over 2,700 in-person tickets sold. This article is a recap from the conference runners and links to all the available recordings.
PYCON

Knuckledragger, a Semi-Automated Python Proof Assistant
This post describes Knuckledragger, a Z3 based semi-automated proof assistant. The post covers the basic design, applications, and a variety of theory types it can work with.
PHILIP ZUCKER

Python Extensions Should Be Lazy
Evan has been using the ast.parse function a lot and has found it to be slow even though it is built as a C extension. This article digs into what is going on.
EVAN DOYLE

SonarQube: Open Source Security Automation
SonarQube is a freely available static code analysis tool. This article shows you what it can do and how to get it going on your system.
PRINCE ONYEANUNA

The Trouble With __all__
This post talks about the __all__ attribute and how it declares the public interface to a module, but does not enforce access.
CAELEAN BARNES

Parsing nginx Server Logs With Regular Expressions
This practical article on regular expressions shows you how to build regexes to parse the logs from the nginx web server.
JUHA-MATTI SANTALA

Python’s Operator Precedence
Stephen uses a story-telling style to explain how operator precedence works in Python.
STEPHEN GRUPPETTA • Shared by Stephen Gruppetta


Projects & Code


RustPython: A Python Interpreter Written in Rust
GITHUB.COM/RUSTPYTHON

fasthtml: The Fastest Way to Create an HTML App
GITHUB.COM/ANSWERDOTAI

wat: Deep Inspection of Python Objects
GITHUB.COM/IGREK51

zulip-terminal: Official Zulip Chat Terminal Client
GITHUB.COM/ZULIP

emptylog: Expand the Logger Protocol and Test Logs
GITHUB.COM/POMPONCHIK • Shared by Evgeniy Blinov (pomponchik)

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 14, 2024

PyData Bristol Meetup
August 15, 2024

PyLadies Dublin
August 15, 2024

SheDevelopers: Python Mastery Workshop 1st Edition
August 16 to August 17, 2024

PyCon Somalia 2024
August 21 to August 23, 2024

Kiwi PyCon XIII
August 23 to August 26, 2024
Happy Pythoning!
Copyright © 2024 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Setuptools Deprecation, Installable Django Apps, Flask, and More

Tuesday, August 6, 2024

Setuptools Breaks Things, Then Fixes Them #641 – AUGUST 6, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Setuptools Breaks Things, Then Fixes Them This post is Bite Code's monthly summary, but

Great Tables, itertools, Asyncio In A Thread, and More

Tuesday, July 30, 2024

Build Captivating Display Tables in Python With Great Tables #640 – JULY 30, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Build Captivating Display Tables in Python With Great Tables Do you need

Asyncio Exceptions, Protocols, Free-Threaded CPython, and More

Tuesday, July 23, 2024

Asyncio `gather()` Handle Exceptions #639 – JULY 23, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Asyncio gather() Handle Exceptions The asyncio.gather() function takes an optional argument

VS Code Settings, Leaked Creds, Free-Threaded CPython, and More

Tuesday, July 16, 2024

Customize VS Code Settings #638 – JULY 16, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Customize VS Code Settings In this course, Philipp helps you customize your Visual Studio Code settings to

Apple App Store, Built-Ins, Constraint Programming, and More

Tuesday, July 9, 2024

Python Grapples With Apple App Store Rejections #637 – JULY 9, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Python Grapples With Apple App Store Rejections A string that is part of the urllib

You Might Also Like

🚀 Visual Capitalist Just Got Better: No Ads. Just Data, Uninterrupted.

Tuesday, September 17, 2024

Discover the Visual Capitalist Ad-Free experience today. View email in browser * NEW * Go Ad-Free on Visual Capitalist We know most people could do without seeing advertisements in their lives. The

📱 How to Use Game Mode on Your iPhone — Things to Know Before Switching to GrapheneOS

Tuesday, September 17, 2024

Also: The Best Surge Protectors for 2024, and More! How-To Geek Logo September 17, 2024 Did You Know If you eat a diet rich in vegetables, then you're eating a wide variety of plant parts. For

JSK Daily for Sep 17, 2024

Tuesday, September 17, 2024

JSK Daily for Sep 17, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Top 8 React Libraries for Building Beautiful and Functional UIs This article will look at

NumPy where(), Python & R, HTTP Clients, and More

Tuesday, September 17, 2024

How to Use Conditional Expressions With NumPy `where()` #647 – SEPTEMBER 17, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo How to Use Conditional Expressions With NumPy where() This tutorial

Grift & Greed

Tuesday, September 17, 2024

FX Wins, TikTok Loses, Slack AI, Copilot Pages, JPMorgan's Apple Card... Grift & Greed FX Wins, TikTok Loses, Slack AI, Copilot Pages, JPMorgan's Apple Card... By MG Siegler • 17 Sept 2024

Daily Coding Problem: Problem #1559 [Hard]

Tuesday, September 17, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by LinkedIn. You are given a binary tree in a peculiar string representation. Each node is

Locking A Loophole 🔒

Tuesday, September 17, 2024

Temu's favorite shipping loophole may soon disappear. Here's a version for your browser. Hunting for the end of the long tail • September 17, 2024 A couple of years ago, I found myself waiting

Mapped | The Purchasing Power of $100 in Each U.S. State 💰

Tuesday, September 17, 2024

How far does $100 go? It turns out it varies by US state, with $100 stretching up to 26% further in certain places in the country. View Online | Subscribe | Download Our App Presented by: Lloyd's

Go's great for working with LLMs

Tuesday, September 17, 2024

Plus running Go in the browser, using Go for scripting, and Go's ranking against other languages. | #​523 — September 17, 2024 Unsub | Web Version Together with WorkOS Go Weekly Building LLM-

Will Artificial Intelligence Take Over Humans?

Tuesday, September 17, 2024

Top Tech Content sent at Noon! A dev conference with discussions, workshops, and 1:1 feedback sessions Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today