Python 3 Scripting for System Administrators

Python 3 Scripting for System Administrators

English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 6h 07m | 1.74 GB

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

Table of Contents

Introduction
1 About the Course Author
2 Course Tools
3 Syllabus
4 Setting Up a Cloud Server Development Environment

Introducing Python
5 History and Benefits of Python
6 Whats the Deal with Python 3

Just Enough Python
7 Introducing the REPL for Rapid Experimentation
8 Control Flow – Loops
9 Control Flow – Logic Operations
10 Creating and Running Python Scripts
11 Using Comments in Python
12 Data Types – Strings and Numbers
13 Data Types – Booleans and None
14 Working with Variables
15 Lists and Tuples
16 Dictionaries (dicts)
17 Control Flow – Conditionals and Comparisons

Scripting with Python
18 Reading User Input
19 Advanced Iteration with List Comprehensions
20 Standard Library random & json
21 Standard Library shutil & glob
22 Standard Library re & math
23 Encapsulating Behavior Using Functions
24 Using Standard Library Packages
25 Working with Environment Variables
26 Interacting with Files
27 Parsing Command Line Parameters
28 Handling Errors with tryexceptelsefinally
29 Execute Shell Commands from Within Python
30 Exit Statuses

Third Party Packages
31 Installing pip to Manage Python Packages
32 Installing Third-Party Packages Using pip
33 Virtualenv
34 Using Third-Party Code in Your Scripts

Creating a Larger Scripting Project
35 Examining the Problem and Planning
36 Installing Python 3 on CentOS 7
37 (Optional) Installing Python 3 on Debian
38 Testing Against Python 2 and Python 3
39 Structuring the Project
40 Test Driving the Command Line Parser (Part 1)
41 Test Driving the Command Line Parser (Part 2)
42 Implementing PostgreSQL Interaction
43 Implementing Local File Storage
44 Implementing S3 Storage
45 Wiring the Units Together
46 Building and Sharing a Wheel Distribution

Conclusion
47 Thank You and Next Steps