TTPS4850: Advanced Python Programming

Become an EPIC Affiliate

To view the class schedule you need to become an Affiliate

  • Largest “Guaranteed To Run” public technical training schedules available
  • Easy to become an Affiliate – no charge or fee
Become an EPIC Affiliate

already an Affiliate?  Login

About this Course

A core component of our Python Journey skills-immersion training series, Next Level Python (with Advanced Python Topics) is a highly-rated, hands-on training course that has provided thousands of students with the skills required to apply advanced Python to their daily programming needs. This course picks up where our foundational courses leave off, covering some topics in greater depth, adding many new ones, all with a focus on enterprise development.

Throughout the course, you’ll gain hands-on experience with leveraging OS services, coding graphical interfaces for applications, creating modules and running unit tests, defining classes, interacting with network services, querying databases, processing XML data, and much more.  All concepts are reinforced by informal practice during the lecture, then followed by deeper lab exercises.

Audience Profile

This in an intermediate and beyond level Python course geared for students experienced with Python who want to use Python in web development projects or automate or simplify common tasks with the use of Python scripts.

At Course Completion

This course is approximately 50% hands-on, combining expert lecture, real-world demonstrations and group discussions with machine-based practical labs and exercises. Working in a hands-on learning environment led by our expert practitioner, attendees will learn advanced skills needed to:

· Leverage OS services

· Add enhancements to classes

· Code graphical interfaces for applications

· Understand advanced Python metaprogramming concepts

· Create easy-to-use and easy-to-maintain modules and packages

· Implement and run unit tests

· Create multithreaded and multi-process applications

· Interact with network services

· Design professional scripts

· Query databases

· Process XML, CSV, and JSON data

· Time Permitting: Working with more data types

· Tim Permitting: Using type hints if time permits

Outline

1. Python refresher

· Builtin data types

· Lists and tuples

· Dictionaries and sets

· Program structure

· Files and console I/O

· If statement

· for and while loops

2. OS Services

· The os and os.path modules

· Environment variables

· Launching external commands with subprocess

· Walking directory trees

· Paths, directories, and filenames

· Working with file systems

3. Dates and Times

· Basic date and time classes

· Different time formats

· Converting between formats

· Formatting dates and times

· Parsing date/time information

4. Binary Data

· What is Binary Data?

· Binary vs text

· Using the Struct module

5. Pythonic Programming

· The Zen of Python

· Tuples

· Advanced unpacking

· Sorting

· Lambda functions

· List comprehensions

· Generator expressions

· String formatting

6. Functions, modules, and packages

· Four types of function parameters

· Four levels of name scoping

· Single/multi dispatch

· Relative imports

· Using init effectively

· Documentation best practices

7. Intermediate classes

· Class/static data and methods

· Inheritance (or composition)

· Abstract base classes

· Implementing protocols (context, iterator, etc.) with special methods

8. Metaprogramming

· Implicit properties

· globals() and locals()

· Working with object attributes

· The inspect module

· Callable classes

· Decorators

· Monkey patching

9. Developer Tools

· Analyzing programs with pylint

· Using the debugger

· Profiling code

· Testing speed with benchmarking

10. Unit testing with PyTest

· What is a unit test?

· Writing tests

· Working with fixtures

· Test runners

· Mocking resources

11. Database access

· The DB API

· Available Interfaces

· Connecting to a server

· Creating and executing a cursor

· Fetching data

· Parameterized statements

· Using Metadata

· Transaction control

· ORMs and NoSQL overview

12. PyQt

· Overview

· Qt Architecture

· Using designer

· Standard widgets

· Event handling

· Extras

13. Network Programming

· Builtin classes

· Using requests

· Grabbing web pages

· Sending email

· Working with binary data

· Consuming RESTful services

· Remote access (SSH)

14. Multiprogramming

· The threading module

· Sharing variables

· The queue module

· The multiprocessing module

· Creating pools

· About async programming

15. Scripting for System Administration

· Running external programs

· Parsing arguments

· Creating filters to read text files

· Implementing logging

16. Serializing data

· Parsing XML with ElementTree

· Updating the XML tree

· Creating new XML documents

· Reading/Writing JSON data

· Reading/writing CSV data

· YAML, other formats

Time Permitting Chapters

17. Type hinting

· Annotate variables

· Learn what type hinting does NOT do

· Use the typing module for detailed type hints

· Understand union and optional types

· Write stub interfaces

18. Advanced data handling

· Discover the collections module

· Use defaultdict, Counter, and namedtuple

· Create dataclasses

· Store data offline with pickle

Appendix A: Bibliography

Appendix B: Python virtual environments

Prerequisites

Basic incoming practical experience working with Python is required, along with a working, user-level knowledge of Unix/Linux, Mac, or Windows. This course does not cover Python fundamentals.