Python Metaprogramming Fundamentals: Code Generation and Introspection — WalkSelf
⏱ 2 ساعة 30 دقيقة 📚 25 دورة 🎧 النسخة الصوتية

Python Metaprogramming Fundamentals: Code Generation and Introspection

Discover how to use decorators, descriptors, and Abstract Syntax Trees (AST) to write programs that dynamically manipulate Python code.

  • 💬 مدرب ذكاء اصطناعي
    اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت.
  • 🕐 ابدأ في أي وقت
    بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك.
  • 🌐 بالعربية
    الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.

حول هذه الدورة

Are you ready to understand the deep mechanics of the Python language and unlock its full potential for dynamic customization? Metaprogramming allows you to write code that writes code, dramatically increasing flexibility and reducing boilerplate. By the end of this course, you will be fluent in Python's advanced introspection tools and capable of manipulating Abstract Syntax Trees (AST) to generate and transform code. You will gain the skills necessary to implement custom frameworks and create powerful, concise Domain Specific Languages (DSLs). What you'll learn: * Understand the core concepts of runtime introspection using built-in Python tools like type() and dir(). * Master the use of function and class decorators to modify behavior and inject functionality dynamically. * Apply descriptors and metaclasses to control attribute access and customize class creation flow. * Analyze and traverse Python Abstract Syntax Trees (AST) to understand how code is structured internally. * Practice generating and modifying Python source code programmatically using the ast module. * Build simple Domain Specific Languages (DSLs) to simplify complex tasks and reduce user error. * Explore modern applications of metaprogramming, such as simplifying class definition using dataclasses and type hints. This course begins with foundational definitions and runtime inspection techniques before progressing to advanced topics like metaclasses and AST manipulation. You will read detailed explanations and apply concepts through written exercises and code examples to solidify your understanding of dynamic code execution. This course is designed for intermediate Python developers who are comfortable with basic object-oriented programming and are ready to explore advanced language features. No prior experience with metaprogramming or compiler theory is required. Start writing code that controls the very structure of your applications today.

ما الذي ستحصل عليه

  • 📜 شهادة إتمام
    أضفها إلى ملفك على LinkedIn
  • 💬 مدرّس AI شخصي
    عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت.
  • 🎧 النسخة الصوتية مضمَّنة
    تعلَّم أثناء تنقُّلك — دون شاشة
  • ♾️ وصول مدى الحياة
    عُد متى شئت، بلا انتهاء
  • 📱 الهاتف أو الكمبيوتر
    يعمل في أي مكان وعلى أي جهاز
  • 💸 استرداد خلال 14 يومًا
    دون أسئلة
  • قصير ومركَّز
    2 ساعة 30 دقيقة من المحتوى التطبيقي

المراجعات

لا توجد مراجعات بعد — كن أول من يشارك تجربته.

اكتب مراجعة

سنطلب منك تسجيل الدخول بعد الإرسال — تُحفظ مسودتك.

الأسئلة الشائعة

ما الذي أحتاجه لأخذ هذه الدورة؟ +

يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.

كيف يمكنني الدفع؟ +

بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.

هل يمكنني استرداد المال؟ +

نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.

إلى متى يستمر وصولي؟ +

إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.

هل سأحصل على شهادة؟ +

نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.

مصمَّم للعاملين في
التقنية التصميم المالية التسويق الرعاية الصحية التعليم الضيافة التصنيع