2 مستودعات
Automatic generation of hash methods for class instances, enabling use as dictionary keys or set members.
Distinguishing note: No candidate covers automatic hash method generation for data classes; closest is Object Key Validation which is unrelated.
Explore 2 awesome GitHub repositories matching programming languages & runtimes · Hashable Object Generators. Refine with filters or upvote what's useful.
Sourcery هو أداة لتوليد الكود للغة Swift تقوم بأتمتة إنتاج الكود المتكرر (boilerplate) ومطابقة البروتوكولات. يعمل كمحرك قوالب يقوم بمسح ملفات المصدر لتوليد كود هيكلي، مثل تطبيقات Codable وEquatable وHashable، بناءً على بروتوكولات العلامات والتحليل الثابت. يوفر المشروع إطار عمل متخصصاً للسخرية (mocking) ينشئ كائنات وهمية للبروتوكولات لتتبع استدعاءات الدوال والتقاط الوسائط أثناء الاختبار. كما يتضمن مرافق لتوليد عدسات الهياكل (struct lenses)، ومجموعات حالات التعداد (enum cases)، وفروقات الاختبار الدقيقة على مستوى الخصائص. يدعم النظام سير عمل لحظياً باستخدام خادم خلفي (daemon) لمراقبة الملفات وإعادة توليد الكود تلقائياً. تتم إدارة التكامل من خلال ملفات إعدادات YAML وإضافات نظام البناء لضمان بقاء الكود المولد متسقاً أثناء إعادة الهيكلة.
Automates the creation of hashing logic for types to remove manual boilerplate.
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
Generates hash methods for objects, enabling their use as dictionary keys or set members.