Issue #663 (Jan. 7, 2025)

#663 – JANUARY 7, 2025

Building HTTP APIs With Django REST Framework

This course will get you ready to build HTTP APIs with Django REST Framework. The Django REST framework (DRF) is a toolkit built on top of the Django web framework that reduces the amount of code you need to write to create REST interfaces.
REAL PYTHON video

Python: Create Temporary Files and Directories in Unittest

Sometimes, tests need temporary files or directories. You can do this in Python’s unittest with the standard library tempfile module. This post looks at some recipes to do so within individual tests and setUp().
ADAM JOHNSON

Finally — Pandas Practice That Isn’t Boring

You won’t get fluent with Pandas doing boring, irrelevant, toy exercises. Bamboo Weekly poses questions about current events, using real-world data sets—and offers clear, comprehensive solutions in downloadable Jupyter notebooks. Challenge yourself, and level up your Pandas skills every Wednesday →
BAMBOO WEEKLY sponsor

The Inner Workings of Python Dataclasses Explained

Discover how Python dataclasses work internally! Learn how to use __annotations__ and exec() to make our own dataclass decorator!
JACOB PADILLA

DjangoCon US 2025 (Chicago, Sept 8-12) Announced

DEFNA.ORG

Articles & Tutorials

Database Optimization Isn’t Always Obvious

“One of the issues of working with abstractions is that what you think may be logically true, isn’t.” Ken came across an article recently with advice specific to a Django ORM call, but the ORM is itself an abstraction over SQL, an abstraction. Global statements on performance are tricky.
KEN WHITESELL

Learn From 2024’s Most Popular Python Tutorials and Courses

Revisit your favorite Real Python tutorials and courses from 2024. You can explore various topics, from mastering Python basics to creating innovative projects and optimizing your workflow. It’s been an exciting year of learning, and there’s something for everyone to build upon in 2025.
REAL PYTHON

DuckDB and Python: Ducks and Snakes Living Together

Talk Python to Me interviews Alex Monahan who works on documentation, tutorials, and training at DuckDB Labs. They discuss the surge in popularity of DuckDB amongst Python programmers and details of how the database works.
KENNEDY & MONAHAN podcast

Cowboy Debugging Python Memory Leaks

The objgraph library allows you to capture a birds-eye view of your memory usage. In production it can be combined with a signal to report out. This article teaches you how to use it to help find leaks.
RAPHAEL GASCHIGNARD

Concurrency: Threads, Processes, and asyncio Explained

A practical guide to Python concurrency using a Fibonacci server to demonstrate the strengths and limitations of threads, processes, and asyncio. Learn when to use each approach through hands-on examples
NEWVICK LEE • Shared by Newvick Lee

Effective Python Developer Tooling in December 2024

This post talks about how tooling doesn’t solve all your problems when you code, especially with a team. It outlines some principles to implement, and bad practices to avoid when writing Python.
TIM HOPPER

Getting Started Contributing to Django

The contributor guide for Django is a hefty beast, but if you think you might want to write help fix bugs or submit a feature, this post has some pointers on how to get started.
TIM SCHILLING

Better Python Developer Productivity With RDD

REPL Driven Development is an interactive development experience with fast feedback loops. David writes up how his use of IPython has made a difference when he codes.
DAVID VUJIC • Shared by David Vujic

Mistakes Engineers Make in Large Established Codebases

This is a “lessons learned” article from someone who has spent a lot of time in multi-million lines-of-code environments.
SEAN GOEDECKE

Python PEPs Graph

An interactive representation of all Python Enhancement Proposals and which other PEPs each references.
PYTHON-PEPS-GRAPH.GLITCH.ME

State of the Art Python in 2024

This opinion piece shows which Python tools Anders thinks should be used when developing in Python.
ANDERS SUNDMAN

Project Quarantine

In the ongoing battle to protect us from malicious packages, the folks at PyPI have added a new feature with the ability to quarantine a package. This post from PyPI’s security engineer talks about how this works.
MIKE FIEDLER

Projects & Code

fastcrud: Async CRUD Operations for FastAPI

GITHUB.COM/IGORBENAV

FindMy.py: Query Apple’s FindMy Network!

GITHUB.COM/MALMELOO

fastapi-injectable: FastAPI Depends() Outside Routes

GITHUB.COM/JASPERSUI • Shared by Jasper Sui

klp: Lightweight CLI Viewer for Log Files

GITHUB.COM/DLOSS

BlackSheep: Fast ASGI Web Framework for Python

GITHUB.COM/NEOTEROI

Events

Weekly Real Python Office Hours Q&A (Virtual)

January 8, 2025
REALPYTHON.COM

Python Atlanta

January 10, 2025
MEETUP.COM

PyDelhi User Group Meetup

January 11, 2025
MEETUP.COM

DFW Pythoneers 2nd Saturday Teaching Meeting

January 11, 2025
MEETUP.COM

PiterPy Meetup

January 14, 2025
PITERPY.COM

Leipzig Python User Group Meeting

January 14, 2025
MEETUP.COM

Happy Pythoning!
This was PyCoder’s Weekly Issue #663.
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