PyCoder - DRF, Temp Files, Dataclasses, and More

#663 – JANUARY 7, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
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 WEEKLYsponsor

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


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 →

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

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
January 8, 2025

Python Atlanta
January 10, 2025

PyDelhi User Group Meetup
January 11, 2025

DFW Pythoneers 2nd Saturday Teaching Meeting
January 11, 2025

PiterPy Meetup
January 14, 2025

Leipzig Python User Group Meeting
January 14, 2025
Happy Pythoning!
Copyright © 2025 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Top 5 of 2024, Ninja, Deploying on AWS, and More

Tuesday, December 31, 2024

\#1: Build Captivating Display Tables With Great Tables #662 – DECEMBER 31, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo A lot has happened in the Python ecosystem in 2024 and with our final

Sentiment Analysis, Topological Sort, Web Security, and More

Tuesday, December 24, 2024

Exploring Modern Sentiment Analysis Approaches in Python #661 – DECEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Modern Sentiment Analysis Approaches in Python What are the

PyMyFlySpy, Set Comprehensions, State of Typing, and More

Thursday, December 19, 2024

PyMyFlySpy: Track Your Flight Using Its Headrest Data #660 – DECEMBER 17, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo PyMyFlySpy: Track Your Flight Using Its Headrest Data Robert is the creator

Handling Errors, PyPy Performance, Chat Interface to Wikipedia, and More

Tuesday, December 10, 2024

Handling or Preventing Errors in Python: LBYL vs EAFP #659 – DECEMBER 10, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Handling or Preventing Errors in Python: LBYL vs EAFP In this video course,

Django Performance, pathlib, Poetry, and More

Tuesday, December 3, 2024

Django Performance: Scaling and Optimization #658 – DECEMBER 3, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Django Performance: Scaling and Optimization Performance tuning in the context of

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your