Hardware Catalog API Reference
purrint.catalog.PrinterModel
dataclass
Static description of a printer model.
Source code in src/purrint/catalog.py
dots_per_line = 384
class-attribute
instance-attribute
Printable width in dots (384 dots = 48 mm at 203 dpi).
family
instance-attribute
Protocol family used to talk to it.
mxw01_board
property
True for every V5X/V5X_S device (they share the MXW01 board protocol).
name
instance-attribute
Normalised Bluetooth name (upper case, no spaces).
reports_overheat_d2 = False
class-attribute
instance-attribute
Sends the dedicated 51 78 D2 overheat notification.
simplified = False
class-attribute
instance-attribute
The vendor app shows a reduced feature set for this model.
supports_gray = False
class-attribute
instance-attribute
Can print 16-level grayscale (V5X family).
vendor_model
instance-attribute
Model code used by the vendor app (V5G, V5X or V5X_S).
purrint.catalog.Family
Bases: str, Enum
Wire protocol spoken by a printer.
Source code in src/purrint/catalog.py
V5G = 'V5G'
class-attribute
instance-attribute
51 78 frames, one command per raster line, flow control on the notify channel.
V5X = 'V5X'
class-attribute
instance-attribute
22 21 frames, whole bitmap streamed on a separate data channel (MXW01 board).
purrint.catalog.all_models(family=None)
Every known model, optionally filtered by protocol family, in catalog order.
purrint.catalog.get_model(name)
purrint.catalog.identify(name, manufacturer_data=None)
Find the model for an advertised Bluetooth name.
Tries, in order: exact match, the name without hyphens/dots, and the longest catalog name that is
a prefix of the advertised one ("MX10-1A2B" -> MX10). Returns None for unknown names.