Vladmodels Katya Y117 47 154 < NEWEST >

Parameters ---------- spec: str Raw specification text.

# ------------------------------------------------------------------------- # 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

@property def dimensions_str(self) -> str: """Human‑readable dimensions, e.g. “47 mm × 154 mm”.""" return f"self.width_mm mm × self.height_mm} mm" Parameters ---------- spec: str Raw specification text

Raises ------ ValueError If the string does not contain exactly 5 tokens, or if numeric conversion fails, or if the brand token is not ``vladmodels``. """ tokens = _split_and_clean(spec.lower()) str: """Human‑readable dimensions

def __repr__(self) -> str: return (f"<VladModel self.brand/self.name " f"code=self.code size=self.width_mm×self.height_mm mm " f"area=self.area_mm2:, mm²>")

area = parse_vladmodels_spec("vladmodels katya y117 47 154").area_mm2 print(area) # → 7238