FastAPI Middleware, OOP, 3.12 Performance, and More

#600 – OCTOBER 24, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Building Custom Middleware in FastAPI
Middleware in a web stack framework is able to intercept all requests allowing you to write common request processing code across all your views. This article shows you how to write middleware for FastAPI.
PRINCEWILL INYANG

Python Basics Exercises: Object-Oriented Programming
In this Python Basics Exercises course, you’ll review OOP, or object-oriented programming. You’ll practice creating classes, using classes to create new objects, and instantiating classes with attributes.
REAL PYTHON course

Top Considerations For Addressing Risks in the OWASP Top 10 For LLMs
OWASP recently created a top 10 LLM security risks list based on the views of nearly 500 experts, including Snyk. Take a deep dive into the risks, actionable insights, and best practices to consider for protecting against this list of highest risk issues →
SNYK.IOsponsor

Python 3.11 vs Python 3.12: Performance Testing
Włodzimierz ran over 90 benchmarks on both Python 3.11 and 3.12 on two different machines. This post shows the resulting data, and how the choice of processor can impact whether 3.11 or 3.12 is faster.
WŁODZIMIERZ LEWONIEWSKI

Nominations for 2023 Malcolm Tredinnick Memorial Prize
DJANGO SOFTWARE FOUNDATION

Python 3.13.0 Alpha 1 Is Now Available
CPYTHON DEV BLOG


Discussions


Discussion on PEP 730: Adding iOS as a Supported Platform
PYTHON.ORG


Articles & Tutorials


Welcoming PyPI’s Safety & Security Engineer Mike Fiedler
You may remember a recent Python Package Index (PyPI) announcement about hiring a full-time security engineer. We’ve also mentioned several current security initiatives from PyPI. This week on the show, we talk with Mike Fiedler about accepting this new role and securing accounts on PyPI.
REAL PYTHON podcast

Great Resources a Beginner Might Not Find So Easily
Are you having trouble making the modules work together in a larger project? Have you tried looking at popular projects as models, but were put off by their size and scope, or found it hard to see why they did the things they did? Resources about this do exist, but they’re scattered all over …unless you know where to look.
LEMON24 • Shared by death and gravity

We Have to Talk About Flask
The most recent release of Flask and Werkzeug have introduced backwardly incompatible changes that are effecting popular add-ons. Miguel writes about how this is a common occurrence and why it keeps happening.
MIGUEL GRINBERG

Bullets of Vaguely Silvery Hue
Fred Brooks wrote “No Silver Bullet” in the mid-1980’s, explaining why the massive improvements in hardware speed were not reflected as a massive improvement in software productivity. This article is still argued about today, and James deconstructs it, walking you through what is still relevant.
JAMES BENNETT

Innovate Faster With Ready-Made Edge AI Reference Kits
Build AI solutions that run efficiently at the edge. Raise throughput, lower latency, and speed up AI inference with the OpenVINO toolkit and our Edge AI Reference Kits.
INTEL CORPORATIONsponsor

Security Developer-in-Residence 2023 Q3 Report
This report is by the new Security Developer-in-Residence Seth Larson and summarizes all the work he has been involved with in Q3 of 2023. It talks about Python being authorized as a CVE Numbering Authority, the CPython vulnerability database, OpenSSF Day, and more.
PYTHON SOFTWARE FOUNDATION

Random Thoughts 15 Years Into Software Engineering
Ryan shares his thoughts, in no particular order, on the big picture of writing software at a variety of companies over his 15 year career. They range from “Try not to think in absolutes” to “Aggressively manage scope”. Read on for his insights.
RYAN O'NEILL

Replacing a String in Python
In this video course, you’ll learn how to remove or replace a string or substring. You’ll go from the basic string method .replace() all the way up to a multi-layer regex pattern using the sub() function from Python’s re module.
REAL PYTHON course

Deploying a Django + Nginx Application to a VPS With Ansible
This article walks you through the process of deploying a Django-on-Nginx application to Amazon Lightsail. It uses Docker to build and containerise the app and Ansible to automate the deployment.
VUYISILE NDLOVU

Progress on No-GIL CPython
This post sums up the progress and thinking on the no-GIL work in Python. It summarizes some of the PEPs involved as well as active conversations in the discussion groups.
JAKE EDGE

Python Gotcha: Comparisons
Comparing two numerical variables in Python can have surprising results if you aren’t aware of some common gotchas. This post covers a couple of the common ones.
ANDREW WEGNER

