3 Repos
Provides a decorator and field API to define data classes with validators, converters, defaults, and metadata without boilerplate.
Distinct from Decorator-Based Validation: Distinct from Decorator-Based Validation: focuses on generating dunder methods and managing class structure, not just validation.
Explore 3 awesome GitHub repositories matching software engineering & architecture · Data Class Decorators. 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
Provides the core decorator and field API for defining data classes with validators, converters, and defaults.
Easy-peasy ist eine React-State-Management-Bibliothek und ein typisiertes Framework, das einen zentralen Store für die Verwaltung des globalen Anwendungszustands bereitstellt. Es fungiert als unveränderlicher (immutable) State-Store und asynchroner State-Orchestrator, der End-to-End-Typsicherheit für Zustandsdefinitionen, Aktionen und abgeleitete Werte gewährleistet. Die Bibliothek zeichnet sich dadurch aus, dass sie direkte Mutationssyntax in unveränderliche Updates umwandelt, um die Verwaltung verschachtelter Daten zu vereinfachen. Sie enthält einen Mechanismus zur Persistierung des State-Trees im Speicher und zur Rehydrierung während des Anwendungs-Boot-Prozesses, mit der Möglichkeit, die Benutzeroberfläche auszusetzen, bis die Rehydrierung abgeschlossen ist. Das Framework deckt mehrere Funktionsbereiche ab, einschließlich der Orchestrierung asynchroner API-Aufrufe mit optimistischem Rendering und der Berechnung zwischengespeicherter abgeleiteter Zustände. Es bietet zudem Tools zur Verwaltung nicht dringender Updates und für den Zugriff auf den Store außerhalb von React-Komponenten.
Uses TypeScript generics and class decorators to ensure strict type safety across the state management lifecycle.
Dataclasses-json is a library designed to facilitate the bidirectional conversion between Python data classes and JSON formats. It serves as a serialization tool that populates structured objects from raw data and transforms object instances into JSON strings, utilizing Python type hints to automate the mapping process. The library distinguishes itself by providing mechanisms for schema validation and runtime type coercion, ensuring that incoming data adheres to predefined model structures. It supports complex data requirements through recursive object traversal, which allows for the processi
Uses decorators to store serialization rules and configuration directly within data class definitions.