Skip to main content

Instructor-led training

Intermediate Python 3.x Training in Streetsboro, Ohio

This 4 day course picks up where Introduction to Python 3 leaves off, covering some topics in more detail, and adding many new ones, with a focus on enterprise development.

What you'll learn

This 4 day course picks up where Introduction to Python 3 leaves off, covering some topics in more detail, and adding many new ones, with a focus on enterprise development. This is a hands-on programming class. All concepts are reinforced by informal practice during the lecture followed by lab exercises. Many labs build on earlier labs, which helps students retain the earlier material.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Streetsboro, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

All students should be able to write simple Python scripts, using basic data types, program structures, and the standard Python library.

Course Outline

Python Refresher
Variables
Basic Python Data Types
Sequences
Mapping Types
Program Structure
Files And Console I/O
Conditionals
Loops
Builtins
 
OS Services
The OS Module
Paths, Directories, and Filenames
Environment Variables
Launching External Programs
Walking Directory Trees
The Datetime Module
The Calendar Module
 
Pythonic Programming
The Zen of Python
Common Python Idioms
Unpacking Function Arguments
Lambda Functions
List Comprehensions
Iterables
Writing Generators
String Tricks
String Formatting
 
Modules
Using Import
Module Search Path
Namespaces
Executing Modules as Scripts
Packages
Confguring Import With __Init__.Py
Name Resolution (AKA Scope)
Python Style
 
Classes
Defning Classes
Instance Objects
Instance Attributes
Instance Methods
__Init__
Properties
Class Data
Class Methods
Inheritance
Multiple Inheritance
Using Super ()
Special Methods
Class-Private Variables
Static Methods
 
Metaprogramming
Globals() and Locals()
Working with Attributes
The Inspect Module
Decorator Functions
Decorator Classes
Decorator Parameters
Creating Classes At Runtime
Monkey Patching
 
Developer Tools
Program Development
Comments
Pylint
Customizing Pylint
Using Pyreverse
The Unittest Module
Fixtures
Skipping Tests
Making a Suite of Tests
Automated Test Discovery
Using Nose
The Python Debugger
Starting Debug Mode
Stepping Through a Program
Setting Breakpoints
Profling
Benchmarking
 
Database access
The DB API
Available Interfaces
Connecting to a server
connect() examples
Creating a cursor
Executing a statement
Parameterized statements
Dictionary cursors
Metadata
Transactions
Object-relational mappers
 
PyQt4
Event Driven Applications
Gui Application Flow Chart
External Anatomy of a Pyqt4 Application
Internal Anatomy of a Pyqt4 Application
Using Designer
Anatomy of a Designer-Based Application
Naming Conventions
Common Widgets
Layouts
Selectable Buttons
Actions and Events
Menu Bar
Status Bar
Using Predefned Dialogs
Creating Custom Dialogs
Tabs
Niceties
Working with Images
Complete Example
 
Network Programming
Sockets
Socket Options
Client Concepts
Server Concepts
Application Protocols
Forking Servers
Grabbing Html from The Web
Consuming Web Services
Web Data the Easier Way
Sending Email
Binary Data
The Struct Module
 
Multiprogramming
What Are Threads?
The Python Thread Manager
The Threading Module
Threads for the Impatient
Creating a Thread Class
Variables Sharing
Using Queues
Debugging Threaded Programs
The Multiprocessing Module
Alternatives to Multiprogramming
 
System Administration and Scripting
The Subprocess Module
Subprocess Convenience Functions
Using the Sh Module
Permissions
Saving Information
Creating a Useful Command Line Script
Creating Filters
Parsing the Command Line
Simple Logging
Logging Levels
Formatting Log Entries
Logging to Other Destinations
 
XML and JSON
About Xml
Normal Approaches to Xml
Which Module to Use?
Getting Started With ElementTree
How ElementTree Works
Creating a New Xml Document
Parsing an Xml Document
Navigating the Xml Document
Using XPath
Advanced XPath
About JSON
Reading JSON
Writing JSON
 
Extending Python with C
Why Extend Python?
Ways to Extend Python With C
Hand-Coded C
Overview
The C Program
Methods
The Method Table
The Init Function
Handling Errors
Custom Exception Objects
Putting It All Together
Using SWIG
The Interface Fle
Generating the Wrappers
Building and Installing The Extension
Ctypes
For More Information
 
Appendix A: Python Books
Appendix B: Python Gotchas

What makes this material hard to master

