Learn os
Portable access to the operating system: files, directories, env and processes
The os module is Python's standard interface to the operating system: the environment, the current directory, files and directories, permissions, file descriptors and processes. It works the same way on Linux, macOS and Windows where it can, and exposes the platform-specific calls where it can't. Every script that touches the file system or its environment ends up using it.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know