Pyinstrument 5 - Flamegraphs for Python, The Ultimate Guide to Error Handling in Python and more
What I Learned from Making the Python Backend for YouTube Transcript Optimizer, Build a Contact Book App With Python, Textual, and SQLite with some more interesting news, articles, packages & projects
News
Pyinstrument 5 - Flamegraphs for Python
Flamegraphs give us clarity during profiling by helping us identify which parts of the code consume the most time. Previously, PyInstrument displayed timelines that resembled a call stack. However, in the latest update, Joe Rickerby introduced Flamegraphs to visualize the timeline more effectively. In his blog, he explained this new feature in detail.
# Joe Rickerby
Python 3.14.0 alpha 1 is now available
This release, 3.14.0a1 is the first of seven planned alpha releases
psutil 6.1.0 released
Articles
What I Learned from Making the Python Backend for YouTube Transcript Optimizer
Jeffrey Emanuel created a web app called the YouTube Transcript Optimizer. In his blog, he shared everything he learned during the process and discussed the tools he used to build it. The post is quite detailed, but it gives a good overview of how you can get transcripts from videos and customize them to meet your needs.
# Jeffrey Emanuel
The Ultimate Guide to Error Handling in Python
The title is very apt. Miguel Grinberg dove deep into the topic of error handling in this article. He covered everything from different error-handling approaches, like LBYL (Look Before You Leap) and EAFP (Easier to Ask Forgiveness than Permission), to the best ways to catch and manage exceptions.
# Miguel Grinberg
In this video, the author walked through several LeetCode problems, explaining the solutions and the problem-solving logic behind each one.
# Stoney Codes
Build a Contact Book App With Python, Textual, and SQLite
Leodanis Pozo Ramos has written another great article. He provided a step-by-step guide on how to create a Text User Interface (TUI) application using the Textual framework and SQLite for database management.
# Leodanis Pozo Ramos
Teaching the world's largest programming lesson
Rodrigo was part of the world’s largest programming lesson, which set a Guinness World Record with 1,668 students. Congratulations, Rodrigo! The main algorithm taught during the event was a brute-force approach to solving a Sudoku puzzle and he covered what he taught there including the Sudoku puzzle program in this article.
# Rodrigo
How to benchmark Python code with pytest-benchmark
It's important to understand how your code performs under different workloads and conditions, and that's where benchmarking comes in. In the Python ecosystem, two popular tools for benchmarking are pytest-benchmark and airspeed velocity (asv). In this article, Everett Pompeii covered how to use the pytest-benchmark package with a simple & easy to understand example.
# Everett Pompeii
Interesting Packages and Projects to explore
PyBoy - Game Boy emulator written in Python
txaio - Utilities to support code that runs unmodified on Twisted and asyncio
RQ - Simple job queues for Python
About Upcoming Python Events
Helsinki Python meetup
Oct 22, 2024
PyLadies Amsterdam: What's inside the box? An introduction to explainability in finance
Oct 22, 2024
October Oslo Python meetup
Oct 24, 2024
PythonHo Conference 2024
Oct 25 – 26, 2024
PyCon APAC 2024
Oct 25 – 27, 2024
PyCon Korea 2024
Oct 26 – 27, 2024