Using the Python subprocess Module: Gettting Started & Using subprocess to Run Python

Published: 08 May 2025
on channel: Real Python
3,526
97

This is a preview of the video course, "Using the Python subprocess Module". Python’s subprocess module allows you to run shell commands and manage external processes directly from your Python code. By using subprocess, you can execute shell commands like ls or dir, launch applications, and handle both input and output streams. This module provides tools for error handling and process communication, making it a flexible choice for integrating command-line operations into your Python projects.

This is a portion of the complete course, which you can find here:
https://realpython.com/courses/python...

The rest of the course covers:
Using subprocess to Run Any App
Understanding the CompletedProcess Object
Exploring Exceptions
Raising a TimeoutExpired Error
Communicating With Standard IO Streams
Decoding of Standard Streams
Introducing Pipes
Simulating Pipes With run()
Creating Pipes With Popen


On this page of the site you can watch the video online Using the Python subprocess Module: Gettting Started & Using subprocess to Run Python with a duration of hours minute second in good quality, which was uploaded by the user Real Python 08 May 2025, share the link with friends and acquaintances, this video has already been watched 3,526 times on youtube and it was liked by 97 viewers. Enjoy your viewing!