
Explore iterators and generators to traverse collections efficiently, producing cleaner code that decouples data from the algorithm, and learn how generators enable multiple Python constructs including iterators.
Explore Python 3 programming tools, including iterators and generators, regular expressions, introspection, lambda functions, and decorators, to control data traversal and code clarity.
Explore the background of iterators and generators and see a practical demonstration on implementing them in Python 3, then preview how regular expressions are used in Python.
Explore how Python 3 handles regular expressions and apply common string matching patterns to enhance your projects.
Explore how regular expressions work, their pattern matching power, and key metacharacters, then learn to apply them in Python for searching strings and validating emails.
Explore the foundations of how Python 3 handles regular expressions, covering key concepts and patterns. Prepare for the upcoming, more complex topic: introspection in Python.
Explore introspection to determine object types at runtime, gain flexibility and control over object structures, and create anonymous functions on the fly, also called lambda functions.
Explore introspection in Python to determine an object's type at runtime with type and id, and inspect attributes and methods with dir to understand modules, packages, and object structure.
Explore Python introspection to inspect types at runtime, handle dynamic data with type checks, and leverage metaprogramming to adapt behavior while iterating over strings, lists, and dicts.
Explore lambda functions as anonymous, name-free blocks of code you can assign to variables and pass into other functions, enabling on-the-fly, elegant functional programming with map and metaprogramming.
Explore why and how to use lambda functions in Python by building a Celsius to Fahrenheit converter and applying a map with a lambda for concise, readable, functional code.
Explore how introspection and lambda functions boost flexibility and knowledge of your own objects, and show how anonymous functions promote more elegant code structure in daily development.
Explore metaclasses and decorators in Python to expand your implementation capabilities. Introduce these advanced concepts at a high level and drill deeper into how to implement them in Python programs.
Explore metaclasses in Python as an advanced tool to control class behavior, enabling rapid creation of similar classes, advanced refactoring, and blueprint-driven class construction.
Explore metaclasses and decorators in Python by comparing plain classes with dynamic attribute creation, using an attribute type metaclass to instantiate submarine and tank objects efficiently.
Decorators in Python update a function's behavior without altering its code, by wrapping it and adding pre- or post-execution steps. They enable safe changes across libraries and support aspect-oriented ideas.
Explore how decorators in Python work by building a decorator class, wrapping functions to run code before and after calls. Learn practical examples showing dynamic function enhancement and runtime behavior.
Learn how to use metaclasses and decorators to inject function entry and exit points and to construct classes using a metaclass as a template.
Explore how to leverage third party modules and packages in Python applications. Discover and configure Python packages, then try popular packages and learn how to use them in code.
Explore how to find, download, and install Python packages via the Python Package Index, import them into your project, and use numpy for matrix creation, concatenation, and multiplication.
Compare alternative Python package installation methods for different versions and learn to use the Beautiful Soup package for HTML parsing and the requests package for HTTP requests.
Install requests with pip, import requests, fetch the hub events page via requests.get, inspect status codes, and parse text or json with libraries like Beautiful Soup.
Discover how to find useful modules and packages for your applications and configure them correctly within your own implementation.
Learn how to interact with third-party APIs in your Python applications, unlocking increased functionality and enabling your software to communicate with other systems.
Learn to integrate third-party APIs with Python using RESTful interfaces, perform get, put, post, and delete requests, and build a Twilio-based app to send text messages.
Learn to work with APIs in your application, boost software functionality, and see basic API integrations demonstrated in code.
Explore metaprogramming fundamentals and its key attributes in Python 3, then see practical implementations for common attributes across Python code.
Master metaprogramming in Python by studying metaclasses, prepare and new, and how class creation is customized. Explore local and global scope to avoid namespace pollution in metaprogramming constructs.
Deepen understanding of metaprogramming by exploring more complex constructs that enable more powerful metaprogramming implementations.
Explore how decorators boost metaprogramming in Python and see practical monkey patching techniques. Understand the construction of decorators and how monkey patching can be applied in metaprogramming applications.
Use Python decorators as metaprogramming tool to wrap functions with timing and logging. Build an execution timer with time module and phunk tools library to time methods while preserving metadata.
Learn to build a custom decorator to time function execution, wrap it with wraps, and print benchmark results to compare methods using a practical example.
Explore monkey patching, a runtime technique to extend or modify a program by changing methods or functions for a running instance, often used with libraries.
Learn to apply monkey patching using the types library to modify a class method at runtime, explore the more powerful patching technique, and discuss metaprogramming best practices and potential pitfalls.
Master decorators and monkey patching concepts as you complete this metaprogramming-focused lecture. Apply decorators in your metaprogramming modules and understand the ideas behind monkey patching.
Explore the overall structure of XML and JSON. Build a basic understanding of how each format is arranged.
Understand the basic xml structure with a root and nested elements. Build a json structure of rebels as name objects and learn to generate and parse both with python libraries.
Compare xml and json structures and explain how data is represented in each format, highlighting differences and practical implications for using them in Python.
Explore iterators and generators to traverse collections efficiently, producing cleaner code and decoupling data from the algorithm; learn how generators create Python constructs including iterators.
Generate xml and json automatically in Python 3 using built-in libraries, build xml trees with root and subelements, and serialize json with dumps and pretty print.
Generate data in XML or JSON format using Python, and leverage Python libraries to implement more robust solutions.
Learn to parse xml and json data in python using built-in libraries, and apply these techniques to parse feeds in your programs.
Explore parsing xml feeds with python 3's expat parser, including start element, end element, and character data handlers. Decode json with json.loads to iterate structured data for database integration.
Learn to parse XML and JSON data in Python and extract the exact information from incoming sources.
Explore implementing complex algorithms in Python, develop critical thinking to analyze and design solutions, and learn by solving the Towers of Hanoi problem.
Explore solving the Tower of Hanoi with a recursive algorithm in Python, analyzing problem structure, big-O growth, and a concise three-line implementation.
Explore implementing a popular mathematics and computer science problem, walking through its solution design and implementation. Practice applying programming, critical thinking, and design skills through related exercises.
The Python Tools, Modules and JSON course will enable the students to learn the more advanced concepts of writing and running Python scripts. The course builds on the Python Fundamentals course and covers the more complex topics such as iterators and generators, regular expressions, introspection and lambda functions, metaclasses and decorators, and using the extensive functionality of Python modules. Extra emphasis is placed on features unique to Python, such as metaprogramming and JSON. After completing this course, the students will immediately be able to use Python to complete tasks in the real world.
The Python Tools, Modules and JSON course will comprehensively cover the more advanced topics related to the Python programming language with primary focus on the several tools, modules and JSON. The course enables the students to code efficient scripts to solve the real-world problems using the advanced features of Python.