1 مستودع
Converts Python class instances into plain dictionaries for serialization or inspection.
Distinct from Class Instance to Plain Object Converters: Distinct from Class Instance to Plain Object Converters: targets Python classes, not JavaScript objects.
Explore 1 awesome GitHub repository matching data & databases · Python Class Instance to Dict Converters. 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
Converts attrs class instances to and from plain Python dictionaries with high performance.