Python Weekly - Python Weekly - Issue 680

View this email in your browser

Python Weekly

Welcome to issue 580 of Python Weekly. Let's get straight to the links this week.
Articles, Tutorials and Talks

Try This if You Don’t Like Python’s Exception Handling 
Struggling with Python's unpredictable errors and None checks? This video shares a unique approach to making your code cleaner and more reliable using the returns package—no complicated try-except nests required.

Supply-chain attack analysis: Ultralytics
A recent attack on the popular Python library Ultralytics highlights the risks of supply-chain attacks in PyPI. The article explores the attack and suggests ways to improve security measures.

Helping Securing the Python with Mike Fiedler 
The episode discusses the security challenges faced by PyPI, including account takeovers and typo-squatting, highlighting the importance of measures like 2FA and collaboration with security researchers. It also explores the debate between maintaining legacy systems and greenfield development, emphasizing the complexities of managing critical infrastructure and the often underestimated role of social engineering in security.

A Deep Dive into Celery Task Resilience, Beyond Basic Retries
How to make your Celery tasks more resilient with best practices to prevent workflow interruptions and handle various failure scenarios.

Lazy self-installing Python scripts with uv
The article introduces UV, a Python tool that streamlines script execution by managing dependencies automatically. It enables self-installing scripts with metadata for dependencies, eliminating the need for manual virtual environment setups or packaging. UV also offers tools to replace pipx and pyenv for Python installations and CLI tools.

Building a Tiny CDN With pyinfra and Chimera Linux
The author set up a DIY content delivery network for his link blog using multiple servers worldwide, reducing average response time from 807ms to 189ms. He utilized pyinfra for automation, Chimera Linux as the host OS, and implemented GeoDNS for traffic routing, demonstrating significant performance improvements without relying on major CDN providers.

Django and Postgres for the Busy Rails Developer
The article compares Django and Ruby on Rails frameworks from a Rails developer's perspective, focusing on database interactions with PostgreSQL. It highlights similarities and differences in language runtime management, library management, migrations, models, and command-line tools, providing insights for developers familiar with Rails who are exploring Django.

Django: launch pdb when a given SQL query runs
This article discusses a technique for debugging Django applications by using database instrumentation to identify and break on specific SQL queries. This allows you to trace the execution flow back to the code that triggered the query, even when it's not immediately obvious.

Writing down (and searching through) every UUID
The post describes a creative project to generate and catalog every possible Version 4 UUID, creating a comprehensive searchable database of unique identifiers. The author developed a method to systematically generate all 2^122 possible UUIDs, enabling full-text search and exploration of these globally unique identifiers.


Interesting Projects, Tools and Libraries

Jules
Jules by Google is an experimental AI-powered code agent that can handle Python and JavaScript bug fixes and other coding tasks. It integrates with GitHub, creates detailed plans, and generates code, saving developers time and boosting productivity.

Vanir
Vanir is a source code-based static analysis tool that automatically identifies the list of missing security patches in the target system. By default, Vanir pulls up-to-date CVEs from Open Source Vulnerabilities (OSV) together with their corresponding signatures so that users can transparently scan missing patches for an up-to-date list of CVEs.

Parlant
A structured approach to building and guiding customer-facing AI agents.

MegaParse
File Parser optimised for LLM Ingestion with no loss. Parse PDFs, Docx, PPTx in a format that is ideal for LLMs.

gitingest
Turn codebases into prompt-friendly text.

Minima
Chat with RAG on local files.

flow_matching
A PyTorch library for implementing flow matching algorithms, featuring continuous and discrete flow matching implementations. It includes practical examples for both text and image modalities. 

htmy 
Async, pure-Python rendering engine.


New Releases

Python in Visual Studio Code – December 2024 Release
This release includes the following announcements:
  • Docstring generation features using Pylance and Copilot
  • Python Environments extension in preview
  • Pylance “full” language server mode

JupyterLab 4.3 and Notebook 7.3 are available!
 
