1. Home
  2. Training Library
  3. Python Metaprogramming

Review

Developed with
Trivera

The course is part of this learning path

Contents

Introduction
1
Introduction
PREVIEW30s
Meta
2
MetaProgramming
PREVIEW23m 29s
Review
3
Start course
Overview
DifficultyBeginner
Duration25m
Students54

Description

Introduction

This training course provides you with a deep dive into how to use metaprogramming to dynamically alter the behaviour of Python scripts at runtime, using techniques such as monkey patching.

Learning Objectives

  • Understand what metaprogramming is and what it can be used for
  • Review how to access local and global variables by name
  • Know how to inspect the details of any object at runtime
  • Know how to manipulate the behaviour of an object runtime through the use of monkey patching
  • And finally, understand how to create and use decorators for classes and functions

Prerequisites

  • A basic understanding of the Python programming language
  • A basic understanding of software development
  • A basic understanding of the software development life cycle

Intended Audience

  • Software developers interested in learning how to write Python code in a Pythonic way
  • Python junior level developers interested in advancing their Python skills 
  • Anyone with an interest in Python and how to use Python to write concise and elegant scripts for general purpose tasks

Transcript

- [Jeremy] Okay, welcome back. Before we finish, let's do a quick recap of the content that we have covered off and reviewed in this course. For starters, we gained an understanding of what metaprogramming is and what it can be used for. We then reviewed how to access local and global variables by name. We reviewed how to inspect the details of any object at runtime. We then demonstrated how to manipulate the behavior of an object at runtime through the use of monkey patching. And finally, we looked at how to create and use decorators for classes and functions. Again, thank you for your participation. We do hope that you have enjoyed this course on Python metaprogramming. Please feel free to contact us at support@cloudacademy.com if you have any questions and/or comments regarding this course.

About the Author

Students10951
Labs28
Courses65
Learning paths15

Jeremy is the DevOps Content Lead at Cloud Academy where he specializes in developing technical training documentation for DevOps.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 20+ years. In recent times, Jeremy has been focused on DevOps, Cloud, Security, and Machine Learning.

Jeremy holds professional certifications for both the AWS and GCP cloud platforms.
 

Covered Topics