Advanced Python

Advanced Python

Duration: 4 Days

Description

There’s a wide gap between Python that runs and Python that’s ready for a production codebase, and this four-day course is built to close it. Rather than introducing new syntax, it reframes how experienced Python developers approach a project: structuring code with design patterns (Factory, Adapter, Proxy, Strategy) instead of ad hoc classes, connecting to relational databases and RESTful services the way a real application would, and building in the testing, logging, and debugging discipline that separates a working prototype from something a team can maintain. The final two modules — Python optimization and package/environment management — are frequently the most valuable to working developers, since they cover the practical realities of shipping Python (virtual environments, packaging, and writing code that performs well at scale) that most self-directed learning skips entirely.

Audience

This course is for developers and engineers who already write working Python and want to write production-grade Python — the distinction matters more than it sounds. If you’ve outgrown “it runs on my machine” and need your code to survive code review, handle real data volumes, and integrate cleanly with a database or an external API, this is the course that gets you there. It’s particularly valuable for developers about to take ownership of an existing Python codebase (the design-patterns and OOP modules make inherited code far less mysterious) and for developers preparing to mentor junior team members, since teaching design patterns well requires understanding them at a level this course is built to provide.

Objectives

  • Apply advanced Python features for clean, efficient coding
  • Work with files, databases, and RESTful APIs
  • Design scalable applications using OOP and design patterns
  • Implement testing, logging, and debugging tools
  • Manage environments and packages for modular development

Prerequisites

Participants should have a solid understanding of Python fundamentals, including functions, control flow, and basic object-oriented programming.

Related Python Courses

See the full Python training roadmap and course directory for how this fits into a broader learning path.

This course builds directly on Introduction to Python or PCAP Intermediate Python. For developers targeting a formal credential at this level, PCPP1 Python Professional covers similar advanced ground with certification alignment. Developers who also own testing responsibilities should pair this with PCAT Python Testing. Building AI-powered applications next? See Python OpenAI API for Developers.

Course Outline

Module 1: Files

  • File Handling
  • Sorting File Content
  • Handling Exceptions

Module 2: Relational Databases

  • Structures Query Language
  • Connection and Cursor
  • Executing Commands

Module 3: Object-Oriented Programming

  • Basic Principles
  • Classes and Objects
  • Properties
  • Inheritance
  • Abstract Base Classes (ABCs)

Module 4: Python’s Features

  • Best Practices
  • Monkey Patching
  • Generators
  • The with Statement

Module 5: Python Unit Testing

  • Python’s unittest Framework

Module 6: Logging and Debugging

  • IDE Debugging Tools
  • Pylint
  • Logging

Module 7: Design Patterns

  • Factory Method
  • Adapter Method
  • Proxy Method
  • Strategy Method

Module 8: RESTful Web Services and Clients

  • REST Architecture
  • REST APIs

Module 9: Python Optimization

  • Optimization Modules
  • Data Structures
  • List Comprehension

Module 10: Managing Python Packages and Environments

  • Python Packages
  • Python Versions and Porting
  • Python Virtual Environment
  • Packaging and Distribution Package