Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Command Line Automation in Python

via DataCamp

Overview

Learn to automate many common file system tasks and be able to manage and communicate with processes.

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.

Syllabus

IPython shell commands
-Learn 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.

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.

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.

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.

Taught by

Noah Gift

Reviews

Start your review of Command Line Automation in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.