Command Line Automation in Python
Learn to automate many common file system tasks and be able to manage and communicate with processes.
Start Course for Free4 Hours16 Videos51 Exercises6,539 Learners
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Course Description
There are certain skills that will stay with you your entire life. One of those skills is learning to automate things. There is a motto for automation that gets straight to the point, "If it isn't automated...it's broken". In this course, you learn to adopt this mindset. In one of the many examples, you will create automation code that will traverse a filesystem, find files that match a pattern, and then detect which files are duplicates. Following the course, you will be able to automate many common file system tasks and be able to manage and communicate with Unix processes.
- 1
IPython shell commands
FreeLearn to use powerful IPython shell commands that will enhance your day to day coding. These commands include SList objects that can sort and filter shell output all from the comfort of the IPython terminal.
Learn the Python interpreter50 xpExecute Python commands100 xpExecute IPython shell commands100 xpCapture IPython Shell output50 xpUsing Bash Magic command100 xpUsing the ! operator in IPython100 xpAutomate with SList50 xpUse SList fields to parse shell output100 xpFind Python files using SLIST grep100 xpUsing SList to grep100 xp - 2
Shell commands with subprocess
Learn to harness Unix processes with the subprocess module. By combining the output and input of scripts, processes, and applications, you'll create pipelines to automate complex tasks.
Execute shell commands in subprocess50 xpPermission check100 xpReading a creepy AI poem100 xpRunning processes script100 xpCapture output of shell commands50 xpUsing subprocess Popen100 xpWaiting for processes100 xpDetecting duplicate files with subprocess100 xpSending input to processes50 xpCounting files in a directory tree100 xpRunning a health check100 xpPassing arguments safely to shell commands50 xpSafely find directories100 xpDirectory summarizer100 xp - 3
Walking the file system
Use the pathlib module to perform file system operations in Python. You'll learn to write tools to walk the filesystem, write files and archive directories all with a few lines of code.
Dealing with file systems50 xpDouble trouble100 xpY'all got some renaming to do100 xpSweet pickle100 xpFind files matching a pattern50 xpRogue founder code100 xpIs this pattern True?100 xpHigh-level file and directory operations50 xpGoons over my shammy100 xpArchive users100 xpUsing pathlib50 xpDoes it even exist?100 xpFile writing one-liner100 xp - 4
Command line functions
Learn how to use functions to automate complex workflows. You'll use the click command line tool module to create sophisticated command line tools in a few lines of code.
Using functions for automation50 xpFunky clusters100 xpHello decorator100 xpDebugging decorator100 xpUnderstand script input50 xpUsing python command-line tools50 xpBackwards day100 xpIntroduction to Click50 xpSimple yet true100 xpRunning a click application from subprocess100 xpUsing click to write command line tools50 xpGot a ticket to write100 xpInvoking command line tests100 xpCourse Summary50 xp
Collaborators


Noah Gift
See MoreLecturer and consultant in data science
Noah Gift is a lecturer and consultant at UC Davis Graduate School of Management, Duke MIDS, UC Berkeley and Northwestern. He teaches and designs graduate machine learning, AI, Data Science courses and consults on Machine Learning and Cloud Architecture. He has published over 100 technical publications including multiple books on subjects ranging from Cloud Machine Learning to DevOps. Gift received an MBA from UC Davis, a M.S. in Computer Information Systems from Cal State Los Angeles, and a B.S. in Nutritional Science from Cal Poly San Luis Obispo. He is the author of Python for DevOps, Pragmatic AI, Cloud Computing for Data Analysis, and Testing in Python.
What do other learners have to say?
FAQs
Join over 11 million learners and start Command Line Automation in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.