Python Weekly (Issue 757 August 6 2026)

In partnership with

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

Save 40% on 1000+ AI APIs

AI costs don't usually explode overnight. They grow quietly through duplicate requests, expensive routing and poor visibility.

Mesh API helps engineering teams spot the waste before finance does.

A global e-commerce company was able to reduce spend by 78%.


Articles, Tutorials and Talks

A longtime Python developer reflects on decades of using Python for almost everything, then explains why it is no longer always his first choice and what he often uses instead. It also covers where Python still shines and why it remains an important part of his toolkit.

From a single pilot to an air campaign: planning, parallelism, memory, verification, and observability for production-shaped agents.

A practical guide to Gleam for Python programmers, explaining its syntax, static typing, immutability, pattern matching, and functional programming model through Python comparisons. It gives Python developers a quick way to understand how Gleam differs while building on concepts they already know.

A benchmark shows Python’s time-machine library stays O(1) when mocking time, while freezegun scales O(n) with the number of loaded module attributes and becomes dramatically slower as projects grow. The difference comes from time-machine swapping CPython function pointers directly, while freezegun scans loaded modules to replace references to date and time functions.

A practical look at building grocery categorization without machine learning, using NLP techniques such as stemming, n-grams, syllable splitting, and spell checking. The author shows how a hand-crafted Python algorithm handles messy real-world inputs and edge cases when training data is scarce.

Simon Willison packaged a Go CLI inside Python wheels, showing that PyPI can distribute platform-specific binaries containing no Python at all. The article compares wheels with Homebrew bottles and OCI images, highlighting their shared model of immutable artifacts and client-side platform selection, along with growing convergence in registry infrastructure and Sigstore attestations.

Deploying Django with DEBUG=True exposes your app to attackers. Learn why it's risky and how to fail closed so DEBUG=False stays the safe default.

A Python booking system is refactored from loose dictionaries into a stronger domain model using dataclasses, enums, and value objects. The video shows where stronger types improve maintainability and where keeping a simple string is still the better choice.

A deep dive into harness engineering, the infrastructure around AI agents that controls tools, context, permissions, state, testing, budgets, and feedback loops. It explains how production agents become more reliable through machine-verified completion, durable state, constrained action spaces, stall detection, tool permissions, and replayable trajectories.

A practical guide to Python concurrency that builds from OS fundamentals, processes, threads, race conditions, and the GIL to choosing between asyncio, threading, and multiprocessing. It also explains concurrency vs. parallelism, CPU vs. GPU tradeoffs, and how profiling and strong mental models help avoid common performance mistakes.

The article introduces Celery, a distributed task queue for Python, then walks through practical patterns for running, routing, batching, timing out, and retrying asynchronous tasks. It also covers advanced recipes such as preventing parallel execution with Redis locks and integrating Celery tasks with Python’s async/await workflows.


Interesting Projects, Tools, and Libraries

NVIDIA Object Oriented Agents: the Pythonic way to build AI Agents.

ADR secures enterprise AI agents through observability, security benchmarking, and threat detection. Deployed at Uber.

Build local voice agents with open-source models.

Running a 28.9M parameter LLM on a microcontroller.

A framework for running evals against small (and large) models

An agent that reads the scene before it writes the prompt: text, image, video, and reference-to-video for Seedance 2.0, with native audio, IP-safe rewrites, source-dated platform facts, and native reader paths in six languages.

An AI-powered web application for speech recognition, translation, and dubbing.

Agent skill that removes signs of AI-generated writing from text.

A desktop music library builder that turns Spotify, Youtube Music Apple Music, Amazon Music, Tidal, Qobuz, and Deezer links into fully tagged local library in FLAC, ALAC, AAC, or MP3.

Geotechnical engineering, solved in Python. 170+ validated functions for soil mechanics, SPT, CPT, bearing capacity, settlement, liquefaction & slope stability. Apache 2.0.

The sassy AI code agent that makes IDEs look outdated.

A Modular Full-stack RL Library for LLMs.

Lightweight loop engineering state kernel for long-running AI agent teams. Agent-loop agnostic across Codex, Claude Code, and other coding agents, with durable goals, quota-aware auto-wake, executable todos, evidence logs, and verifiable handoffs.


New Releases

Django 6.1 is now available with features including model field fetch modes, database-level ForeignKey delete options, and dictionary-based email settings. Django 6.0 has ended mainstream support and will receive only security and data-loss fixes until April 2027.


Upcoming Events and Webinars

There will be following talks

  • What is a survival model?

  • Mistral LLM - Custom Benchmarks

  • Implementing Kalman filter in Python - from linear to non linear

There will be a talk, Comparing Transformation Frameworks: dbt vs. SQLMesh.

There will be a talk, Orchest-Rated: Comparing Modern Workflow Orchestration Engines.

There will be a talk, Processing Async Jobs in Django.


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.