Skip to main content

21 docs tagged with "file-handling"

View all tags

CSV handling - reading and writing tabular data

Master Python's csv module at engineering depth - how csv.reader, csv.writer, csv.DictReader, and csv.DictWriter work, dialects and quoting modes, encoding issues with Excel BOM, sniffing unknown formats, streaming large files, and when to reach for pandas instead.

Environment variables - configuring Python applications at runtime

Master environment variables at engineering depth - how OS-level key-value pairs are inherited by child processes, how to read and set them with os.environ, the 12-factor app pattern, python-dotenv for development, type coercion pitfalls, and production-grade configuration with Pydantic Settings.

pathlib - Modern Path Manipulation in Python

Master pathlib at engineering depth - learn why Path objects replace os.path strings, how the / operator composes paths, all path attributes and methods, globbing for batch processing, and cross-platform path handling with PurePath.

The os module - system calls and process interaction

Master Python's os module at engineering depth - how it wraps POSIX and Win32 system calls, when to use os vs pathlib vs shutil, directory traversal with os.walk, file permissions, process IDs, environment variables, and why you should never use os.system.