Python 3 Scripting for System Administrators

By Keith Thompson

Develop the skills you need to write effective, powerful scripts and create command line tools using Python 3.

9 hours
  • 54 Lessons
  • 4 Course Quizzes

About the course

In this course, you will develop the skills you need to write effective and powerful scripts and tools using Python 3. We will go through the necessary features of the Python language to be able to leverage its additional benefits in writing scripts and creating command line tools (data types, loops, conditionals, functions, error handling, and more). Beyond the language itself, you will go through the full development process including project setup, planning, and automated testing to build two different command line tools.

  • Chapter 1 4 Lessons Getting Started 10:01

    An Important Note About A Cloud Guru and Linux Academy Courses

    1:19

    Course Introduction

    2:43

    About the Course Author

    0:57

    Course Features and Tools

    5:02
  • Chapter 2 3 Lessons Environment Setup 29:05

    Setting up a Cloud Server Development Environment

    12:09

    Installing Python 3 on CentOS 7

    8:28

    (Optional) Installing Python 3 on Debian/Ubuntu

    8:28
  • Chapter 3 2 Lessons Introducing Python 15:05

    History & Benefits of Python

    7:10

    What's the Deal with Python 3?

    7:55
  • Chapter 4 3 Lessons Running Python 15:14

    Introducing the REPL for Rapid Experimentation

    3:14

    Creating and Running Python Scripts

    8:10

    Using Comments

    3:50
  • Chapter 5 7 Lessons Common Data Types 58:36

    Strings

    12:01

    Numbers (int and float)

    7:21

    Booleans and None

    4:05

    Working with Variables

    5:54

    Lists

    13:19

    Tuples

    5:39

    Dictionaries (dicts)

    10:17
  • Chapter 6 5 Lessons Control Flow 1:13:47

    Conditionals and Comparisons

    12:53

    The 'while' Loop

    9:22

    The 'for' Loop

    10:53

    Logic Operations

    10:39

    Python 3 Scripting for System Administrators Python Basics

    30:00 Quiz
  • Chapter 7 6 Lessons Basic Scripting 1:08:36

    Reading User Input

    6:57

    Function Basics

    6:39

    Using Functions in Scripts

    16:34

    Using Standard Library Packages

    12:39

    Working with Environment Variables

    6:12

    Interacting with Files

    19:35
  • Chapter 8 8 Lessons Intermediate Scripting 1:18:08

    Parsing Command Line Parameters

    5:40

    Robust CLIs with 'argparse' - Part 1

    13:57

    Robust CLIs with 'argparse' - Part 2

    7:08

    Handling Errors with try/except/else/finally

    9:13

    Exit Statuses

    3:12

    Execute Shell Commands from Python

    12:47

    Advanced Iteration with List Comprehensions

    11:11

    Python 3 Scripting for System Administrators Scripting and I/O

    15:00 Quiz
  • Chapter 9 3 Lessons Useful Standard Library Packages 44:50

    random & json

    11:54

    shutil & glob

    16:57

    re & math

    15:59
  • Chapter 10 4 Lessons Using Pip and Virtualenv 43:44

    Installing Third-Party Packages Using 'pip'

    9:03

    Virtualenv

    5:07

    Using Third-Party Packages in Your Scripts

    14:34

    Python 3 Scripting for System Administrators Python Packages and Dependencies

    15:00 Quiz
  • Chapter 11 3 Lessons Planning & Project Structure 37:25

    Examining the Problem & Prep Work

    8:04

    Planning Through Documentation

    15:19

    Initial Project Layout

    14:02
  • Chapter 12 6 Lessons Implementing Features with Test Driven Development 1:22:46

    Introduction to TDD and First Tests

    14:23

    Implementing CLI Guided By Tests

    22:54

    Introduction to Mocking in Tests

    12:04

    Implementing PostgreSQL Interaction

    11:27

    Implementing Local File Storage

    8:54

    Implementing AWS Interaction

    13:04
  • Chapter 13 3 Lessons Integrating Features and Distributing the Project 40:23

    Wiring the Units Together

    18:38

    Building and Sharing a Wheel Distribution

    6:45

    Python 3 Scripting for System Administrators Python Projects Testing Distribution

    15:00 Quiz
  • Chapter 14 1 Lesson Final Steps 1:13

    What's Next?

    1:13

Practice alongside courses in Cloud Playground

What is Cloud Playground? Cloud Playground lets you build skills in real-world AWS, Google Cloud, and Azure environments. Spin up risk-free Sandboxes, Servers and Terminals and follow along with courses, test a new idea or prepare for exams.

Get Started
Who’s going to be learning?
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!