#625 – APRIL 16, 2024
Pydantic: Simplifying Data Validation in Python
Discover the power of Pydantic, Python’s most popular data parsing, validation, and serialization library. In this hands-on tutorial, you’ll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.
REAL PYTHON
Best Python Security Practices for Web Developers
Coding on the web means you have to be more security conscious as everyone has access to your software. This article discusses key steps you can take to help make your code more secure.
ARJAN
Python Error and Performance Monitoring That Doesn’t Suck
With Sentry, you can trace issues from the frontend to the backend—detecting slow and broken code, to fix what’s broken faster. Installing the Python SDK is super easy and PyCoder’s Weekly subscribers get three full months of the team plan. Just use code “pycoder” on signup →
SENTRY sponsor
The State of Python in 2024
Michael of TalkPython fame gave this keynote at PyCon Philippines. He addresses topics such as Python trends in code, asyncio, Flask and Django, getting rid of the GIL and more.
MICHAEL KENNEDY video
EuroPython Tickets on Sale: Prague/Remote July 8-14
EUROPYTHON
Python 3.11.9 Released
CPYTHON DEV BLOG
Python 3.12.3 and 3.13.0a6 Released
CPYTHON DEV BLOG
Discussions
PEP 744: JIT Compilation
PEP
Articles & Tutorials
Optimizing Django’s System Check Framework
“Django’s system check framework provides fantastic protection for configuration mishaps. It’s like a targeted linter that runs when you start Django commands.” It also can be a bit slow for large projects. As part of the Django 5.1 release many optimizations have been applied. This blog posts discusses the work involved.
ADAM JOHNSON
A Lazy and Flippant Classification of Programming Languages
“When talking flippantly about programming languages, it’s sometimes useful to glob a bunch of them together based on characteristics, whether superficial or not. This started with jokes about common features of ‘P languages’ like Perl, PHP, Python, JavaScript and Ruby, but you can classify other languages too.”
BRYCE KERLEY
Generating QR Codes With Python
In this video course, you’ll learn how to use Python to generate QR codes, from your standard black-and-white QR codes to beautiful ones with your favorite colors. You’ll learn how to format QR codes, rotate them, and even replace the static background with moving images.
REAL PYTHON course
So Your Teacher Wants You to Do Open Source
Sometimes teachers or mentors ask students to contribute to an open source project, without the context of what that entails. This opinion piece covers just how much noise that causes for the projects and why you shouldn’t do it unless you truly mean to contribute.
DAVID LORD
Adventures in Import-Land
Ashlynn ran into a problem where her code was initializing a connection to the Google Cloud API before the credentials for it had been imported. This blog post covers the problem and how she got around it.
ASHLYNN ANTROBUS
503 Days Working Full-Time on FOSS: Lessons Learned
For a year and a half, Rodrigo worked at Textualize the company behind the popular open source Python projects Rich and Textual. This blog post talks about what he learned while he was there.
RODRIGO GIRÃO SERRÃO
Python F-String Codes I Use Every Day
Like many of us, Pawel uses f-strings a lot. Even with frequent use, it can be hard to remember how the formatting syntax works. This post covers some of the more common formats around.
PAWEL JASTRZEBSKI
Clean Code in Python
What’s it mean to write clean code? What is clean Python code, specifically? This article talks about how to write code that is easier to read and the tools you can use to get there.
NIK TOMAZIC
Predicting Solar Eclipses With Python
Were you in the path of the eclipse last week? Would you like to figure out if you’ll be in the next one? This article shows you how using the Astropy library.
ERIK BERNHARDSSON
Video Subtitling With Whisper, FFmpeg, and Python
This guide walks you through transcribing video using the OpenAI Whisper model and seamlessly adding subtitles with FFmpeg tool.
EDITFRAME
Projects & Code
lenssort: Create Glitched, Snapchat-Like Effects
GITHUB.COM/BERNARDZHAO
OpenDevin: Open Source AI Coding Collaborator
GITHUB.COM/OPENDEVIN
django-pony-express: Class-Based Emails for Django
GITHUB.COM/AMBIENT-INNOVATION
nava: Play Sounds in Python
GITHUB.COM/OPENSCILAB
makefile-parser-python: A Simple Makefile Parser
GITHUB.COM/THANATISIA
Events
Weekly Real Python Office Hours Q&A (Virtual)
April 17, 2024
REALPYTHON.COM
PyData Bristol Meetup
April 18, 2024
MEETUP.COM
PyLadies Dublin
April 18, 2024
PYLADIES.COM
PyTexas 2024
April 19 to April 22, 2024
PYTEXAS.ORG
Django Girls Ekpoma Workshop
April 19 to April 21, 2024
DJANGOGIRLS.ORG
Chattanooga Python User Group
April 19 to April 20, 2024
MEETUP.COM
PyCon DE & PyData Berlin 2024
April 22 to April 25, 2024
PYCON.DE
Happy Pythoning!
This was PyCoder’s Weekly Issue #625.
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