Our Other Newsletters
Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.
 
Copyright © 2024 Python Weekly, All rights reserved.
You are receiving our weekly newsletter because you signed up at http://www.PythonWeekly.com.

Our mailing address is:
Python Weekly
Brooklyn
Brooklyn, NY 11209

Add us to your address book


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Older messages

Python Weekly - Issue 679

Tuesday, December 10, 2024

View this email in your browser Python Weekly Welcome to issue 679 of Python Weekly. Let's get straight to the links this week. News PyCon Austria 2025 CFP The Call for Papers is open. Submit your

Python Weekly - Issue 678

Thursday, November 28, 2024

View this email in your browser Python Weekly Welcome to issue 678 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Let's build a AI Photo Generator

Python Weekly - Issue 678

Thursday, November 28, 2024

View this email in your browser Python Weekly Welcome to issue 678 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Let's build a AI Photo Generator

Python Weekly - Issue 677

Thursday, November 21, 2024

View this email in your browser Python Weekly Welcome to issue 677 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 676

Friday, November 15, 2024

View this email in your browser Python Weekly Welcome to issue 676 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Python dependency management is a

You Might Also Like

🎂 Celebrating One Year of Our App!

Thursday, December 19, 2024

From over 300k active users to millions of views, dive into the numbers that made this year on our data storytelling app unforgettable. View Online | Subscribe | Download Our App CELEBRATING A YEAR OF

Spyglass Dispatch: iOS 18.2 • Google v. OpenAI/Microsoft • New FTC Head • GM Crashes Cruise • Sora Slaps

Thursday, December 19, 2024

iOS 18.2 • Google v. OpenAI/Microsoft • New FTC Head • GM Crashes Cruise • Sora Slaps The Spyglass Dispatch is a newsletter sent on weekdays featuring links and commentary on timely topics found around

Daily Coding Problem: Problem #1634 [Medium]

Thursday, December 19, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. Given a start word, an end word, and a dictionary of valid words, find the

Charted | The Top Performing S&P 500 Stocks in the Last Two Decades 📈

Thursday, December 19, 2024

This infographic ranks the top performing S&P 500 stocks over four different time periods, providing unique historical insight. View Online | Subscribe | Download Our App Presented by: Defiance

⏱️ Stop Buying PCs Expecting Them to Last 10 Years — 6 Gmail Mistakes That Can Get You Fired

Thursday, December 19, 2024

Also: You Might Be Sitting Too Far From Your Computer Monitor How-To Geek Logo December 11, 2024 Did You Know The pattern of stripes on a tiger are as unique as our fingerprints, and every tiger has a

Edge 456: Inside the Toughest Math Benchmark Ever Built

Thursday, December 19, 2024

FrontierMath pushes the boundaries of mathematical reasoning in foundation models. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

New Malware Technique Could Exploit Windows UI Framework to Evade EDR Tools

Thursday, December 19, 2024

THN Daily Updates Newsletter cover Python Data Cleaning and Preparation Best Practices ($35.99 Value) FREE for a Limited Time Professionals face several challenges in effectively leveraging data in

Deck Your iPad in Red and Green *Fa-La-La-La-La, La-La-La-La*

Thursday, December 19, 2024

Gift the internet's favorite iPad case. We know we say it every year but, trust us, if feels really good to get ahead of those holiday gifts. Skip the lines, even online, and shop something for

Post from Syncfusion Blogs on 12/12/2024

Thursday, December 19, 2024

New blogs from Syncfusion Build Micro Frontends with single-spa: A Guide By Thamodi Wickramasinghe Learn how to build and deploy micro frontends using the single-spa framework. This step-by-step guide

Diving Deep into Kotlin Coroutines Source Code

Thursday, December 19, 2024

View in browser 🔖 Articles How Coroutines withContext Actually Works Ever wondered how Kotlin's withContext actually works? This article jumps into the coroutine source code, breaking down how it