Issue #592 (Aug. 29, 2023)

#592 – AUGUST 29, 2023

Asyncio, Twisted, Tornado, Gevent Walk Into a Bar…

A good introduction to I/O bound concurrency in Python and the libraries used to achieve it. Has a nice compare and contrast between the approaches and finishes with some good advice: you probably don’t need any of them.

What Are Python Asterisk and Slash Special Parameters For?

In this tutorial, you’ll learn how to use the Python asterisk and slash special parameters in function definitions. With these symbols, you can define whether your functions will accept positional or keyword arguments.

Companies like Gitlab, Snowflake and Slack Scan Their Code for Vulnerabilities Using Semgrep

Scan your code and dependencies for free with Semgrep – the trusted OSS tool used by top companies like Gitlab, Snowflake, and Slack. No security expertise needed, simply add your project and let Semgrep do the work in just minutes →
SEMGREP sponsor

Deep Dive Into Flask Guide

Become a better web developer by taking a deep dive into Flask’s internals to learn about its core features and functionality.
TESTDRIVEN.IO • Shared by Patrick Kennedy

Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18 Released


Call for Papers: XtremePython 2023 Online December 5, 2023


Articles & Tutorials

Improving Classification Models With XGBoost

How can you improve a classification model while avoiding overfitting? Once you have a model, what tools can you use to explain it to others? This week on the show, we talk with author and Python trainer Matt Harrison about his new book Effective XGBoost: Tuning, Understanding, and Deploying Classification Models.

Build a Code Image Generator With Python

In this step-by-step tutorial, you’ll build a code image generator that creates nice-looking images of your code snippets to share on social media. Your code image generator will be powered by the Flask web framework and include exciting packages like Pygments and Playwright.

Build Invincible Apps With Temporal’s Python SDK

Get an introduction to Temporal’s Python SDK by walking through our easy, free tutorials. Learn how to build Temporal applications using Python, including building a data pipeline Workflow and a subscription Workflow. Get started her →
TEMPORAL sponsor

Usages of Underscore

This article teaches you about all of the use cases that the underscore (_) has in Python, from the use cases that have syntactic impact, to well-accepted conventions that make your code semantically clearer, to usages that improve the readability of your code.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão @ mathspp

7 Sneaky Tricks to Crush Slow Database Queries

“Optimizing Django query performance is critical for building performant web applications.” This blog post explores a collection of additional and essential tips that help pinpoint and resolve your inefficient Django queries.

Table Recognition and Extraction With PyMuPDF

This blog post walks you through programmatically identifying tables on PDF pages and extracting their content using PyMuPDF. Table identification and extraction was recently added in PyMuPDF version 1.23.0.
HARALD LIEDER • Shared by Harald Lieder

Operator Overloading in Python

Python is an object-oriented programming language and one of its features is that it supports operator overloading, learn how to overload common operators such as addition, subtraction, comparison, and more.
ALEJANDRO SÁNCHEZ YALÍ • Shared by Alejandro

Click and Python: Build Extensible and Composable CLI Apps

In this tutorial, you’ll learn how to use the Click library to build robust, extensible, and user-friendly command-line interfaces (CLI) for your Python automation and tooling scripts.

Learn How to Deploy Scientific AI Models to Edge Environments, Using OpenVINO Model Server

🤔 Can cell therapy and AI be used together? Learn how to efficiently build and deploy scientific AI models using open-source technologies with Beckman Coulter Life Sciences at our upcoming DevCon OpenVINO webinar. #DevCon2023

Understanding Automatic Differentiation in 30 Lines of Python

Automatic differentiation is at the heart of neural network training. This article introduces you to the concept by showing you some Python that implements the algorithm.

Make Each Line Count, Keeping Things Simple in Python

Simplicity is hard. This article talks briefly about how you approach coding while keeping things simple.

Projects & Code

tragic-methods: Collection of Programming Quirks


hamilton: Micro-Framework for Defining Dataflows


CodeGeeX: OSS Multilingual Code Generation Model


aquarel: Styling Matplotlib Made Easy


microdot: Impossibly Small Web Framework for MicroPython



Weekly Real Python Office Hours Q&A (Virtual)

August 30, 2023

SPb Python Drinkup

August 31, 2023

PyConTW 2023

September 2 to September 4, 2023

Melbourne Python Users Group, Australia

September 4, 2023

Cloud Builder: Python Conf

September 6 to September 7, 2023

PyCon Estonia 2023

September 7 to September 9, 2023

PyCon Portugal 2023

September 7 to September 10, 2023

Happy Pythoning!
This was PyCoder’s Weekly Issue #592.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s