Build GenAI Apps from Scratch — UCSB PaCE Certificate Program
Free courses from frontend to fullstack and AI
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Explore dynamic class generation in Python through a 26-minute conference talk from EuroPython 2016. Dive into the practice of writing code that generates classes and their functionality at runtime, using boto3, the AWS SDK for Python, as a practical example. Learn the basics, benefits, and drawbacks of dynamically generating classes, including how it can decrease code size, improve workflow for adding new functionality, and enhance code reliability. Discover techniques for effectively implementing dynamic class generation, overcoming associated challenges, and understanding when it's appropriate to use this approach. Gain insights from the development of boto3, where dynamic class generation enables data-driven class and method creation based on JSON models representing AWS service APIs. By the end of the talk, acquire a deeper understanding of dynamic class generation and gather valuable ideas for implementing this concept in your future Python projects.
Syllabus
Kyle Knapp - Dynamic Class Generation in Python
Taught by
EuroPython Conference