Celery, Context Managers, Data Wrangling, and More

#620 – MARCH 12, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Creating Asynchronous Tasks With Celery and Django
In this video course, you’ll learn how to integrate Celery and Django using Redis as a message broker. You’ll refactor the synchronous email sending functionality of an existing Django app into an asynchronous task that you’ll run with Celery instead.
REAL PYTHON course

Understanding Context Manager and Its Syntactic Sugar
The Context Manager is gets used for all kind of interesting things around blocks of code. This article gives a background about the origins of the context manager, which problem it solves and how to use it.
BJÖRN RICKS • Shared by Björn Ricks

🚀 Sentry Launch Week: Making Debugging Fun
If you’ve ever been curious about Sentry or application performance monitoring, Launch Week is for you. Tune in from March 18-22 to get the scoop on new products, new features, and a bunch of other cool stuff. You can get a sneak peek (and win free swag) if you RSVP. It’s a win-win →
SENTRYsponsor

The Ultimate Guide to Data Wrangling With Python
This comprehensive user guide equips you with the skills required to use Python Polars Data Frames effectively for financial and supply chain data science analytics.
AMIT SHUKLA • Shared by Amit Shukla

GIL Disable Added to Main Branch of Python Project
GITHUB

Django Security Releases Issued: 5.0.3, 4.2.11, and 3.2.25
DJANGO SOFTWARE FOUNDATION

PyCon US 2024 Talk Schedule Announced
PYCON US


Articles & Tutorials


Building a Healthy Developer Mindset While Learning Python
How do you get yourself unstuck when facing a programming problem? How do you develop a positive developer mindset while learning Python? This week on the show, Bob Belderbos from Pybites is here to talk about learning Python and building healthy developer habits.
REAL PYTHON podcast

Asyncio Patterns in Python
This post talks about how to go from a slow, synchronous process, to a highly concurrent and lightning fast asyncio process. This article starts from the problem in it’s most basic form and incrementally shows you how to move towards concurrency with Asyncio in Python.
SKYLER LEWIS • Shared by CHernandez

Master Python: 250 Actionable Tips Await You
Elevate your Python skills with our FREE ebook containing 250 Bulletproof Python Tips. Ideal for developers eager to refine their coding prowess with practical, instantly applicable advice. Transform your Python code and join a thriving community of Python enthusiasts today →
PYBITESsponsor

Tag-Based Python CI/CD Pipeline
This article walks you through setting up a CI/CD pipeline using Github Actions for Python projects, that trigger on git tag pushes. It also includes a way of handling CI pipeline errors for any point of failure.
DHRUV AHUJA • Shared by Dhruv Ahuja

Python’s __all__: Packages, Modules, and Wildcard Imports
In this tutorial, you’ll learn about wildcard imports and the __all__ variable in Python. With __all__, you can prepare your packages and modules for wildcard imports, which are a quick way to import everything.
REAL PYTHON

Don’t Mock Machine Learning Models in Unit Tests
How you unit test machine learning code differs from typical software practices and simply using mock often doesn’t cut it. This post covers alternative ways of testing your ML software.
EUGENE YAN

Styling Excel Cells With OpenPyXL and Python
Many Python libraries that deal with Excel only handle data, but OpenPyXL gives you the ability to style your cells in many different ways. Learn how to give your spreadsheets pizazz!
MIKE DRISCOLL

Neat Parallel Output in Python
Max adapts some StackOverflow code to handle multiple output streams in parallel, giving you a quick way to handle the output from concurrent processes at the same time.
MAX BERNSTEIN

Python Deque Tutorial With 7 Example Use Cases
This tutorial teaches the mechanics of the data structure collections.deque, using seven example use cases where deque simplifies the implementation of a function.
RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão

Improving Django Testing With Seed Database
A seed database is one with initial data for your project. They can be useful when testing and in CI/CD pipelines. This article shows you how to create them in Django.
KARL FREDRIK HAUGHLAND

Datetimes With Timezones in Python
The article shows examples of using timezones with datetime objects, using the zoneinfo module added in the standard library in Python 3.9.
MARKKU LEINIÖ • Shared by Markku Leiniö

Speed Up AI Development With Open Source Code Snippets
Save time and resources by building on top of our open-source sample apps. Get a headstart on development and deploy your AI apps faster with Intel’s OpenVINO toolkit.
INTEL CORPORATIONsponsor

Python Dependencies Are Fixable
Dependency management can be a hurdle for newcomers to Python, and this article argues that better defaults would be the right answer.
MAT DUGGAN

