#634 – JUNE 18, 2024
Should Python Adopt Calendar Versioning?
Python’s use of semantic style versioning numbers causes confusion, as breaking changes can be present in the “minor” number position. This proposal given at the Python Language Summit is to switch to using calendar based versioning. A PEP is forthcoming.
PYTHON SOFTWARE FOUNDATION
Python Mappings: A Comprehensive Guide
In this tutorial, you’ll learn the basic characteristics and operations of Python mappings. You’ll explore the abstract base classes Mapping
and MutableMapping
and create a custom mapping.
REAL PYTHON
How Do You Turn Data Science Insights into Business Results? Posit Connect
Data scientists use Posit Connect to get their work into the hands of decision-makers. Securely deploy python analytic work & distribute that across teams. Publish data apps, documents, notebooks, and dashboards. Deploy models as APIs & configure reports to run & get distributed on a custom schedule →
POSIT sponsor
NumPy 2.0.0 Release Notes
The long awaited 2.0 release of NumPy landed this week. Not all the docs are up to date yet, but this final draft of the release notes shows you what is included.
NUMPY.ORG
Quiz: Python Mappings
In this quiz, you’ll test your understanding of the basic characteristics and operations of Python mappings. By working through this quiz, you’ll revisit the key concepts and techniques of creating a custom mapping.
REAL PYTHON
Discussions
Personal Red Flags When You’re Interviewing at a Company?
HACKER NEWS
Articles & Tutorials
Proposed Bylaws Changes for the PSF
As part of the upcoming board election, three new bylaws are also being proposed for your consideration. The first makes it easier to qualify for membership for Python-related volunteer work, the second makes it easier to vote, and the third gives the board more options around the code of conduct.
PYTHON SOFTWARE FOUNDATION
Python Interfaces: Object-Oriented Design Principles
In this video course, you’ll explore how to use a Python interface. You’ll come to understand why interfaces are so useful and learn how to implement formal and informal interfaces in Python. You’ll also examine the differences between Python interfaces and those in other programming languages.
REAL PYTHON course
Prod Alerts? You Should be Autoscaling
Rest easy with Judoscale’s web & worker autoscaling for Heroku, Render, and Amazon ECS. Traffic spike? Scaled up. Quiet night? Scaled down. Work queue backlog? No problem →
JUDOSCALE sponsor
Listing All Files in a Directory With Python
In this video course, you’ll be examining a couple of methods to get a list of files and folders in a directory with Python. You’ll also use both methods to recursively list directory contents. Finally, you’ll examine a situation that pits one method against the other.
REAL PYTHON course
Python Logging: The Log Levels
Logging levels allow you to control which messages you record in your logs. Think of log levels as verbosity levels. How granular do you want your logs to be? This article teaches you how to control your logging.
MIKE DRISCOLL
How Do You Program for 8h in a Row?
You may get paid for 8 hours a day, but that doesn’t necessarily mean you’re coding that whole time. This article touches on the variety of the job and what you should expect if you are new to the field.
BITE CODE!
Python Language Summit 2024: Lightning Talks
A summary of the six lightning talks given at the 2024 Python Language Summit. Topics include Python for iOS, improving asserts in 3.14, sharing data between sub-interpreters, and more.
PYTHON SOFTWARE FOUNDATION
Starting and Stopping uvicorn
in the Background
Learn how to start and stop uvicorn in the background using a randomly selected free port number. Useful for running test suites that require live-webservers.
CHRISTOPH SCHIESSL • Shared by Christoph Schiessl
How I Built a Bot Publishing Italian Paintings on Bluesky
This article describes Nicolò’s project to build a bot that retrieves images from Wikimedia, selecting the best ones, and deploying it to the cloud.
NICOLÒ GISO • Shared by Nicolò Giso
Testing async
MongoDB AWS Applications With Pytest
This article shows real life techniques and fixtures needed to make the test suite of your MongoDB and AWS-based application usable and performant.
HANDMADESOFTWARE • Shared by Thorin Schiffer
DjangoCon Europe 2024 Bird’s-Eye View
Thibaud shares some of the best moments of DjangoConEU 2024. He highlights some of the talks, workshops, and the outcome of the sprints.
THIBAUD COLAS
Storing Django Static and Media Files on DigitalOcean Spaces
This tutorial shows how to configure Django to load and serve up static and media files, public and private, via DigitalOcean Spaces.
MICHAEL HERMAN
CPython Reference Counting and Garbage Collection Internals
A detailed code walkthrough of how CPython implements memory management, including reference counting and garbage collection
ABHINAV UPADHYAY
The Decline of the User Interface
“Software has never looked cooler, but user interface design and user experience have taken a sharp turn for the worse.”
NICK HODGES
Ruff: Internals of a Rust-Backed Python Linter-Formatter
This article dives into the structure of the popular ruff Python linter written in Rust.
ABDUR-RAHMAAN JANHANGEER • Shared by Abdur-Rahmaan Janhangeer
Projects & Code
FinanceDatabase: Financial Database as a Python Module
GITHUB.COM/JERBOUMA
prettypretty: Build Awesome Terminal User Interfaces
GITHUB.COM/APPAREBIT
smbclient-ng: Interact With SMB Shares
GITHUB.COM/P0DALIRIUS
wakepy: Cross-Platform Keep-Awake With Python
GITHUB.COM/FOHRLOOP
django-mfa2: Django MFA; Supports TOTP, U2F, & More
GITHUB.COM/MKALIOBY
Events
Weekly Real Python Office Hours Q&A (Virtual)
June 19, 2024
REALPYTHON.COM
Wagtail Space US
June 20 to June 23, 2024
WAGTAIL.SPACE
PyData Bristol Meetup
June 20, 2024
MEETUP.COM
PyLadies Dublin
June 20, 2024
PYLADIES.COM
Chattanooga Python User Group
June 21 to June 22, 2024
MEETUP.COM
PyCamp Leipzig 2024
June 22 to June 24, 2024
BARCAMPS.EU
Happy Pythoning!
This was PyCoder’s Weekly Issue #634.
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