pyboxbuilder.sleeves.Sleeve

class pyboxbuilder.sleeves.Sleeve(brand: str, name: str, card_size: tuple[float, float], sleeve_size: tuple[float, float], thickness_microns: int | None = None, pack_count: int | None = None, sku: str | None = None, grade: str | None = None)[source]

Bases: object

A sleeve size sold by a brand in a particular thickness grade.

brand

Manufacturer name.

Type:

str

name

The generic size name ("Mini European", "Standard", …).

Type:

str

card_size

(width, length) of the largest card that fits — the “inner card size max”.

Type:

tuple[float, float]

sleeve_size

(width, length) of the sleeve itself — the outside dimensions.

Type:

tuple[float, float]

thickness_microns

Sleeve film thickness in microns (µm), when known.

Type:

int | None

pack_count

Sleeves per pack, when known.

Type:

int | None

sku

Manufacturer’s product/SKU code, when known.

Type:

str | None

grade

Thickness tier — "Standard" or "Premium" (Mayday, Sleeve Kings), "Prime / Matte" or "Retro" (Gamegenic).

Type:

str | None

fits(card_width: float, card_length: float) → bool[source]

Return True if a card of the given size slides into this sleeve.

property card_length : float

Max card length that fits (mm).

property card_thickness : float

Thickness of one sleeved card, in mm (the card plus the sleeve film).

property card_width : float

Max card width that fits (mm).

property footprint_margin : float

Extra the sleeve adds around a card (mm), applied to both axes.

The larger of the two per-axis differences, so a single margin covers both when sizing a well.