Generic Functions and Generic Classes in Python
Python does have generics! Learn how to use typing TypeVar and Generic to reuse code with proper typing.
GUI LATROVA • Shared by Gui Latrova


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 →

django-simple-menu: Code-Based Menus for Django
GITHUB.COM/JAZZBAND

poltergeist: Rust-Like Error Handling in Python
GITHUB.COM/ALEXANDERMALYGA

whenever: Strict, Predictable, and Typed Datetimes
GITHUB.COM/ARIEBOVENBERG

PyprojectX: Make Reproducible Builds
GITHUB.COM/PYPROJECTX • Shared by Ivo Houbrechts

modguard: Enforce a Decoupled Architecture
GITHUB.COM/NEVER-OVER

📆🐍 Upcoming Python Events


What’s New in Wagtail CMS Webinar
March 12 to March 13, 2024

Weekly Real Python Office Hours Q&A (Virtual)
March 13, 2024

Python Atlanta
March 14 to March 15, 2024

PyCon SK 2024
March 15 to March 18, 2024

Django Girls Eket Workshop
March 15 to March 17, 2024

Chattanooga Python User Group
March 15 to March 16, 2024
Happy Pythoning!
Copyright © 2024 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

Duck Typing, IPython Jupyter Magic, Monkey Patching, and More

Tuesday, March 5, 2024

Duck Typing in Python: Writing Flexible and Decoupled Code #619 – MARCH 5, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Duck Typing in Python: Writing Flexible and Decoupled Code In this tutorial

Composable Systems, Flask-Musk, 10 Years of Wagtail, and More

Tuesday, February 27, 2024

McKinney on Improving the Data Stack & Composable Systems #618 – FEBRUARY 27, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo McKinney on Improving the Data Stack & Composable Systems How do

uv, Conway's Game of Life, Polars Strings, and More

Tuesday, February 20, 2024

`uv`: Python Packaging in Rust #617 – FEBRUARY 20, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo uv : Python Packaging in Rust uv is an extremely fast Python package installer and resolver,

Data Analysis, Lukasz Langa, Polars, and More

Tuesday, February 13, 2024

Using Python for Data Analysis #616 – FEBRUARY 13, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Using Python for Data Analysis In this tutorial, you'll learn the importance of having a

Python Packaging Tools, Enumerations, Debugging Tips, and More

Tuesday, February 6, 2024

Rye: A [Python Developer Experience] Vision Continued #615 – FEBRUARY 6, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Rye: A [Python Developer Experience] Vision Continued Armin, who's also

You Might Also Like

🕹️ How to Play Retro Games for Free on iPhone — Why I Can't Live Without an eReader

Saturday, April 27, 2024

Also: Anker MagGo (Qi2) Power Bank Review, and More! How-To Geek Logo April 27, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

Weekend Reading — The Bob Ross of programming

Saturday, April 27, 2024

This week we use coffee tasting as our design practice, get as close to and as far away from the metal as possible, find an easier way to write documentation, discover why Google Search is getting so

Issue #538: All the Jam entries, Panthera 2, and Tristram

Saturday, April 27, 2024

Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #538 - April 26th 2024 If you have anything you want to share with the HTML5 game

Daily Coding Problem: Problem #1424 [Easy]

Saturday, April 27, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Implement a URL shortener with the following methods: shorten(url) , which

Charted | Countries That Became More Happy (or Unhappy) Since 2010 😅

Saturday, April 27, 2024

Which countries had the highest happiness gains since 2010? Which became sadder? View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY Countries With the

Noonification: What Is E-Waste Hacking?

Saturday, April 27, 2024

Top Tech Content sent at Noon! The first AI-powered startup unlocking the “billionaire economy” for your benefit How are you, @newsletterest1? 🪐 What's happening in tech this week: The

TikTok faces a ban in the US, Tesla profits drop and healthcare data leaks

Saturday, April 27, 2024

Plus: Amazon's new delivery subscription and a deep dive on Rippling View this email online in your browser By Kyle Wiggers Saturday, April 27, 2024 Image Credits: TechCrunch Welcome, folks, to

🐍 New Python tutorials on Real Python

Saturday, April 27, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Write Unit Tests for Your Python Code With

Bogus npm Packages Used to Trick Software Developers into Installing Malware

Saturday, April 27, 2024

THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.

This Smart Scale for iPhone Is the Best on the Market

Saturday, April 27, 2024

The ultimate checkup, with electrocardiogram.¹ Learn about your body at every weigh-in: pinpoint muscle and fat mass, monitor your cardiovascular health and detect a cardiac anomaly. Body Scan, the