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


    Course Introduction


    About the Training Architect

  • Chapter 2 1 Lesson Environment Setup 6:39

    Installing Python 3.8 on a Cloud Playground

  • Chapter 3 4 Lessons SQLite 30:20

    Interacting with SQLite Using sqlite3 - Part 1


    Interacting with SQLite Using `sqlite3` - Part 2


    Using User Defined Functions with SQLite


    Using SQLite with Python

    0:00 Hands-On Lab
  • Chapter 4 3 Lessons CSV 18:32

    Using the `csv` Module


    Mapping CSV Rows to Dictionaries


    Mapping CSV Rows to Dictionaries

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

    An Overview of Python's XML Submodules


    Parsing XML Documents


    Creating an XML Document


    Parsing XML Documents with Python

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

    Using the `logging` Module


    Defining Log Formatters


    Using Multiple Log Handlers


    Adding Logging to a Python Application

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

    Using the `configparser` Module


    Working with INI Configuration Files using `configparser`

    0:00 Hands-On Lab
  • Chapter 8 5 Lessons Dates and Times 25:14

    Using `date` and `datetime` Objects


    Date and Time Formatting


    Using the `time` module


    Utilizing Dates and Times in Python

    0:00 Hands-On Lab

    Working with Timezones in Python

    0:00 Hands-On Lab
  • Chapter 9 4 Lessons Operating System Interactions 23:21

    The `os` Module


    Interacting with Environment Variables


    Working with Directories and Files


    Using Python's `os` Module

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

    The `io` Module


    Working with Text Streams


    Working with Binary and RAW I/O Streams


    Working with Streams in Python

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

    What's Next?


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.

Practice alongside courses in Cloud Playground

What is Cloud Playground? Cloud Playground lets you build skills in real-world AWS, Google Cloud, and Azure environments. Spin up risk-free Sandboxes, Servers and Terminals and follow along with courses, test a new idea or prepare for exams.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!

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