Python Weekly (Issue 677 November 21 2024)

Python Weekly - Issue 677

Python Weekly

Welcome to issue 677 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

PyPI package maintainers can now publish signed digital attestations when publishing, in order to further increase trust in the supply-chain security of their projects. Additionally, a new API is available for consumers and installers to verify published attestations.

Articles, Tutorials and Talks

When you develop an API, you might feel like you’re writing a lot of boilerplate code: routes, database schemas, the API interface, and so on. In this video, I’ll show you how to drastically reduce that boilerplate with SQLModel and FastAPI.

Musings about async await again and why I think virtual threads are a better model. 

The article discusses implementing a final encoding approach in RPython for interpreter design, focusing on a Brainf**k interpreter as an example. It explores the benefits of using final encoding over initial encoding, including potential performance improvements and a different architectural approach to building interpreters in RPython.

The article introduces DjangoVer, a versioning system for Django-related packages that aligns the package version with the latest supported Django feature release. It provides clarity on compatibility, signaling maintenance and compatibility status through the version number while addressing limitations of traditional versioning systems like Semantic Versioning.

This tutorial teaches how to build a stock trading bot using Django and TimescaleDB, covering data extraction from APIs, analysis, and automated recommendations. It integrates Celery for background processing and demonstrates advanced database queries in Django, showcasing the power of time series data handling for various applications beyond stock market analysis.

The post explores Python's perceived slowness, highlighting that it stems from its interpreted nature and focus on developer productivity rather than raw performance. By leveraging tools like C extensions, async programming, or just-in-time compilers, developers can often overcome performance concerns effectively.

PyPIM is an end-to-end architectural integration for digital memristive processing-in-memory (PIM), bridging the gap from high-level Python tensor operations to low-level microarchitecture. It includes an efficient microarchitecture, ISA, Python development library, and PIM driver, simplifying PIM application development and enabling easy conversion of existing Python programs to PIM.

Explore async Django's readiness for production use, its benefits, challenges, and how AI workloads can leverage its capabilities effectively.

The videos of the talks from PyData Tel Aviv 2024 are now available.

Interesting Projects, Tools and Libraries

Keep your Python architecture clean.

garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks, and many other weaknesses. 

A local AI-powered email automation system that learns from your email style and creates draft responses for every unread email in your (Gmail) inbox.

A fast multimodal LLM for real-time voice.

An End-to-End Solution for High-Resolution and Long Video Generation Based on Transformer Diffusion.

An Open Source implementation of Notebook LM with more flexibility and features.

Make websites accessible for AI agents.

Democratizing Biomolecular Interaction Modeling.

An Intelligent Interactive Image Editing System.

Compiler Accelerated DataFrame Library for Python with fully-compatible pandas API.

New Releases

Upcoming Events and Webinars

There will be following talks

  • If You Know Python, You Know Blockchain

  • Enterprise-ready FastAPI 

  • Python in music: OSC, MIDI and asyncio

There will be following talks

  • Let’s exploit pickle, and `skops` to the rescue!

  • Privacy-Preserving Machine Learning With Fully Homomorphic Encryption (FHE)

There will be following talks

  • Using Bayesian modeling to Overcome Low Data Coverage

  • Adapting to change: dealing with data drift in energy waste prevention

There will be following talks

  • From chaos to clarity: Using LLMs to structure and validate your data

  • Designing & Deploying a Machine Learning Pipeline for E-Commerce Order Predictions

  • Introduction to AI Language Agents

  • Omelette Surprise de Python - Why managing wording in proper namespaces is key to success of a project

There will be following talks

  • Low-Precision Data Formats for High-Performance AI

  • Make Llamas Run Faster: How to Speed Up LLM Inference

There will be following talks

  • Watt's Next? Using Python to Analyze and Cluster Energy Consumption Data

  • A Practical Introduction to RAGs

There will be a talk, Parallel Python for Data Processing: Embracing the Embarrassingly Parallel

.

There will be following talks

  • Pathway to Net Zero: Utilising Open Source Data to Gain Insights into Risks and Rewards of Net Zero Technologies,

  • Using Python to Help Optimize AAA Games

  • Enhancing Retrieval-Augmented Generation for Financial Document Processing

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.