Загрузка...

Practical introduction to Python's subprocess module

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: https://www.youtube.com/playlist?list=PLXsFtK46HZxXIVE4tRjwMjwKFVaQSdT5W 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: https://youtu.be/cDYIes9avW4 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: https://youtu.be/fR03-9vih2I Alternatively, consider Selenium for web scraping or other browser automation task: https://youtu.be/fGBp4Sv4THA

Видео Practical introduction to Python's subprocess module автора Питоновый анализ социальных сетей
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки