Issue #728

Django With Alpine, Friendly Classes, SQLAlchemy, and More

March 31, 2026

Django With Alpine, Friendly Classes, SQLAlchemy, and More
#728 – MARCH 31, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Django Apps With Alpine AJAX, Revisited
The author has been modifying his approach to Django projects with Alpine AJAX over the last nine months. This post describes what he’s changed and how his process has improved.
LOOPWERK

Making Friendly Classes
What’s a friendly class? One that accepts sensible arguments, has a nice string representation, and supports equality checks. Read on to learn how to write them.
TREY HUNNER

Right-Size Your Celery & RQ Workers
CPU doesn’t tell you if tasks are piling up. Queue latency does. Autoscale your workers based on the metric that matters →
JUDOSCALEsponsor

Understanding CRUD Operations in SQL
Learn how CRUD operations work in SQL by writing raw SQL queries with SQLite and using SQLAlchemy as an ORM in Python.
REAL PYTHON course

Starlette 1.0 Released
MARCELOTRYLE.COM

PyCon Austria April 19-20, Registrations Open
PYCON.AT • Shared by Horst JENS

PyOhio 2026 Call for Proposals Now Open!
PRETALX.COM • Shared by Anurag Saxena


Articles & Tutorials


When Vectorized Arrays Aren’t Enough
This is a deep dive post about vectorized arrays in NumPy and how some optimizations work and some do not. There is also a follow-up as well: Vectorized Hardware Instructions Rule Everything Around Me.
NRPOSNER

Zensical: A Modern Static Site Generator
Talk Python interviews Martin Donath a contributor to MKDocs and recent creator of the new Zensical package. They talk about why he has built something new and what lessons he’s applied to the new project.
TALK PYTHON podcast

Dignified Python: 10 Rules to Improve your LLM Agents
At Dagster, we created “Dignified Python” to improve LLM-generated code by embedding clear coding principles into prompts. Instead of messy, pattern-based output, our agents produce code that reflects intent, consistency, and team standards. Here are the 10 rules from our Claude prompt →
DAGSTER LABSsponsor

Smello for HTTP Requests
Roman built Smello, an open-source tool that captures outgoing HTTP requests from your Python code and displays them in a local web dashboard. Learn why he did it and how he uses it to debug API access.
ROMAN IMANKULOV

Gotchas With SQLite in Production
What you need to know before putting a Django project that uses SQLite in production. This is part 5 of a series that includes information on write-ahead logging, locking errors, performance, and more.
ANŽE

Comparing Portable DataFrame Tools in Python
This article explores three tools for DataFrame portability in Python: Ibis, Narwhals, and Fugue. Learn when to use each to write code that runs across multiple backends.
CODECUT.AI • Shared by Khuyen Tran

Lessons From Pyre That Shaped Pyrefly
Pyrefly is a Python type checker from the same team that developed pyre. This article discusses lessons from developing Pyre that influenced how they designed Pyrefly.
PYREFLY

Connecting MongoDB to Python
This tutorial is a hands-on introduction to connecting MongoDB with Python using PyMongo, guiding readers through the essential first steps in just 10 minutes.
ANAIYA RAISINGHANI • Shared by Tony Kim

How Do Large Companies Manage CI/CD at Scale?
What changes for CI/CD when your company grows to hundreds of developers, dozens of services, and thousands of daily builds?
PETE MILORAVAC

Apply to Join the PSF Meetup Pro Network
The PSF helps support approved Python Meetup groups and the process to become one has recently been re-opened.
PYTHON SOFTWARE FOUNDATION

Inspect a Lazy Import in Python 3.15
This quick “things I learned” post shows you how to inspect a lazy import object in Python 3.15.
MATHSPP.COM


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

syrupy: The Sweeter pytest Snapshot Plugin
GITHUB.COM/SYRUPY-PROJECT

pendulum: Python Datetimes Made Easy
GITHUB.COM/PYTHON-PENDULUM

validatedata: An Easier Way to Validate Data in Python
GITHUB.COM/EDWARD-K1

awesome-marimo: Curated List of Awesome Marimo Things
GITHUB.COM/MARIMO-TEAM

dj-urls-panel: Visualize URL Routes in the Django Admin
GITHUB.COM/YASSI

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
April 1, 2026

Canberra Python Meetup
April 2, 2026

Sydney Python User Group (SyPy)
April 2, 2026

Python Leiden User Group
April 2, 2026

PyDelhi User Group Meetup
April 4, 2026

Melbourne Python Users Group, Australia
April 6, 2026

PyBodensee Monthly Meetup
April 6, 2026

PyCon Lithuania 2026
April 8 to April 11, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.