CUPS or IPP in Python?
guettli at thomas-guettler.de
Mon Mar 8 12:24:51 CET 2004
Am Sun, 07 Mar 2004 17:43:47 +0000 schrieb Russell Lear:
> I'm interested in doing printing from within Python. If someone has wrapped
> the CUPS library in Python, that'd be great. Unfortunately, I can't find
> such a beast. PyCUPS sounded good, but it seems to have evaporated.
> If there isn't a CUPS wrapper, perhaps someone has implemented an IPP stack
> in Python? Since CUPS uses IPP I should be able to use the printer's URI
> to submit jobs. Right?
what do you want to do?
If you just want to print a file. You can do this:
cmd='lpr -P fooprinter foodoc.ps'
raise("Error while '%s'" % cmd)
lpr is available for windows, too. But it needs to
be installed manually.
More information about the Python-list