Python 2.7 Scripting For System Administrators

Training Architect
course instructor image
Keith Thompson
A software craftsman with love for all things Linux. Whether it's writing large scale web applications, automating deployment pipelines, or merely creating scripts to do the tedious work, Keith is always looking to learn and improve himself as an engineer. This love of learning and growth manifested into an insatiable drive to teach and spread his love of technology with others.

Introduction

Introducing Python

Just Enough Python

Exercise: Creating and Displaying Variables

00:30:00

Exercise: Working with If/Else

00:30:00

Exercise: Iterating Over Lists

00:30:00

Quiz: Python Basics

Scripting with Python

Exercise: Creating and Using Functions

00:30:00

Exercise: Using the 'os' Package and Environment Variables

00:30:00

Exercise: Creating Files Based on User Input

00:30:00

Exercise: Handling Errors When Files Don't Exist

00:30:00

Exercise: Interacting with External Commands

00:30:00

Exercise: Setting Exit Status on Error

00:30:00

Quiz: Python Scripting and IO

Third Party Packages

Exercise: Installing Third-Party Packages

00:30:00

Exercise: Utilizing Third-Party Packages

00:30:00

Quiz: Python Packages and Dependencies

Creating a Larger Scripting Project

Exercise: Creating a Python Project

00:30:00

Exercise: Test Drive CLI Parser

00:30:00

Exercise: Implementing User Management

02:00:00

Exercise: JSON Parsing and Exporting

01:30:00

Exercise: Creating the Console Script

00:30:00

Exercise: Building a Wheel Distribution

00:30:00

Quiz: Python Projects, Testing, and Distribution

Conclusion

Details

In this course, you will develop the skills that 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 set up, planning, and automated testing to build two different command line tools.

Study Guides

Instructor Deck

Community

Looking For Team Training?

Learn More