Hello! This page includes resources related to my PyBeach 2025 talk, pathlib.Path: Why and how to use it.
Recording of this talk
Watch the recording of this talk below or on YouTube.
Resources on pathlib
“Python's pathlib module” by Trey Hunner
A comprehensive article explaining how to use pathlib with cheat sheet tables.
pathlib documentation
The official Python documentation for the pathlib module.
“Hot: pathlib, Not: string paths” by Josh Schneider
Josh mentions some facts about pathlib.Path that I didn't cover in this talk
“PEP 519 – Adding a file system path protocol”
The PEP that introduced the os.PathLike protocol, enabling pathlib.Path objects to work with built-in functions.
“Why you should be using pathlib” by Trey Hunner
An earlier article I wrote making the case for adopting pathlib in your Python code.
“No really, pathlib is great” by Trey Hunner
A follow up to that earlier article.
More of my talks
“Variables and objects in Python” at North Bay Python 2025
I explain the nature of Python's variables and data structures.
“Python Oddities Explained” at PyCon US 2022
I discuss some of my favorite Python oddities, as a way of deepening our skills by breaking things.
“Comprehensible Comprehensions” at PyCon US 2020
An talk I gave during the online-only PyCon US 2020 on why I love comprehensions and how I make them readable.
My projects ✏️
- Python Morsels: Python skill-building exercises
- Team Training: Python workshops for companies
- My blog: Articles on Python and programming
- My code: Open source Python projects
Weekly Python tips 💌
I share a Python tip via email every Wednesday morning. 🐍 💡