pyboxbuilder.box.types.magnetic.MagneticBox

class pyboxbuilder.box.types.magnetic.MagneticBox[source]

Bases: BoxTypeBase

Magnetic-closure lid box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Build the tray with blind magnet pockets in its top rim.

build_lid(spec: BoxSpec, decoration: object = None) → Bosl2Solid[source]

Return a plate that closes onto the rim, finishing at the declared height.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.