filmov
tv
A Deep Dive Into Pathlib And The Magic Behind It
Показать описание
If you’re not yet using pathlib for dealing with files and directories, you’re missing out. This video takes a close look at the pathlib library in Python and explains some of the magic that goes into it, as well as how you can use it in your own code.
🎓 Courses:
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
👀 Code reviewers:
- Yoriz
- Ryan Laursen
- James Dooley
- Dale Hagglund
🔖 Chapters:
0:00 Intro
0:55 Why not simply use strings
1:10 Issues with strings
2:20 Basic usage of pathlib
4:02 Back slashes and forward slashes
5:13 Reading file from a path
6:03 Resolving paths
6:41 Useful path properties
8:15 Checking whether path is a file or a directory
8:43 Creating and deleting files and directories
10:43 Reading paths from configuration files
11:13 Pathlib and Pydantic
12:31 Operator overloading in Python
16:34 Outro
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
🎓 Courses:
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
👀 Code reviewers:
- Yoriz
- Ryan Laursen
- James Dooley
- Dale Hagglund
🔖 Chapters:
0:00 Intro
0:55 Why not simply use strings
1:10 Issues with strings
2:20 Basic usage of pathlib
4:02 Back slashes and forward slashes
5:13 Reading file from a path
6:03 Resolving paths
6:41 Useful path properties
8:15 Checking whether path is a file or a directory
8:43 Creating and deleting files and directories
10:43 Reading paths from configuration files
11:13 Pathlib and Pydantic
12:31 Operator overloading in Python
16:34 Outro
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
Комментарии