Status and Exceptions Reference
Exceptions Hierarchy
All library-specific exceptions derive from purrint.exceptions.PurrintError.
purrint.exceptions.PurrintError
purrint.exceptions.PrinterNotFoundError
Bases: PurrintError
No matching printer was found while scanning.
purrint.exceptions.OutOfPaperError
purrint.exceptions.OverheatError
purrint.exceptions.ConnectionFailedError
Bases: PurrintError
Bluetooth connection or GATT discovery failed.
purrint.exceptions.NotConnectedError
Bases: PurrintError
An operation needs a connected printer.
Status and Telemetry Data
purrint.status.PrinterStatus
dataclass
Snapshot of what the printer last told us. None means "not reported by this model".
Source code in src/purrint/status.py
ok
property
True when nothing prevents printing.
purrint.status.DeviceInfo
dataclass
Identity data that can be queried from the printer.
Source code in src/purrint/status.py
head_type = None
class-attribute
instance-attribute
V5X only: "high_voltage", "low_voltage" or "unknown".