Python Weekly (Issue 652 May 30 2024)

Python Weekly - Issue 652

Python Weekly

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

From Our Sponsor 

A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers.

News

Django web applications require background task handling for activities like sending emails and interacting with external services. Although Django lacks a built-in solution for long-running tasks, the ecosystem offers various frameworks that integrate differently with Django. Unlike Laravel, which includes background workers, Django library maintainers must separately implement support for background task backends. This proposal aims to establish a standard interface and base implementation for managing long-running tasks in Django.

Articles, Tutorials and Talks

This Python tutorial will dive into Streamlit, a tool that simplifies the creation of web applications for data science projects. Additionally, it will discuss the differences between Streamlit and other libraries like Dash and Taipy.

Another Python gotcha and an investigation into its internals to understand why this happens.

The post explains the inner workings of Frappe's scheduler, which allows scheduling recurring jobs and custom code. It delves into the complexities involved, such as handling scheduling delays efficiently without busy looping, and emphasizes the importance of understanding fundamental operating system concepts.

The post argues that while large language models (LLMs) are receiving a lot of hype, the engineering systems built around them are similar to previous machine learning systems. It advises practitioners to cut through the hype and treat LLMs as regular engineering and ML problems.

The post details the performance improvements made to string operations in NumPy 2.0 by reworking how they are handled, moving from creating Python objects to operating directly on the raw C data buffers. It provides guidance on writing efficient ufuncs that work with the data buffers and handle data type resolution.

A management command for quickly generating tests based off Django's URL routing mechanism.

This article summarizes the findings when asking GPT-4o to generate Flask applications, ranging from a simple "Hello, World!" app to a full-fledged CRUD app with three database models and HTML pages with Tailwind. With careful prompting, GPT-4o can produce working Flask applications and follow (some) best coding practices. 

We run benchmarks derived from the TPC-H benchmark suite on a variety of scales, hardware architectures, and dataframe projects, notably Apache Spark, Dask, DuckDB, and Polars. No project wins. This post analyzes results within each project and between projects.

Methodology and sample code for using pyastgrep to do custom linting tasks on Python source code.

This project facilitates communication between Deaf individuals and hearing individuals who do not understand American Sign Language (ASL). It is designed to respect and preserve ASL as the primary language.

A low-code data pipeline interface to compare various models.

Interesting Projects, Tools and Libraries

A self-organizing file system with llama 3.

A snappy, keyboard-centric terminal user interface for interacting with large language models. Chat with ChatGPT, Claude, Llama 3, Phi 3, Mistral, Gemma and more.

Gloe is a general-purpose library made to help developers create, maintain, document, and test both operational and flow-oriented code.

mistral-finetune is a light-weight codebase that enables memory-efficient and performant finetuning of Mistral's models. 

Towards General World Model with Natural Language Actions and Video States.

Predictive model evaluation with a focus on healthcare.

Visual effects applied to text in the terminal.

Build microservices as tenants on a Django monolith. Avoid the infra & operational overheads. Scale effortlessly.

Python framework for building efficient data pipelines. It promotes modularity and collaboration, enabling the creation of complex pipelines from simple, reusable components.

Upcoming Events and Webinars

There will be following talks

  • PyScript: Python on the browser and beyond

  • 10 hidden traps of Python

There will be following talks

  • What shall we watch? Recommender systems at Channel 4

  • Please AI, What is this?

  • How Python Empowers Short-Term Innovation in NHS England: Unveiling the Wrapper Magic

There will be following talks

  • Automating customer support with LLMs

  • Handling Document Signatures at Veriff

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.