File Processing and Environment Communication with Python

By Keith Thompson

Learn how to process files and communicate with a program’s environment to prep for becoming a Certified Professional in Python Programming.

11 hours
  • 35 Lessons
  • 9 Hands-On Labs

About the course

This course covers Exam block #1: File Processing and Communicating with a Program’s Environment of the PCPP-32-1: Certified Professional in Python Programming 1 Certification certification exam.

In this course, we cover the following topics:

  • Processing different kinds of files:
    • sqlite3: Interacting with SQLite databases
    • xml: Creating and processing XML files
    • csv: CSV file reading and writing
    • logging: The basic logging facility for Python
    • configparser: Configuration file parser
  • Communicating with a program’s environment:
    • os: Interacting with the operating system
    • datetime: Manipulating with dates and time
    • io: Working with streams
    • time: Time access and conversions
  • Chapter 1 3 Lessons Getting Started 3:07

    An Important Note About A Cloud Guru and Linux Academy Courses

    1:19

    Course Introduction

    0:59

    About the Training Architect

    0:49
  • Chapter 2 1 Lesson Environment Setup 6:39

    Installing Python 3.8 on a Cloud Playground

    6:39
  • Chapter 3 4 Lessons SQLite 1:00:20

    Interacting with SQLite Using sqlite3 - Part 1

    16:36

    Interacting with SQLite Using `sqlite3` - Part 2

    6:21

    Using User Defined Functions with SQLite

    7:23

    Using SQLite with Python

    30:00 Hands-On Lab
  • Chapter 4 3 Lessons CSV 48:32

    Using the `csv` Module

    10:52

    Mapping CSV Rows to Dictionaries

    7:40

    Mapping CSV Rows to Dictionaries

    30:00 Hands-On Lab
  • Chapter 5 4 Lessons XML 1:32:26

    An Overview of Python's XML Submodules

    2:13

    Parsing XML Documents

    15:52

    Creating an XML Document

    14:21

    Parsing XML Documents with Python

    1:00:00 Hands-On Lab
  • Chapter 6 4 Lessons Logging 1:17:59

    Using the `logging` Module

    6:59

    Defining Log Formatters

    4:38

    Using Multiple Log Handlers

    6:22

    Adding Logging to a Python Application

    1:00:00 Hands-On Lab
  • Chapter 7 2 Lessons Configuration Parsing with `configparser` 56:49

    Using the `configparser` Module

    11:49

    Working with INI Configuration Files using `configparser`

    45:00 Hands-On Lab
  • Chapter 8 5 Lessons Dates and Times 1:55:14

    Using `date` and `datetime` Objects

    11:30

    Date and Time Formatting

    6:50

    Using the `time` module

    6:54

    Utilizing Dates and Times in Python

    45:00 Hands-On Lab

    Working with Timezones in Python

    45:00 Hands-On Lab
  • Chapter 9 4 Lessons Operating System Interactions 53:21

    The `os` Module

    5:35

    Interacting with Environment Variables

    7:46

    Working with Directories and Files

    10:00

    Using Python's `os` Module

    30:00 Hands-On Lab
  • Chapter 10 4 Lessons Using Streams 1:18:58

    The `io` Module

    3:10

    Working with Text Streams

    10:41

    Working with Binary and RAW I/O Streams

    5:07

    Working with Streams in Python

    1:00:00 Hands-On Lab
  • Chapter 11 1 Lesson Final Steps 0:31

    What's Next?

    0:31

What you will need

  • TBD

What are Hands-on Labs

What's the difference between theoretical knowledge and real skills? Practical real-world experience. That's where Hands-on Labs come in! Hands-on Labs are guided, interactive experiences that help you learn and practice real-world scenarios in real cloud environments. Hands-on Labs are seamlessly integrated in courses, so you can learn by doing.

Get Started
Who’s going to be learning?
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!