Issue #598

Tuples, CLI Tools, 3.12, and More

Oct. 10, 2023

Tuples, CLI Tools, 3.12, and More
#598 – OCTOBER 10, 2023 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python’s tuple Data Type: A Deep Dive With Examples
In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those situations where you need to store heterogeneous data, like that in a database record, for example.
REAL PYTHON

Things I’ve Learned About Building CLI Tools in Python
In this blog post, Simon covers many of the things he has learned over the years when writing command-line tools in Python. He talks about the different kinds of command line arguments and tools that will help you process them.
SIMON WILLISON

See How Sourcery Can Be Your Pair Programmer - Anytime, Anywhere
Sourcery is your AI-powered pair programmer - helping you with everything from understanding a new project you’ve just started working on, to creating automated code reviews, to writing tests and docstrings and more. Start your free trial today →
SOURCERYsponsor

Python 3.12: What Didn’t Make the Headlines
There has been plenty of coverage about the changes in Python 3.12, this article tries to show what fell through the cracks. It talks about performance, pathlib improvements, and a few other changes.
BITE CODE

PSF Hiring a Part Time Django Developer
PYTHON SOFTWARE FOUNDATION

Python 3.11.6 Released
CPYTHON DEV BLOG

Flask 3.0.0 Released
PALLETSPROJECTS.COM

Django Security Releases Issued: 4.2.6, 4.1.12, and 3.2.22
DJANGO SOFTWARE FOUNDATION


Discussions


Tips for Solopreneur?
HACKER NEWS


Python Jobs


Senior Full Stack Developer
MAAX.AI 📍 VANCOUVER, BC, CANADA

More Python Jobs >>>


Articles & Tutorials


Type Hints: Passing Any for Unused Test Parameters
When you create a function to match an interface, it often needs to accept parameters that it doesn’t use. Once you introduce type hints, testing such functions can become a little irksome as Mypy requires all arguments to have the correct types. This article covers a technique to avoid that work.
ADAM JOHNSON

Python Basics: Reading and Writing Files
In this video course, you’ll learn how to move data back and forth between your Python programs and external software by reading and writing files. You’ll practice reading and writing data stored in the CSV file format, one of the most widely supported file formats for transferring tabular data.
REAL PYTHON course

Python Type Hints: pyastgrep Case Study
Previously, Luke wrote an article about what was involved in adding Type Hints to parsy. This follow-on article tackles the effort on a project with different challenges: pyastgrep.
LUKE PLANT

Python 3.12.0 From a Supply Chain Security Perspective
Seth is the Security Developer-in-Residence at the Python Software Foundation and this article is part of his on-going effort to document and improve the release process and tools. Associated HN discussion.
SETH LARSON

Hallucination Detection for Abstractive Summaries
Abstractive summary is an AI task that rephrases and condenses text content into a summary. This article is a deep dive into how to ensure correctness and the math involved in ensuring fluency, coherence, relevance, and consistency.
EUGENE YAN

Data-Driven News Discourse Analysis With Python
This tutorial shows you how to do discourse analysis on news using Python through The Guardian’s API. You’ll see how to access content across years and perform topic analysis with sentence embedding.
KARLIS KANDERS

5 Ways to Measure Execution Time in Python
There are several ways to measure the passing of time in Python, especially when determining the performance of your code. Read on to learn five functions from the time module and how to use them.
JASON BROWNLEE

Python-Specific Design Patterns
This is a third article in a series on design patterns in Python, with this one talking about a variation on singletons, a pattern that uses dynamic function binding, and sentinels.
DIMITRIJE STAMENIC

Mastering Integration Testing With FastAPI
This article shows you how to use MongoMock and MockS3 to power your integration tests on a FastAPI based project.
ALEX JACOBS

Using GeoDjango and PostGIS in Django
This article shows how to use GeoDjango and PostGIS to work with geospatial data in Postgres.
ADEYINKA ADEGBENRO • Shared by Manuel Weiss


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 →

perspective: Visualization Component for Large Datasets
GITHUB.COM/FINOS

shshsh: A Bridge Between Python and Shell
GITHUB.COM/ZQQQQZ2000

CardStock: Cross-Platform GUI Building Tool
GITHUB.COM/BENJIE-GIT • Shared by Mike McLeod

reverse_argparse: Tell the User What They Ran
GITHUB.COM/SANDIALABS • Shared by Jason M. Gates

leaptable: Manage LLM-powered Agents on Tabular Data
GITHUB.COM/PETERWNJENGA

📆🐍 Upcoming Python Events


PyHEP 2023
October 9 to October 13, 2023

Weekly Real Python Office Hours Q&A (Virtual)
October 11, 2023

Python Atlanta
October 12 to October 13, 2023

PyConnect Panama 2023
October 13 to October 15, 2023

Django Girls Aba
October 13 to October 14, 2023

DjangoCon US 2023
October 16 to October 21, 2023

PyCon MEA & Data Science 2023
October 16 to October 20, 2023

EduPy 2023
October 21 to October 22, 2023
Happy Pythoning!
Copyright © 2023 PyCoder’s Weekly, All rights reserved.