pyboxbuilder.helpers.CardSpec

class pyboxbuilder.helpers.CardSpec(card_size: CardSize | tuple[float, float], count: int, sleeve: SleeveType = SleeveType.UNSLEEVED)[source]

Bases: object

Calculates width, length, and depth for a deck of cards based on sleeve type.

Parameters:
card_size: CardSize | tuple[float, float]

CardSize enum or custom (width, length) tuple in mm.

count: int

Number of cards in the deck.

sleeve: SleeveType = SleeveType.UNSLEEVED

SleeveType selection.

as_tuple() → tuple[float, float, float][source]

Return (width, length, depth) tuple.

property depth : float

Depth of the sleeved card deck (mm).

property length : float

Length of the sleeved card deck (mm).

property width : float

Width of the sleeved card deck (mm).