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

Daily Coding Problem: Problem #1707 [Medium]

Monday, March 3, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Facebook. In chess, the Elo rating system is used to calculate player strengths based on

Simplification Takes Courage & Perplexity introduces Comet

Monday, March 3, 2025

Elicit raises $22M Series A, Perplexity is working on an AI-powered browser, developing taste, and more in this week's issue of Creativerly. Creativerly Simplification Takes Courage &

Mapped | Which Countries Are Perceived as the Most Corrupt? 🌎

Monday, March 3, 2025

In this map, we visualize the Corruption Perceptions Index Score for countries around the world. View Online | Subscribe | Download Our App Presented by: Stay current on the latest money news that

The new tablet to beat

Monday, March 3, 2025

5 top MWC products; iPhone 16e hands-on📱; Solar-powered laptop -- ZDNET ZDNET Tech Today - US March 3, 2025 TCL Nxtpaper 11 tablet at CES The tablet that replaced my Kindle and iPad is finally getting

Import AI 402: Why NVIDIA beats AMD: vending machines vs superintelligence; harder BIG-Bench

Monday, March 3, 2025

What will machines name their first discoveries? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

GCP Newsletter #440

Monday, March 3, 2025

Welcome to issue #440 March 3rd, 2025 News LLM Official Blog Vertex AI Evaluate gen AI models with Vertex AI evaluation service and LLM comparator - Vertex AI evaluation service and LLM Comparator are

Apple Should Swap Out Siri with ChatGPT

Monday, March 3, 2025

Not forever, but for now. Until a new, better Siri is actually ready to roll — which may be *years* away... Apple Should Swap Out Siri with ChatGPT Not forever, but for now. Until a new, better Siri is

⚡ THN Weekly Recap: Alerts on Zero-Day Exploits, AI Breaches, and Crypto Heists

Monday, March 3, 2025

Get exclusive insights on cyber attacks—including expert analysis on zero-day exploits, AI breaches, and crypto hacks—in our free newsletter. ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌ ͏ ‌

⚙️ AI price war

Monday, March 3, 2025

Plus: The reality of LLM 'research' ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 03/03/2025

Monday, March 3, 2025

New blogs from Syncfusion ® AI-Driven Natural Language Filtering in WPF DataGrid for Smarter Data Processing By Susmitha Sundar This blog explains how to add AI-driven natural language filtering in the