Issue #681: Loguru, GeoDjango, flexicache, and More (May 13, 2025)

#681 – MAY 13, 2025

How to Use Loguru for Simpler Python Logging

In this tutorial, you’ll learn how to use Loguru to quickly implement better logging in your Python applications. You’ll spend less time wrestling with logging configuration and more time using logs effectively to debug issues.
REAL PYTHON

Quiz: Python Logging With the Loguru Library

REAL PYTHON

Maps With Django: GeoDjango, Pillow & GPS

A quick-start guide to create a web map with images, using the Python-based Django web framework, leveraging its GeoDjango module, and Pillow, the Python imaging library, to extract GPS information from images.
PAOLO MELCHIORRE

From try/except to Production Monitoring: Learn Python Error Handling the Right Way

This guide starts with the basics—errors vs. exceptions, how try/except works—and builds up to real-world advice on monitoring and debugging Python apps in production with Sentry. It’s everything you need to go from “I think it broke?” to “ai autofixed my python bug before it hit my users.” →
SENTRY sponsor

Exploring flexicache

flexicache is a cache decorator that comes with the fastcore library. This post describes how it’s arguments give you finer control over your caching.
DANIEL ROY GREENFELD

Announcing PSF Fellow Members for Q1 2025!

PYTHON SOFTWARE FOUNDATION

PEP 749: Implementing PEP 649 (Accepted)

PYTHON.ORG

PEP 727: Documentation in Annotated Metadata (Withdrawn)

PYTHON.ORG

Python Insider: Python 3.14.0 Beta 1 Is Here!

CPYTHON DEV BLOG

Django Security Releases Issued: 5.2.1, 5.1.9 and 4.2.21

DJANGO SOFTWARE FOUNDATION

Python Jobs

Senior Software Engineer – Quant Investment Platform (LA or Dallas) (Los Angeles, CA, USA)

Causeway Capital Management LLC

More Python Jobs >>>

Articles & Tutorials

Gen AI, Knowledge Graphs, Workflows, and Python

Are you looking for some projects where you can practice your Python skills? Would you like to experiment with building a generative AI app or an automated knowledge graph sentiment analysis tool? This week on the show, we speak with Raymond Camden about his journey into Python, his work in developer relations, and the Python projects featured on his blog.
REAL PYTHON podcast

Sets in Python

In this tutorial, you’ll learn how to work effectively with Python’s set data type. You’ll learn how to define set objects and discover the operations that they support. By the end of the tutorial, you’ll have a good feel for when a set is an appropriate choice in your programs.
REAL PYTHON

The Magic of Software

This article, subtitled “what makes a good engineer also makes a good engineering organization” is all about how we chase the latest development trends by the big corps, even when they have little bearing on your org’s success.
MOXIE MARLINSPIKE

Using the Python subprocess Module

In this video course, you’ll learn how to use Python’s subprocess module to run and control external programs from your scripts. You’ll start with launching basic processes and progress to interacting with them as they execute.
REAL PYTHON course

Q&A With the PyCon US 2025 Keynote Speakers

Want to learn more about the PyCon US keynote speakers? This interview asked each of them the same five questions, ranging from how they got into Python to their favorite open source project people don’t know enough about.
LOREN CRARY

Making PyPI’s Test Suite 81% Faster

Trail of Bits is a security research company that sometimes works with the folks at PyPI. Their most recent work reduced test execution time from 163 seconds down to 30. This post describes how they accomplished that.
ALEXIS CHALLANDE

pre-commit: Install With uv

pre-commit is Adam’s favourite Git-integrated “run things on commit” tool. It acts as a kind of package manager, installing tools as necessary from their Git repositories. This post explains how to use it with uv.
ADAM JOHNSON

5 Weirdly Useful Python Libraries

This post describes five different Python libraries that you’ve probably never heard of, but very well may love using. Topics include generating fake data and making your computer talk.
DEV

Developer Trends in 2025

Talk Python interviews Gina Häußge, Ines Montani, Richard Campbell, and Calvin Hendryx-Parker and they talk about the recent Stack Overflow Developer survey results.
KENNEDY ET AL podcast

The Future of Textualize

Will McGugan, founder of Textualize the company has announced that they will be closing their doors. Textualize the open source project will remain.
WILL MCGUGAN

Asyncio Demystified: Rebuilding It One Yield at a Time

Get a better understanding of how asyncio works in Python, by building a lightweight version from scratch using generators and coroutines.
JEAN-BAPTISTE ROCHER • Shared by Jean-Baptiste Rocher

Projects & Code

ty: New Type Checker and Language Server by Astral

GITHUB.COM/ASTRAL-SH

Build Python GUI’s Using Drag and Drop

GITHUB.COM/PAULLEDEMON • Shared by Paul

glyphx: SVG-first Plotting Library

GITHUB.COM/KJKOELLER

Scrapling: Web Scraping With Python as It Should Be!

GITHUB.COM/D4VINCI • Shared by Karim

python-blosc2: High-Performance, Compressed Ndarrays

GITHUB.COM/BLOSC

Events

Weekly Real Python Office Hours Q&A (Virtual)

May 14, 2025
REALPYTHON.COM

PyCon US 2025

May 14 to May 23, 2025
PYCON.ORG

PyData Bristol Meetup

May 15, 2025
MEETUP.COM

PyLadies Dublin

May 15, 2025
PYLADIES.COM

PyGrunn 2025

May 16 to May 17, 2025
PYGRUNN.ORG

Flask Con 2025

May 16 to May 17, 2025
FLASKCON.COM

Happy Pythoning!
This was PyCoder’s Weekly Issue #681.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s