Vladmodels Katya Y117 47 154 Page

vladmodels katya y117 47 154 – into a useful data object and does a small bit of domain‑specific work (calculating the “size” of the product).

# ------------------------------------------------------------------------- # Example usage (you can delete or comment this block in production code) # ------------------------------------------------------------------------- if __name__ == "__main__": example = "vladmodels katya y117 47 154" model = parse_vladmodels_spec(example) vladmodels katya y117 47 154

@dataclass(frozen=True, slots=True) class VladModel: """A tiny data‑class representing a single VladModels product.""" brand: str # e.g. "vladmodels" name: str # e.g. "katya" code: str # e.g. "y117" width_mm: int # first numeric value (mm) height_mm: int # second numeric value (mm) vladmodels katya y117 47 154 – into a

if brand != "vladmodels": raise ValueError(f"Brand must be 'vladmodels', got 'brand'") "katya" code: str # e

try: width = int(width_str) height = int(height_str) except ValueError as exc: raise ValueError( f"Width and height must be integer numbers; got 'width_str' and 'height_str'" ) from exc

Expected format (case‑insensitive): "<brand> <name> <code> <width> <height>" Example: "vladmodels katya y117 47 154"