Open menu

Python Scripting for System Engineers

Audience

This course is perfect for System Engineers and System Administrators new to Python, who would like an introduction to the language and how it can be used to script administrative tasks.

Prerequisites

You should have experience managing Linux systems.

Familiarity with another object-oriented language would be an advantage.

The course assumes no prior knowledge of Python.

Duration

3 days.

Course Objectives

 Python is a powerful and popular object-oriented scripting language. This course provides a comprehensive introduction to the core syntax and functions provided by Python, with a particular focushow it can be used to script administrative tasks, enabling those who manage Linux systems to do so more efficiently. The course concludes with an overview of Fabric; a high-level Python library that facilitates systems administration through remote execution of shell commands on multiple hosts over SSH, returning useful Python objects.

What you'll learn:

  • Writing clean Python code
  • Working with functions and objects
  • Working with text and regular expressions
  • Handing exceptions
  • Manipulating files
  • Working with Fabric

Course Content

Getting Started with Python
Overview of Python
Installing Python
Getting ready to develop

Python Language Fundamentals
Overview of core Python syntax rules
Simple data types and variables
Object essentials
Flow control

Working with Functions
The benefit of functions
Writing and calling functions
Passing parameters

Exception Handling
Overview of exceptions in Python
Handling exceptions
Raising exceptions
Design issues

Collections
Overview of collections in Python
Lists
Tuples
Sets
Dictionaries

Strings and Regular Expressions
Overview of strings in Python
Basic string manipulation
Introduction to regular expressions
Using regular expressions in Python

Classes and Iterators
Defining classes
Instance variables
Iterators
Creating and initializing objects

File Handling
Overview of file handling in Python
Reading and writing text files
Working with binary files
Streaming and serializing Python objects

Fabric Overview
Remote execution
Connections
Running commands
Transferring files
Super-user privileges

Verhoef Training Ltd.

11 Kingsmead Square
Bath, BA1 2AB
United Kingdom

Tel: +44(0)1225 339705

Email: info@verhoef-training.co.uk

Become a Trainer

Ever thought about using your skills to help others?

Call us to find out about how you can teach for Verhoef.

Tel: +44(0)1225 339705