4 مستودعات
Methods for intercepting and customizing attribute access, assignment, and deletion.
Distinct from Attribute Binding: Distinct from Attribute Binding: focuses on the lifecycle interception of object attributes rather than reactive data binding.
Explore 4 awesome GitHub repositories matching web development · Attribute Lifecycle Hooks. Refine with filters or upvote what's useful.
Python is a high-level, interpreted programming language designed for readability and versatility. It operates via a bytecode-based virtual machine and manages memory automatically through reference-counting garbage collection. The language supports multiple programming paradigms, including object-oriented, imperative, and functional styles, and provides a comprehensive standard library for system operations, networking, and data handling. The language is distinguished by its dynamic nature, allowing for runtime object introspection and metaclass-driven class creation. It utilizes protocol-ba
Provides protocol-based methods to intercept and customize object attribute access and modification logic.
pysheeet هي مكتبة مرجعية تقنية توفر مجموعة مختارة من مقتطفات التعليمات البرمجية وأنماط التنفيذ لتطوير Python المتقدم، وتكامل النظام، والحوسبة عالية الأداء. تعمل كدليل شامل لتنفيذ برمجة الشبكات منخفضة المستوى، وإضافات C الأصلية، والبرمجة غير المتزامنة والمتزامنة. يوفر المشروع أطر عمل متخصصة لتطوير ونشر نماذج اللغات الكبيرة، بما في ذلك أدوات لاستنتاج GPU الموزع والخدمة عالية الأداء. يتضمن أيضاً أنماطاً مفصلة لتنظيم مجموعات الحوسبة عالية الأداء، وتغطية تخصيص موارد GPU وإدارة عبء العمل متعدد العقد. تغطي المكتبة سطحاً واسعاً من القدرات، بما في ذلك اتصالات الشبكة الآمنة والتشفير، والتعيين الكائني-العلائقي وإدارة قواعد البيانات، وتنفيذ هياكل البيانات والخوارزميات المعقدة. كما توفر أدوات لإدارة الذاكرة، وقابلية التشغيل البيني الأصلية عبر واجهات الوظائف الخارجية، وتكامل نظام التشغيل على مستوى النظام.
Implements getters, setters, and descriptors for custom logic during attribute access.
attrs is a Python library that automatically generates initialization, representation, equality, hashing, and ordering methods from declarative class attribute definitions. At its core, it provides a class decorator metaprogramming framework that intercepts class creation to rewrite the class body, producing dunder methods without manual boilerplate. The library includes a comprehensive attribute validation toolkit with built-in validators for type checks, range constraints, regex matching, length limits, and logical composition of validation rules. The library distinguishes itself through it
Runs custom callbacks on attribute assignment for validation, conversion, or freezing.
core-decorators هي مكتبة مزخرفات (decorators) للفئات في JavaScript وأداة إطار عمل لتوسيع وظائف الفئات. توفر مجموعة من الأدوات لتنفيذ mixins لسلوك الفئة، وأتمتة ربط الدوال لتجنب تكوين المنشئ اليدوي، والتحقق من أن دوال الفئات الفرعية تتجاوز دوال الفئات الأصلية بشكل صحيح. تتضمن المكتبة مجموعة أدوات لإهمال الكود (deprecation) لوضع علامات على الدوال القديمة بتحذيرات في وحدة التحكم، ومحلل أداء لتنفيذ الدوال لقياس الأداء والمدة. كما تتيح تعديل سلوك الفئة والدالة من خلال نظام من المزخرفات المخصصة وحقن المنطق المشترك. تغطي القدرات الإضافية التحكم في خصائص الكائنات، بما في ذلك فرض الخصائص للقراءة فقط وتقييد رؤية الخصائص. توفر مجموعة الأدوات أيضاً بدائيات أداء مثل التخزين المؤقت للنتائج وتهيئة الخصائص المؤجلة لتأخير التنفيذ حتى الوصول الأول.
Combines new property descriptors with superclass descriptors to prevent overwriting getters or setters.