Brother Ql
Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
About This Project
brother_ql is a Python package for controlling Brother QL series label printers, including models such as the QL-710W, QL-800, and QL-1060N. It implements the printers' raster language, enabling users to create raster instruction files from image files or programmatically from Python scripts, and to send those files to a printer. The package provides a command line interface with commands for printing, sending instruction files, analyzing raster data, discovering connected printers, and listing supported label sizes.
The package communicates with printers through three backends: pyusb for cross-platform USB access, a network backend for WiFi- and Ethernet-enabled models, and a linux_kernel backend that uses the /dev/usb/lp0 device on Linux. Because it bypasses the operating system's printing system and printer drivers, it allows pixel-level control over the output, including page sizes and margins. The project also supports options such as dithering, thresholding, compression, 600 dpi printing on supported models, and two-colour printing on DK-22251 labels for the QL-800 series.
The package is suited to users who need to print labels on Linux systems or single-board computers such as the Raspberry Pi, where Brother does not provide a driver, or to users producing barcodes and other content that requires precise placement. It is installable from the Python Package Index and is primarily intended for Python 3, although label file creation also works under Python 2.