Python 2.7 Scripting for System Administrators

By Keith Thompson

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

7 hours
  • 49 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. 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 6 Lessons Introduction 26:11

    An Important Note About A Cloud Guru and Linux Academy Courses

    1:19

    Continue If You're Interested in Python 2

    0:28

    About the Course Author

    1:59

    Course Tools

    7:19

    Syllabus

    6:43

    Setting Up a Cloud Server Development Environment

    8:23
  • Chapter 2 2 Lessons Introducing Python 12:00

    History and Benefits of Python

    6:21

    What's the Deal with Python 3?

    5:39
  • Chapter 3 12 Lessons Just Enough Python 1:33:21

    Introducing the REPL for Rapid Experimentation

    1:53

    Creating and Running Python Scripts

    2:13

    Using Comments in Python

    1:51

    Data Types - Strings and Numbers

    9:14

    Data Types - Booleans and None

    2:34

    Working with Variables

    2:57

    Lists and Tuples

    13:08

    Dictionaries (dicts)

    6:59

    Control Flow - Conditionals and Comparisons

    7:22

    Control Flow - Loops

    8:31

    Control Flow - Logic Operations

    6:39

    Python 2.7 Scripting For System Administrators Python Basics

    30:00 Quiz
  • Chapter 4 14 Lessons Scripting with Python 2:27:43

    Reading User Input

    4:53

    Encapsulating Behavior Using Functions

    12:47

    Using Standard Library Packages

    8:05

    Working with Environment Variables

    4:52

    Interacting with Files

    7:14

    Parsing Command Line Parameters

    15:59

    Handling Errors with try/except/else/finally

    10:12

    Execute Shell Commands from Within Python

    8:21

    Exit Statuses

    2:26

    Advanced Iteration with List Comprehensions

    7:48

    Standard Library: random & json

    10:17

    Standard Library: shutil & glob

    12:26

    Standard Library: re & math

    12:23

    Python 2.7 Scripting For System Administrators Python Scripting and IO

    30:00 Quiz
  • Chapter 5 5 Lessons Third Party Packages 38:29

    Installing 'pip' to Manage Python Packages

    3:45

    Installing Third-Party Packages Using 'pip'

    7:31

    Virtualenv

    4:38

    Using Third-Party Code in Your Scripts

    7:35

    Python 2.7 Scripting For System Administrators Python Packages and Dependencies

    15:00 Quiz
  • Chapter 6 13 Lessons Creating a Larger Scripting Project 2:19:17

    Examining the Problem and Planning

    8:53

    Structuring the Project

    13:28

    Test Driving the Command Line Parser (Part 1)

    20:32

    Test Driving the Command Line Parser (Part 2)

    9:38

    Implementing PostgreSQL Interaction

    15:40

    Implementing Local File Storage

    4:58

    Implementing S3 Storage

    8:59

    Wiring the Units Together

    15:01

    Building and Sharing a Wheel Distribution

    6:44

    Installing Python 3 on CentOS 7

    3:41

    (Optional) Installing Python 3 on Debian

    4:13

    Testing Against Python 2 and Python 3

    12:30

    Scripting For System Administrators Python Projects Testing and Distribution

    15:00 Quiz
  • Chapter 7 1 Lesson Conclusion 1:24

    Thank You and Next Steps

    1:24

What are Hands-on Labs

What's the difference between theoretical knowledge and real skills? Practical real-world experience. That's where Hands-on Labs come in! Hands-on Labs are guided, interactive experiences that help you learn and practice real-world scenarios in real cloud environments. Hands-on Labs are seamlessly integrated in courses, so you can learn by doing.

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?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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