Issue #688

Checking Dicts, DuckDB, Reading shelve.py, and More

July 1, 2025

Checking Dicts, DuckDB, Reading shelve.py, and More
#688 – JULY 1, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Statically Checking Python Dicts for Completeness
To keep code concerns separate you might have two data structures (like an Enum and a dict) that are supposed to change in sequence: adding a value to the Enum requires you to add a similar value in the dict. This is common when separating business logic from UI code. This article shows you ways of making sure the corresponding changes happen together.
LUKE PLANT

Starting With DuckDB and Python
Learn how to use DuckDB in Python to query large datasets with SQL or its Python API, handle files like Parquet or CSV, and integrate with pandas or Polars.
REAL PYTHON course

From AI Hype to Durable Reality: Why Agentic Flows Need Distributed-Systems Discipline
If you’ve explored building agentic AI, you’ve likely discovered that the glamorous part of AI ends quickly; operationalizing for production is where projects live or die. Explore these seven lessons from our team on how to transform agentic flows into reliable powerhouses β†’
TEMPORALsponsor

Code Reading: The Python Module shelve.py
Reading code is a great way to learn to write better code. This post walks you through the standard library shelve module as code-reading practice.
BEYOND DREAMSCAPE

lxml 6.0.0 Released
GITHUB.COM/LXML

PEP 751: A File Format to Record Python Dependencies for Installation Reproducibility (Final)
PYTHON.ORG

PEP 685: Comparison of Extra Names for Optional Distribution Dependencies (Final)
PYTHON.ORG

Videos From DjangoCon EU 2025 Available
DJANGOTV.COM


Python Jobs


Sr. Software Developer (Python, Healthcare)
PRENOSIS πŸ“ USA

More Python Jobs >>>


Articles & Tutorials


New Python Client Library for Google Data Commons
Google Data Commons announced the general availability of its new Python client library for the Data Commons. The goal of the library is to enhance how students, researchers, analysts, and data scientists access and leverage Data Commons.
KARA MOSCOE β€’ Shared by Ariana Gaspar

From Notebooks to Production Data Science Systems
Talk Python To Me interviews Catherine Nelson and they discuss techniques and tools to move your data science from an experimental notebook to full production workflows.
KENNEDY & NELSON podcast

Deploy Your Streamlit, Dash, Bokeh Apps all in one Place
Posit Connect Cloud is a cloud environment for showcasing your Python apps, no matter the framework.
POSITsponsor

Python enumerate(): Simplify Loops That Need Counters
Learn how to simplify your loops with Python’s enumerate(). This tutorial shows you how to pair items with their index cleanly and effectively using real-world examples.
REAL PYTHON

Your Guide to the Python print() Function
Learn how Python’s print() function works, avoid common pitfalls, and explore powerful alternatives and hidden features that can improve your code.
REAL PYTHON

Quiz: The Python print() Function
REAL PYTHON

Building a Multi-Tenant App With Django
This tutorial explains how to implement a multi-tenant web app in Django using the django-tenants and django-tenant-users packages.
NIK TOMAZIC β€’ Shared by Michael Herman

Flask or Django: Which One Best Fits Your Python Project?
Explore the key factors to take into account when deciding between Flask or Django for your Python app.
FEDERICO TROTTA β€’ Shared by AppSignal

Fun With uv and PEP 723
How to use uv and the Python inline script metadata proposal PEP 723 to run scripts seamlessly.
DEEPAK JOIS

How I’ve Run Major Projects
If you want to progress to being a technical lead, you need to understand how to manage projects. This post talks about the skills you need, and how often times it is mostly about being organized.
BEN KUHN

How to Think About Time in Programming
Time is a complex thing to code. This article is a very deep dive, covering absolute measurement, civil time, modern time keeping, the mess that are timezones, and much more.
SHAN RAUF


Projects & Code


POC Implementation of Progressive JSON
GITHUB.COM/MACIEYNG β€’ Shared by Maciej

curlify: Convert Python Requests to Curl Command
GITHUB.COM/OFW

throttled-py: Rate Limiting Library
GITHUB.COM/ZHUOZHUOCRAYON β€’ Shared by xiaoxincai

LibrePythonista: Use Python in Your Libreoffice Spreadsheets
LIBREOFFICE.ORG

tyro: CLI Interfaces From Types
GITHUB.COM/BRENTYI

πŸ“†πŸ Upcoming Python Events


πŸ‡¨πŸ‡¦
July 1, 2025

Weekly Real Python Office Hours Q&A (Virtual)
July 2, 2025

Python New Zealand: Python Learners’ Co-Op
July 3, 2025

Canberra Python Meetup
July 3, 2025

Sydney Python User Group (SyPy)
July 3, 2025

PyCon Colombia 2025
July 4 to July 7, 2025

Python Norte 2025
July 4 to July 7, 2025

SciPy 2025
July 7 to July 14, 2025

Python-Powered Cloud on July 22
July 22, 2025
Happy Pythoning!
Copyright Β© 2025 PyCoder’s Weekly, All rights reserved.