Developing an Asynchronous Task Queue in Python
This tutorial looks at how to implement several asynchronous task queues using the Python multiprocessing library and Redis.
MICHAEL HERMAN


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

A Curated List of Free Courses & Certifications
GITHUB.COM/CLOUDCOMMUNITY

vizro: Create Modular Data Visualization Applications
GITHUB.COM/MCKINSEY

selenium-python-helium: Write Less Selenium Code
GITHUB.COM/MHERRMANN

faststream: Build Asynchronous Stream Services
GITHUB.COM/AIRTAI

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 25, 2023

PackagingCon 2023
October 26 to October 29, 2023

SPb Python Drinkup
October 26, 2023

PyCon APAC 2023
October 27 to October 29, 2023

PythOnRio Meetup
October 28, 2023

Py Café 02
October 28, 2023

Python Brasil 2023
October 30 to November 6, 2023
Happy Pythoning!
Copyright © 2023 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

Sorting Unicode, Functools, Payments, and More

Thursday, October 19, 2023

How to Sort Unicode Strings Alphabetically in Python #599 – OCTOBER 17, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo How to Sort Unicode Strings Alphabetically in Python In this tutorial, you

Tuples, CLI Tools, 3.12, and More

Tuesday, October 10, 2023

Python's `tuple` Data Type: A Deep Dive With Examples #598 – OCTOBER 10, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Python's tuple Data Type: A Deep Dive With Examples In Python, a

Special Python 3.12 Release Edition!

Tuesday, October 3, 2023

Python 3.12: Cool New Features for You to Try #597 – OCTOBER 3, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.12: Cool New Features for You to Try In this tutorial, you'll learn about

SOLID OOP, Code Metrics, Speed Up Your Code, and More

Tuesday, September 26, 2023

Design and Guidance: Object-Oriented Programming in Python #596 – SEPTEMBER 26, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Design and Guidance: Object-Oriented Programming in Python In this

Inheritance, CPython Release Process, Folium, and More

Tuesday, September 19, 2023

Inheritance and Internals: Object-Oriented Coding in Python #595 – SEPTEMBER 19, 2023 VIEW IN BROWSER The PyCoder's Weekly Logo Inheritance and Internals: Object-Oriented Coding in Python In this

You Might Also Like

Sunday Digest | Featuring 'The World’s 20 Largest Economies, by GDP (PPP)' 📊

Sunday, December 22, 2024

Every visualization published this week, in one place. Dec 22, 2024 | View Online | Subscribe | VC+ | Download Our App Hello, welcome to your Sunday Digest. This week, we visualized public debt by

Android Weekly #654 🤖

Sunday, December 22, 2024

View in web browser 654 December 22nd, 2024 Articles & Tutorials Sponsored Solving ANRs with OpenTelemetry While OpenTelemetry is the new observability standard, it lacks official support for many

😸 Our interview with Amjad Masad

Sunday, December 22, 2024

Welcome back, builders Product Hunt Sunday, Dec 22 The Roundup This newsletter was brought to you by AssemblyAI Welcome back, builders Happy Sunday! We've got a special edition of the Roundup this

C#537 Automating Santa's Workshop with NServiceBus

Sunday, December 22, 2024

Using event-driven architecture for effective gift delivery 🎄🎁 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

The Race for AI Reasoning is Challenging our Imagination

Sunday, December 22, 2024

New reasoning models from Google and OpenAI ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

ScienceDaily/Minimalist lamp/Avocado tip

Sunday, December 22, 2024

Recomendo - issue #442 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Laravel VS Code Extension, Laravel 11.36, Wirechat, and more! - №544

Sunday, December 22, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Kotlin Weekly #438

Sunday, December 22, 2024

ISSUE #438 22nd of December 2024 Announcements klibs.io JetBrains has introduced the alpha version of klibs.io – a web service that speeds up and simplifies discovering KMP libraries that best meet

Weekend Reading — Happy "That's a January Problem" week

Saturday, December 21, 2024

Can Christmas season start a little earlier this year Tech Stuff Ramsey Nasser fuck it happened i am in a situation where i do actually need to reverse a linked list Atuin I just learned about Atuin

Daily Coding Problem: Problem #1644 [Easy]

Saturday, December 21, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by IBM. Given an integer, find the next permutation of it in absolute order. For example,