- Python Weekly
- Posts
- Python Weekly (Issue 680 December 12 2024)
Python Weekly (Issue 680 December 12 2024)
Python Weekly - Issue 680
Python Weekly
Welcome to issue 580 of Python Weekly. Let's get straight to the links this week.
Articles, Tutorials and Talks
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.
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.
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.
How to make your Celery tasks more resilient with best practices to prevent workflow interruptions and handle various failure scenarios.
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.
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.
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.
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.
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 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 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.
A structured approach to building and guiding customer-facing AI agents.
File Parser optimised for LLM Ingestion with no loss. Parse PDFs, Docx, PPTx in a format that is ideal for LLMs.
Turn codebases into prompt-friendly text.
Chat with RAG on local files.
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.
Async, pure-Python rendering engine.
New Releases
This release includes the following announcements:
Docstring generation features using Pylance and Copilot
Python Environments extension in preview
Pylance “full” language server mode
Our Other Newsletters
- A free weekly newsletter for programmers.
- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.