budosystems.models.core

Core set of classes from which most other model classes will inherit.

Module Attributes

BudoType

Type variable

Functions

from_dict(cls, data)

Creates a new instance of the BudoType cls from the provided data.

validate(obj)

Object validator.

Classes

BasicInfo

Basic Entity fields for objects that are meant to be user-facing.

Entity

Instance level commonalities for all model classes.

MissingBudoObject

Sentinel BudoBase object.

MissingUUID

Sentinel UUID for determining if one is missing from the arguments when instantiating an Entity

ValueObject

Common data and operations for Value Objects.

from_dict(cls: type[BudoType], data: Mapping[str, Any]) BudoType

Creates a new instance of the BudoType cls from the provided data.

validate(obj: Any) bool

Object validator.

Calls each validator defined (methods with a name starting with _validate_).

Returns:

True if all validators are satisfied, False if any validator fails.