Coursera
Coursera Logo

Using Python to Interact with the Operating System 

  • Offered byCoursera

Using Python to Interact with the Operating System
 at 
Coursera 
Overview

Duration

31 hours

Start from

Start Now

Total fee

Free

Mode of learning

Online

Difficulty level

Beginner

Official Website

Explore Free Course External Link Icon

Credential

Certificate

Using Python to Interact with the Operating System
 at 
Coursera 
Highlights

  • Shareable Certificate Earn a Certificate upon completion
  • 100% online Start instantly and learn at your own schedule.
  • Course 2 of 6 in the Google IT Automation with Python
  • Flexible deadlines Reset deadlines in accordance to your schedule.
  • Beginner Level
  • Approx. 31 hours to complete
  • English Subtitles: Arabic, French, Portuguese (European), Italian, Vietnamese, German, Russian, English, Spanish
Read more
Details Icon

Using Python to Interact with the Operating System
 at 
Coursera 
Course details

More about this course
  • By the end of this course, you'll be able to manipulate files and processes on your computer's operating system. You'll also have learned about regular expressions -- a very powerful tool for processing text files -- and you'll get practice using the Linux command line on a virtual machine. And, this might feel like a stretch right now, but you'll also write a program that processes a bunch of errors in an actual log file and then generates a summary file. That's a super useful skill for IT Specialists to know.
  • We'll kick off by exploring how to execute Python locally, and organize and use code across different Python files. We'll then learn how to read and write different types of files, and use sub-processes and input streams. We'll also dive into Bash scripting and regular expressions -- both very powerful tools for anyone working with systems. We'll even touch on automatic testing, which allow us to automate how we check if our code is correct. To finish, we'll put all this together by using the tools that we've acquired to process data and generate automatic reports.
  • We'll also explain how to set up your own developer environment in your machine. This is a key step in being able to write and deploy powerful automation tools.
Read more

Using Python to Interact with the Operating System
 at 
Coursera 
Curriculum

Getting Your Python On

Course Introduction

Intro to Module 1: Getting Your Python On

Getting Familiar with the Operating System

Getting Your Computer Ready for Python

Setting up Your Environment on Windows (Optional)

Setting up Your Environment on MacOS (Optional)

Setting up Your Environment on Linux (Optional)

Interpreted vs. Compiled Languages

How to Run a Python Script

Your Own Python Modules

What is an IDE?

Benefits of Automation

Pitfalls of Automation

Practical Automation Example

What is Qwiklabs?

Module 1 Wrap Up: Getting Your Python On

Welcome to the Course

Pointers for Getting Your Environment Setup

Setting up Your Environment

Is it worth the time?

How to Log in to Qwiklabs

Practice Quiz: Getting Ready for Python

Practice Quiz: Running Python Locally

Practice Quiz: Automation

Managing Files with Python

Programming with Files

Reading Files

Iterating through Files

Writing Files

Working with Files

More File Information

Directories

What is a CSV file?

Reading CSV Files

Generating CSV

Reading and Writing CSV Files with Dictionaries

Module 2 Wrap Up: Managing Files with Python

Reading and Writing Files Cheat-Sheet

Files and Directories Cheat-Sheet

CSV Files Cheat Sheet

Practice Quiz: Managing Files & Directories

Practice Quiz: Reading & Writing CSV Files

Regular Expressions

Intro to Module 3: Regular Expressions

What are regular expressions?

Why use regular expressions?

Basic Matching with grep

Simple Matching in Python

Wildcards and Character Classes

Repetition Qualifiers

Escaping Characters

Regular Expressions in Action

Capturing Groups

More on Repetition Qualifiers

Extracting a PID Using regexes in Python

Splitting and Replacing

Module 3 Wrap Up: Regular Expressions

Regular Expressions Cheat-Sheet

Advanced Regular Expressions Cheat-Sheet

Practice Quiz: Regular Expressions

Practice Quiz: Basic Regular Expressions

Practice Quiz: Advanced Regular Expressions

Managing Data and Processes

Intro to Module 4: Managing Data and Processes

Reading Data interactively

Standard Streams

Environment Variables

Command-Line Arguments and Exit Status

Running System Commands in Python

Obtaining the Output of a System Command

Advanced Subprocess Management

What are log files?

Filtering Log Files with Regular Expressions

