Python subprocess

Python subprocess is the recommended modules for running external programs and scripts from Python. subprocess.run is good for most applications. Too often, I see the most general subprocess.Popen used where subprocess.run would be better. Because subprocess.Popen is so general and more complicated to use, I see subprocess.Popen used incorrectly for simple applications where subprocess.run or subprocess.check_output is more appropriate.

2024

2023

2021

2020

2019

2018

2017