Python Weekly (Issue 645 April 4 2024)

Python Weekly - Issue 645

Python Weekly

Welcome to issue 645 of Python Weekly. Let's get straight to the links this week.

News

Phylum's automated risk detection platform identified a new typosquatting campaign targeting popular Python libraries on PyPI, with over 500 typosquat variations published so far. PyPI has promptly removed the malicious packages and temporarily suspended new project and account creations to prevent further fallout from this attack.

Articles, Tutorials and Talks

This is the first video of a 2 part series covering all the concepts to train a good performance LLM in 2024.

A look at the internals of list implementation in CPython to understand this weird quirk about them.

The post discusses Cloudflare's implementation of Python Workers, focusing on their benefits and use cases for serverless computing. It explores how Python Workers enable developers to build and deploy lightweight, scalable applications efficiently on Cloudflare's network.

The article discusses the challenges of setting up a productive Python development environment and how using Make can help alleviate these barriers by automating the preparation of the development environment and expediting the test-driven development cycle. The author provides an example project that demonstrates how to use Make to improve the Python developer experience across multiple codebases.

Some code and tips to combine Python and Django introspection APIs to enforce naming conventions in your Django models.

The article discusses Replit's Code Repair feature, which automatically fixes common programming errors and issues in code. It explores how Code Repair helps developers save time and improve code quality by providing automated solutions to common coding problems.

This post guides Python developers on effectively utilizing breakpoints to debug and explore code execution flow. It offers practical tips and examples to leverage breakpoints for better understanding and troubleshooting of Python code.

The article explores ASGI deployment options for Django applications, providing insights into deploying Django with ASGI servers.

Generics in Python 3.12 can transform your code by allowing classes to be used with different data types, enhancing flexibility, and catching bugs early. This video dives into generic classes and subclasses and show you how they can streamline your development process.

A tutorial series on how to automate a Python script in Google Cloud using Cloud Functions and/or Cloud Run. 

The post describes a web application that uses GPT-4 and the tenforty Python library to allow users to input tax scenarios and receive optimized tax calculations and recommendations. The application aims to provide a more flexible and personalized tax advisory experience compared to traditional tax software.

Interesting Projects, Tools and Libraries

SWE-agent turns LMs (e.g. GPT-4) into software engineering agents that can fix bugs and issues in real GitHub repositories.

Code examples and resources for DBRX, a large language model developed by Databricks.

Export any file, folder, website, or repo into GPT-4-Vision with one line of code.

Data processing with ML and LLM.

Playing Sounds in Python.

A PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc, Flex and Max) with very low latency.

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.

New Releases

Upcoming Events and Webinars

There will be following talks

  • Prompt engineering: for version 0.1 code - The path to quicker results

  • Strategies for quicker Pytest runs

There will be following talks

  • Introduction to Time Series Forecasting

  • Time Series EDA with STUMPY

There will be following talks

  • Observability: Principles & Application in Python

  • Seamless Cloud Infrastructure Management with Python

  • The Accountability Factor: How Peer Support Can Transform Your Learning Journey

There will be following talks

  • Event system - an evolution of the software at JobRad

  • Dockerizing Python applications and their security 

There will be following talks

  • Accessing GPUs From Multiple Providers With dstack Sky

  • More Labels or Cases? Assessing Label Variation in Natural Language Inference

  • p(doom) - an Open, Entirely Decentralized, Global AI Research Lab

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.