I am using Python and pycups.
I would like to know if there is a way to get the state of my printer using pycups.
I tried this :
conn = cups.Connection()
printers = conn.getPrinters()
The problem is that even when the printer is off, I get the printer's name in my variable printers. I would like it to be empty when the printer is off.
Does anyone know which fonction I should use to get the state of my printer ?