01Chapter 1: Why use subprocess instead of os.systemThis chapter assumes basic Python syntax, exceptions, and terminal use. You should know that a process communicates through standard input, standard output, and standard error.1 min read
02Chapter 2: Checking exit codes and raising on failureAssume you know basic Python exceptions, can use a terminal, and understand standard input, standard output, standard error, text, and bytes. This chapter uses subprocess.run, which starts a program, waits for it, and returns a CompletedProcess.1 min read
03Chapter 3: Avoiding shell injectionAssume you know basic Python exceptions, terminal commands, standard input and output, and the difference between text and bytes. This chapter focuses on safe process control and on cases where subprocess.run() is not enough.2 min read