Trey Hunner

I’ve been writing and teaching Python for more than a decade, through articles, talks, conference tutorials, screencasts, and the tools I build for learners.

Talks

Title slide for pathlib: why and how to use it at PyCon US 2026. pathlib: why and how to use it PyCon US 2026. LWN.net wrote about this.
Title slide for Python Oddities Explained at PyCon US 2022. Python Oddities Explained PyCon US 2022. If it looks like a bug, it might just be a misunderstanding.
Trey on stage next to a slide showing a Python REPL session that builds a matrix with [[0] * 3] * 3. Variables and objects in Python: it’s pointers all the way down PyCascades 2026.

Projects

The Python Morsels home page. Python Morsels My Python skill-building platform, with exercises, screencasts, and articles.
A world map with five red pins, from the Whereabouts Daily challenge. Whereabouts.Earth Teaches you where every country is on a map, a few at a time, using spaced repetition.
Daily Recall, a spaced repetition system for Python programmers. Daily Recall Adds spaced repetition to Python Morsels.

Tools for Python programmers

The f-string format guesser, showing that $1,234.50 comes from the format spec ,.2f. f-string format guesser Type the output you want and get the format spec that makes it.
The undataclass tool, with a dataclass on top and the equivalent regular class below it. undataclass Turns a dataclass into the regular class it stands for.
The Since When tool, listing the Python version that added each feature in a code sample. Since when? Shows which Python version added each feature in your code.

Open source

The EditorConfig logo.
EditorConfig Keeps coding styles consistent across editors, and it’s built into GitHub, GitLab, JetBrains IDEs, Vim, and Xcode, among others. I co-created it with Hong Xu, and it has grown well beyond the two of us.
django-simple-history Stores a history of changes to Django models. I revived it in 2013 after it had been abandoned, and it’s now maintained by Django Commons.
A terminal showing a large countdown timer.
countdown A full-screen countdown timer for your terminal, handy for presentations and teaching.
dramatic Makes Python display its output one character at a time, as if it’s being typed.

There’s more on my blog, my talks page, and my projects page.