Hot: pathlib, Not: string paths (Josh Schneider) - PyTexas 2025
Have you seen pathlib? If not, once I show you, you will never go back to string paths and os.path ever again! pathlib turns paths into path objects, which have attributes and methods that cover a number of operations. In this talk, we will: - Talk about how to create Path objects, and how this differs on Windows vs Mac/Linux - Talk about the many properties of pure paths - Talk about folder operations from Path objects, such as creating directory structures and recursive globbing. - Talk about file operations, made simpler with Path objects, such as reading contents, getting properties like file size, and deleting. Stop messing with string paths and get with pathlib! Speaker: Josh Schneider Josh Schneider is an Application Security Engineer, former Test Automation Architect and Engineer, and Customer Support agent extraordinaire. Josh is also a big nerd with 2 kids, and a goofy sense of humor. View the conference site https://pytexas.org/2025 Subscribe to our newsletter https://pytexas.org/newsletter
Download
0 formatsNo download links available.