pyboxbuilder.sleeves.find_sleeve

pyboxbuilder.sleeves.find_sleeve(brand: str, name: str, grade: str | None = None) → Sleeve | None[source]

Return the first sleeve matching brand, name and grade.

grade is optional because a brand usually sells one size under one grade per product line; pass it to disambiguate when a size exists in several thicknesses (e.g. Mayday “Standard” vs “Premium”).

Returns None when no sleeve matches, so callers can fall back or raise as they see fit.