1 repositorio
Generates hash methods for class instances, optionally caching the hash value for performance on immutable objects.
Distinct from MD5 Hash Generation: Distinct from MD5 Hash Generation: focuses on generating hash methods for object identity and hashing, not cryptographic hash computation.
Explore 1 awesome GitHub repository matching security & cryptography · Object Hash Generators. Refine with filters or upvote what's useful.
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 class instances, a core feature of the library.