| Store | Cart

CUPS or IPP in Python?

From: Thomas Guettler <guet...@thomas-guettler.de>
Mon, 08 Mar 2004 12:24:51 +0100
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'
if ret:
    raise("Error while '%s'" % cmd)

lpr is available for windows, too. But it needs to
be installed manually.


Recent Messages in this Thread
Russell Lear Mar 07, 2004 05:43 pm
Thomas Guettler Mar 08, 2004 11:24 am
Messages in this thread