Featured resource
Tech Upskilling Playbook 2025
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Learn more

Introduction to Python for DevOps/Scripting

Course Summary

This course introduces participants to practical Python scripting techniques for automating routine tasks in DevOps and IT operations. Through hands-on labs and real-world examples, participants will gain confidence in writing, executing, and maintaining scripts for managing files, processes, systems, logs, and cloud infrastructure. The course emphasizes productivity, reusability, and integration with tools commonly used in DevOps environments.

Prerequisites:

In order to succeed in this course, you will need:

  • Basic familiarity with scripting or system administration tasks
  • Comfort using a command-line interface
  • Experience working with files and configurations (e.g., shell, batch, PowerShell, or YAML)

No prior experience with Python is required.
 

Purpose
Provide DevOps engineers the Python skills they need for scripting, automation, and to enhance productivity.
Audience
Non-programmers who want to learn and use Python for scripting and automation
Role
DevOps Engineer | System Administrator
Skill Level
Introduction
Style
Lecture | Hands-on Activities | Labs
Duration
3 Days
Related Technologies
Python | DevOps | Scripting

 

Learning Objectives
  • Set up and manage Python environments and scripting tools
  • Write Python scripts to automate system administration and DevOps tasks
  • Work with files, logs, processes, and system commands using Python
  • Parse and manipulate structured data like JSON, YAML, and CSV
  • Schedule and monitor automated tasks

What You'll Learn:

In the Introduction to Python for DevOps/Scripting course, you'll learn:

Python Fundamentals for Scripting

  • Installing Python and managing virtual environments
  • Using command-line tools and editors
  • Core data types: strings, integers, lists, dictionaries, booleans
  • Control flow: if-else logic, loops, try-except error handling
  • Functions: defining reusable logic
  • Working with files: reading/writing to .txt, .csv, .json, .yaml
  • Using the os, pathlib, and shutil modules

Scripting for System Administration

  • Automating repetitive tasks: renaming files, moving directories, etc.
  • Working with subprocesses and shell commands (subprocess, os.system)
  • Parsing logs and filtering system output
  • Handling environment variables and config files
  • Writing CLI tools with argparse

Infrastructure and Automation Tools

  • Reading and writing YAML for infrastructure configuration
  • Interacting with REST APIs using requests
  • Scripting basic cloud operations
  • Automating reports or alerts

Task Scheduling and Monitoring

  • Automating periodic jobs with cron or Windows Task Scheduler
  • Building monitoring scripts with logging and notifications
  • Error handling and alerting in scripts
  • Packaging scripts and sharing for team use

Dive in and learn more

When transforming your workforce, it's important to have expert advice and tailored solutions. We can help. Tell us your unique needs and we'll explore ways to address them.

Let's chat

By filling out this form and clicking submit, you acknowledge our privacy policy.