Practical introduction to Python's subprocess module

Veröffentlicht am: 21 Oktober 2022
auf dem Kanal: Samuel Chan
8,557
174

We build a CLI tool utilizing Python's subprocess that, in one command, creates a directory to host our code, initialize git in it, creates the README and gitignore file, write content into the gitignore file, creates a virtual environment, start a task in our todo manager. So much value for personal / developer productivity, eh?

If you'd like to build beautiful CLI tools, watch my playlist:    • Building data tools with JUST python (data...  

All videos in that playlist use Python's standard library with no / minimal dependencies. We walk through the process of building a CLI productivity tool on top of TaskWarrior. To learn more about TaskWarrior, watch my introduction video:
   • Taskwarrior: Terminal-based task managemen...  

Timestamps for the impatient:
00:00 Intro: Automating our developer workflow
04:06 Understanding processes (w/ top and htop)
06:24 Python's subprocess module
16:18 Creating our project starter program with subprocess!

Learn how to use webbrowser instead of subprocess for browser-related automation / scripts in Python:
   • Automated research: Extracting companies f...  
Alternatively, consider Selenium for web scraping or other browser automation task:    • Web (Scraping) Automation using Selenium i...  


Auf dieser Seite können Sie das Online-Video Practical introduction to Python's subprocess module mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Samuel Chan 21 Oktober 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 8,557 Mal angesehen und es wurde von 174 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!