Volker Bernhard Duetsch has completed
Command Line Automation in Python
Start course For Free4 hours
4,250 XP
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.
For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more- 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
For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and moreCollaborators
Join over 13 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.