Making Sense out of the Data

Module 4 Wrap Up: Managing Data and Processes

More About Input Functions

Python Subprocesses Cheat Sheet

Practice Quiz: Data Streams

Practice Quiz: Python Subprocesses

Practice Quiz: Processing Log Files

Testing in Python

Intro to Module 5: Testing in Python

What is testing?

Manual Testing and Automated Testing

Unit Tests

Writing Unit Tests in Python

Edge Cases

Additional Test Cases

Black Box vs. White Box

Other Test Types

Test-Driven Development

The Try-Except Construct

Raising Errors

Testing for Expected Errors

Module 5 Wrap Up: Testing in Python

Unit Test Cheat-Sheet

Help with Jupyter Notebooks

More About Tests

Handling Errors Cheat-Sheet

Practice Quiz: Simple Tests

Practice Quiz: Other Test Concepts

Bash Scripting

Intro to Module 6: Bash Scripting

Basic Linux Commands

Redirecting Streams

Pipes and Pipelines

Signalling Processes

Creating Bash Scripts

Using Variables and Globs

Conditional Execution in Bash

While Loops in Bash Scripts

For Loops in Bash Scripts

Advanced Command Interaction

Choosing Between Bash and Python

Module 6 Wrap Up: Bash Scripting

Basic Linux Commands Cheat-Sheet

Redirections, Pipes and Signals

Bash Scripting Resources

Practice Quiz: Interacting with the Command Line

Practice Quiz: Bash Scripting

Practice Quiz - Advanced Bash Concepts

Final Project

Intro to Your Final Project

Writing a Script from the Ground Up

Project Problem Statement

Help with Research and Planning

Congratulations!

Sneak Peek of the Next Course

Using Python to Interact with the Operating System
 at 
Coursera 
Admission Process

    Important Dates

    May 25, 2024
    Course Commencement Date

    Other courses offered by Coursera

    – / –
    3 months
    Beginner
    – / –
    20 hours
    Beginner
    – / –
    2 months
    Beginner
    – / –
    3 months
    Beginner
    View Other 6715 CoursesRight Arrow Icon

    Using Python to Interact with the Operating System
     at 
    Coursera 
    Students Ratings & Reviews

    5/5
    Verified Icon6 Ratings
    S
    Suraj Mahajan
    Using Python to Interact with the Operating System
    Offered by Coursera
    5
    Learning Experience: good experience
    Faculty: good they teach how to install python in machine and how to use python
    Reviewed on 27 Jan 2023Read More
    Thumbs Up IconThumbs Down Icon
    A
    Anant Pradeep Koli
    Using Python to Interact with the Operating System
    Offered by Coursera
    5
    Learning Experience: Using system comman with python
    Faculty: Instructors taught well Curriculum was relevant and comprehensive
    Course Support: No career support provided
    Reviewed on 14 May 2022Read More
    Thumbs Up IconThumbs Down Icon
    S
    Sai Nandan
    Using Python to Interact with the Operating System
    Offered by Coursera
    5
    Learning Experience: Use of Python in interaction with OS
    Faculty: Instructors taught well Yes.....it was easily learned
    Course Support: Ya i updated it on resume
    Reviewed on 30 Apr 2022Read More
    Thumbs Up IconThumbs Down Icon
    D
    Divyadarshee Das
    Using Python to Interact with the Operating System
    Offered by Coursera
    5
    Learning Experience: How to interact with the operating system and different modules to get useful data which can be used for Scripting
    Faculty: They were professional hence they gave real world scenarios. Instructor Roger Martinez Yeah it was not lengthy but to the point. The speed was good enough too (some might want to watch them at 1.5x)
    Course Support: It helped me with writting better scripts
    Reviewed on 4 Feb 2022Read More
    Thumbs Up IconThumbs Down Icon
    A
    Ayush Payasi
    Using Python to Interact with the Operating System
    Offered by Coursera
    5
    Other: Learned about handling file systems in Linux and using python to script automation tasks .Also learned to create scripts that can work with triggers.
    Reviewed on 15 Mar 2021Read More
    Thumbs Up IconThumbs Down Icon
    View All 6 ReviewsRight Arrow Icon
    qna

    Using Python to Interact with the Operating System
     at 
    Coursera 

    Student Forum

    chatAnything you would want to ask experts?
    Write here...