Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 31 Dec 17:30
· 38 commits to main since this release

Core Model System with Fill Rate Computation

Added

  • Add BaseModel class for defining typed models with automatic type validation
  • Add Field class to represent individual model fields with type, value, and specification
  • Add FieldCollection class providing attribute-based access to model fields
  • Add FieldSpec and Spec() function for field configuration with metadata, normalizers, fill rate functions, and weights
  • Add MissingValue sentinel for representing missing or invalid field values
  • Add field_normalizer decorator for transforming field values before validation
  • Add fill rate computation system with compute_fill_rate() method and statistical aggregation (mean, weighted mean)
  • Add support for nested models with recursive fill rate computation
  • Add support for list fields with typed elements (list[str], list[int], list[BaseModel])
  • Add support for optional fields using | None type annotations
  • Add support for union types in field definitions
  • Add comprehensive exception hierarchy (CobjectricError, UnsupportedTypeError, UnsupportedListTypeError, MissingListTypeArgError, DuplicateFillRateFuncError, InvalidFillRateValueError, InvalidWeightError)
  • Add from_dict() class method for creating model instances from dictionaries
  • Add readonly model instances (immutable after creation)
  • Add documentation with quick start guide, API reference, and usage examples

Removed

  • Remove status() function from public API

Full Changelog: v1.0.1...v1.1.0