subprocess
Stdlib — ConcurrencyPython 2.4+Intermediate
Spawn and manage child processes: run(), Popen, pipes
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.4+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import subprocess print(f"Module: subprocess") print(f"Contents: {dir(subprocess)[:10]}")
The subprocess module is part of Python's standard library. Spawn and manage child processes: run(), Popen, pipes.
Try in PlaygroundTags
stdlibconcurrencyprocessshellsystem