2 مستودعات
Tests whether a prospective value would satisfy a property's constraints before setting it on the object.
Distinct from Single Value Validators: Distinct from Single Value Validators: validates a value against property constraints before assignment, not just against a rule.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Pre-Assignment Value Validations. Refine with filters or upvote what's useful.
Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers deferred rendering through translatable objects that store parameters and render only when output is needed. The library disting
Validates a value against property constraints before it is assigned to the object.
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 user-defined validator functions each time an attribute is set, catching invalid data early and preventing corrupt object state.