Practical introduction to Python's subprocess module

Pubblicato il: 21 ottobre 2022
sul canale di: 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...  


In questa pagina del sito puoi guardare il video online Practical introduction to Python's subprocess module della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Samuel Chan 21 ottobre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,557 volte e gli è piaciuto 174 spettatori. Buona visione!