Unit Test Docs, Python zipfile, Django Runs Black, and More

#512 – FEBRUARY 15, 2022 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Documentation Unit Tests
Interesting approach to keeping documentation and code in sync: introspecting the code to figure out what needs to be documented, then parsing the documentation to see if each item has been covered.
SIMON WILLISON

Improving Your Django and Python Developer Experience
How often have you thought about your Developer Experience (DX)? How do you improve your workflow, find documentation, and simplify code formatting? This week on the show, Adam Johnson is here to talk about his new book, “Boost Your Django DX.”
REAL PYTHON podcast

Monitoring and Distributed Tracing for Python Applications With Datadog APM
Optimize Python app performance by tracing requests across service boundaries and troubleshooting bottlenecks by drilling into individual traces end-to-end using Datadog’s flame graphs. Plus, correlate Python traces with relevant logs and metrics without switching tools for context. Try Datadog APM →
DATADOGsponsor

Python’s zipfile: Manipulate Your ZIP Files Efficiently
In this guided tutorial, you’ll learn how to manipulate ZIP files using Python’s zipfile module from the standard library. Through hands-on examples, you’ll learn how to read, write, compress, and extract files from your ZIP files quickly.
REAL PYTHON

PEP 673: Self Type Was Accepted
This PEP introduces a simple and intuitive way to annotate methods that return an instance of their class. This behaves the same as the TypeVar-based approach specified in PEP 484 but is more concise and easier to follow. Related Twitter thread by core dev Raymond Hettinger.
PYTHON.ORG

Twisted 22.1.0 Released
Twisted, the event framework for internet applications, has announced the release of 22.1.0. Mainly a bugfix release.
TWISTEDMATRIX.COM

Django Project Reformats Entire Codebase With Black
Related discussion on Hacker News.
GITHUB.COM/DJANGO


Discussions


Python Type Hints Guidelines
Are type-hints overused? Discussion on if sometimes they’re too much.
HACKER NEWS

What Have You Recently Automated at Work Using Python?
From mouse-wiggling scripts to make Teams look active to RNC automation.
REDDIT


Python Jobs


Python Software Engineer (Anywhere)
FLASHPOINT

Mid/Senior Django Developer (Brooklyn, NY, USA)
TYPE/CODE

Sr Python Engineer (Anywhere)
FLASHPOINT

Senior Backend Engineer Django (UK, Europe)
DATAPANE

Backend Software Engineer (Asia Pacific Region)
CATALPA INTERNATIONAL

Senior Full-Stack Web Developer (Anywhere)
MONETIZEMORE

Python Engineer Web Scraping (Asia, TX, America)
NEWSCATCHER

Python Trainer (Jakarta, Indonesia)
PHYSIKALISCH-TECHNISCHE BUNDESANSTALT

More Python Jobs >>>


Articles & Tutorials


Upcoming Python Feature PEPs
“These PEPs are a great way of getting the freshest info about what might be included in the upcoming Python releases. So, in this article we will go over all the proposals that are going to bring some exciting new Python features in a near future!”
MARTIN HEINZ

K-Nearest Neighbors in Python
A beginner-friendly guide to the K-Nearest Neighbor algorithm implemented in Python using Scikit-Learn. The tutorial assumes no prior knowledge of machine learning and guides through developing a classifier, evaluating its performance, and hyper-parameter tuning.
NIK PIEPENBREIER • Shared by Nik Piepenbreier

Performance Monitoring Built for Developers, by Developers
Scout APM is an application performance monitoring tool that ties performance anomalies directly to endpoints, saving developers hours of time spent on troubleshooting and debugging. See why Scout is a developer’s best friend with a free 14-day trial, no credit card required →
SCOUT APMsponsor

Python’s all(): Check Your Iterables for Truthiness
Learn how to use Python’s all() function to check if all the items in an iterable are truthy. You’ll also code various examples that showcase a few interesting use cases of all() and highlight how you can use this function in Python.
REAL PYTHON

How to Check if Numbers Are Prime Concurrently in Python
“The ProcessPoolExecutor class in Python can be used to check if multiple numbers are prime at the same time. This can dramatically speed-up your program compared to checking if numbers are prime, one-by-one.”
JASON BROWNLEE

Ways I Use Testing as a Data Scientist
“Knowing what to test requires some experience in knowing what can go wrong.” Peter describes testing with a Data Scientist’s perspective.
PETER BAUMGARTNER

Structural Subtyping in Python
Along with nominal typing, Protocol classes now allow you to take advantage of structural subyping in Python. This post explores that.
REDOWAN DELOWAR • Shared by Redowan Delowar

How to Pickle and Unpickle Objects in Python
Learn how to serialize and deserialize data in Python with the pickle module, including working with serialization in Pandas.
MOHAMMAD WASEEM

A Comprehensive Guide to Slicing in Python
Introduction to slicing in Python, covers slices, negative indexes, slice(), and how to make your own classes slice-able.
BAS STEINS