The challenge here is breadth plus a few ideas that behave differently from what working scripters expect. The syllabus runs from idioms through classes and metaprogramming to databases, GUIs, networking, threads and C extensions, and each layer assumes the one before it.

  • Idioms and scope. Unpacking function arguments, lambda functions, list comprehensions, iterables and generators change how you structure loops. Name resolution (scope) and the module search path explain many surprising NameError and import problems, and the Gotchas appendix collects the common traps.
  • Classes to metaprogramming. Properties, class data, class methods, multiple inheritance and super() must be solid before decorator functions, decorator classes, decorator parameters, creating classes at runtime and monkey patching make sense. Decorators with parameters are usually the first place students get lost, because they are functions returning functions that return functions.
  • Concurrency. Threads, shared variables, queues and the multiprocessing module are covered, along with debugging threaded programs. Bugs here depend on timing and may not reproduce, so the syllabus topic on alternatives to multiprogramming matters as much as the mechanics.
  • Crossing boundaries. Parameterized statements and transactions in the DB API, the struct module for binary data, sockets, and C extensions through hand-coded C, SWIG and ctypes all require care with data representation, error handling and resource ownership.

A common misconception is that this is a tour of the standard library. The labs build on one another, and the useful skill is knowing which tool fits: ElementTree or JSON, threads or processes, hand-written C or ctypes.

Who it suits and what to take around it

The course suits developers who can already write simple Python scripts with basic data types, program structure and the standard library, and who now need to build larger, maintainable programs. Training managers can treat it as a bridge from scripting to application development: the syllabus includes testing, linting, debugging, profiling, logging and database access alongside the language features.

If your team's scripting is still shaky, start with Introduction to Python 3.x, since this course picks up where that one leaves off and moves quickly through its refresher.

After this course, Advanced Python 3 (4 Day Course) is a natural next step for teams that want to go deeper into the language. Teams whose work is mainly analysis can follow with Python Data Analysis with NumPy and Pandas, which covers a domain this syllabus does not. The full list is on the Python Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

An operations script. For example, a team might replace a collection of shell scripts with one command-line tool. It would walk directory trees, read environment variables, launch external programs with the subprocess module, parse command-line options, act as a filter in a pipeline, and write leveled log entries to a file. These map to the OS Services, System Administration and Scripting topics.

A data-feed service. A team might consume a web service, read the JSON or XML it returns with ElementTree and XPath, and store the results through the DB API using parameterized statements and explicit transactions. Packages, unittest fixtures and Pylint would keep that code maintainable as it grows.

A worker with a native library. A team might need background workers fed through a queue, plus access to an existing C library. Threads with queues or the multiprocessing module cover the first need. ctypes or SWIG cover the second, with hand-coded C reserved for cases that need finer control.

Using AI coding assistants with these topics

AI coding assistants are useful for drafting boilerplate: a unittest skeleton, a logging configuration, an ElementTree parsing routine or a command-line parser. They can also explain an unfamiliar idiom or suggest a comprehension in place of a loop.

They are less reliable where this course is most demanding:

  • Decorators and metaprogramming. Generated decorators often drop argument handling or break introspection, and runtime class creation or monkey patching can look plausible while changing behavior globally.
  • Threads. Suggested code may share variables without protection or use queues incorrectly, and it can pass a quick run and still fail under load.
  • Database code. Assistants sometimes build SQL by string formatting instead of parameterized statements, and may omit transaction handling.
  • C extensions. Error handling, exception objects and memory ownership need careful review; generated wrappers may not build or may crash at runtime.
  • Edge cases. Check encodings, empty input and path handling before automating anything.

To verify, run Pylint, write unittest tests for the edge cases yourself, step through suspect logic in the debugger, repeat concurrent tests many times, and profile before accepting an optimization. Confirm that generated code matches the Python version your project uses.

Frequently asked questions

What level is this course?

Intermediate. It is a hands-on, four-day course that builds on an introductory Python course and focuses on enterprise development, with labs that build on earlier labs.

What do I need to know before attending?

You should be able to write simple Python scripts using basic data types, program structures and the standard Python library. A refresher on variables, sequences, mappings, files, conditionals, loops and builtins opens the course.

What does the course cover?

Topics include Pythonic idioms, modules and packages, classes and inheritance, metaprogramming with decorators, developer tools (Pylint, unittest, the debugger, profiling), database access with the DB API, PyQt4 GUI programming, sockets and web data, threads and multiprocessing, subprocess and logging, XML and JSON, and extending Python with C.

Can this be delivered privately for our team, onsite or online?

Yes. HSG delivers private training for organizations either onsite at your location or live online.

Can the content be customized or aligned to our Python version?

Private training can be customized and tailored to the technology versions your organization uses, including current releases. You can request a training proposal to discuss your needs.

Training locations

Intermediate Python 3.x training across the U.S. and beyond.

We provide private Intermediate Python 3.x training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Intermediate Python 3.x training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.