I’m looking to purchase a mailing label printer. One which prints a single label at a time from a roll of labels. Nothing fancy like you find on larger packages (UPS, Fedex, etc), just an address that you might put on a standard envelope. However, I want to send print jobs to it from my automation scripts. Does anyone have any experience with that? Any recommendation for printers which work better that way?
My thinking is that ideally, a command-line program would accept an address and print the label. Or even better, a Python library as I’m currently using Python for accessing the addresses, which are in a custom db, not in any standardized address book/contacts app. I don’t want to be copying to the clipboard and then pasting into the manufacturer’s app.
I did find a few Python libraries for printing to Brother label printers, which don’t require the manufacture provided drivers. However, each library only supports a small subset of printers and they each have limited testing. The one which supports the largest number of models is here. But it only accepts an image as input. I would still need to convert the address to an image first. A few others I found accept text, but only support a single printer model. I have the ability to create a Python script which accepts text and outputs an image, but would rather not need to.
Or maybe some manufacturer has considered this and built an API right into their software which accepts an address from third party programs. But I expect that is just wishful thinking.
For completeness, the printer would be connected to a Windows machine, but that should not make a difference for Python and/or command-line solutions.