Find Your Next Tech Job Through Hired
Hired has 1000s of companies ranging from startups to Fortune 500s who are actively hiring developers, data scientists, mobile engineers, & more. Its simple: create a profile with your skills for hiring managers to reach you directly. Sign up today!
HIREDsponsor

The Ins and Outs of Logging in Python
A multi-part guide to using logging in Python. The fundamental concepts are discussed and illustrated with simple examples.
CESAR URIBE • Shared by Erin McLaughlin

Chaining Comparison Operators
“Learn the ins and outs of comparison operator chaining, and especially the cases you should avoid.”
RODRIGO GIRÃO SERRÃO


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 REST Framework Cheat Sheets
CDRF.CO

PaddleOCR: Multilingual OCR Toolkits Based on PaddlePaddle
GITHUB.COM/PADDLEPADDLE

pytube: Dependency-Free Python Library for Downloading YouTube Videos
GITHUB.COM/PYTUBE

YT-Spammer-Purge: Scan and Delete by Comments by User on YouTube
GITHUB.COM/THIOJOE

plane-notify: Notify if a Plane Has Taken Off or Landed
GITHUB.COM/JXCK-S

📆🐍 Upcoming Python Events


⋅ Weekly Real Python Office Hours Q&A (Virtual) February 16, 2022

⋅ Dominican Republic Python User Group February 15 to February 16, 2022

⋅ PyCon Iran 2022 February 16 to February 19, 2022

⋅ PyLadies Dublin February 17, 2022

⋅ PyCon Sri Lanka 2022 February 22 to February 23, 2022
Happy Pythoning!
Copyright © 2022 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

typing.Protocol, args and kwargs, CPython 3.11.0a5 Released, and More

Tuesday, February 8, 2022

Defining Python Functions With Optional Arguments #511 – FEBRUARY 8, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Defining Python Functions With Optional Arguments Learn about Python optional

Python JIT, Security Pitfalls, macOS Deprecates Python 2, Black Formatter Stable Release, and More

Tuesday, February 1, 2022

What Is a JIT and How Can Pyjion Speed Up Your Python? #510 – FEBRUARY 1, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo What Is a JIT and How Can Pyjion Speed Up Your Python? How can you can speed

PEP 646 Accepted, Strict Function Parameters, Solving Wordle, and More

Tuesday, January 25, 2022

PEP 646: Variadic Generics Was Accepted #509 – JANUARY 25, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo PEP 646: Variadic Generics Was Accepted This PEP introduces TypeVarTuple , enabling

Object Subscriptions Deep-Dive, Django Survey Results, Pip Caching, and More

Tuesday, January 18, 2022

Unravelling "`[]`" Subscriptions in Python #508 – JANUARY 18, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Unravelling “ [] ” Subscriptions in Python “It's quite possible you're

Django Front Ends, Language of the Year, PSF News, and More

Tuesday, January 11, 2022

Build a Django Front End With Bulma – Part 2 #507 – JANUARY 11, 2022 VIEW IN BROWSER The PyCoder's Weekly Logo Hey there, Quick announcement: I'm looking to hire a talented PyCoder's Weekly

You Might Also Like

Distributed Locking: A Practical Guide

Monday, December 23, 2024

If you're wondering how and when distributed locking can be useful, here's the practical guide. I explained why distributed locking is needed in real-world scenarios. Explored how popular tools

⚡ THN Weekly Recap: Top Cybersecurity Threats, Tools and Tips

Monday, December 23, 2024

Your one-stop-source for last week's top cybersecurity headlines. The Hacker News THN Weekly Recap The online world never takes a break, and this week shows why. From ransomware creators being

⚙️ OpenA(G)I?

Monday, December 23, 2024

Plus: The Genesis Project ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 12/23/2024

Monday, December 23, 2024

New blogs from Syncfusion Introducing the New WinUI Kanban Board By Karthick Mani This blog explains the features of the new Syncfusion WinUI Kanban Board control introduced in the 2024 Volume 4

Import AI 395: AI and energy demand; distributed training via DeMo; and Phi-4

Monday, December 23, 2024

What might fighting for freedom in an AI age look like? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

LockBit Ransomware Developer Charged for Billions in Global Damages

Monday, December 23, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Re: How to know if your data has been exposed

Monday, December 23, 2024

Imagine getting an instant notification if your SSN, credit card, or password has been exposed on the dark web — so you can take action immediately. Surfshark Alert does just that. It helps you stay

Christmas On Repeat 🎅

Monday, December 23, 2024

Christmas nostalgia is a hell of a drug. Here's a version for your browser. Hunting for the end of the long tail • December 22, 2024 Hey all, Ernie here with a refresh of a piece from our very

SRE Weekly Issue #456

Monday, December 23, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: On-call during the holidays? Spend more time taking in some R&R and less getting paged. Let alerts make their rounds fairly with our

The Power of an Annual Review & Grammarly acquires Coda

Sunday, December 22, 2024

I am looking for my next role, Zen Browser got a fresh new look, Flipboard introduces Surf, Campsite shuts down, and a lot more in this week's issue of Creativerly. Creativerly The Power of an