title: How to detect if my printer is turned off with cups?
body: <p>I am using Python and pycups.</p>
  
  <p>I would like to know if there is a way to get the state of my printer using pycups.</p>
  
  <p>I tried this :</p>
  
  <pre><code>conn = cups.Connection()
  printers = conn.getPrinters()
  </code></pre>
  
  <p>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.</p>
  
  <p>Does anyone know which fonction I should use to get the state of my printer ?</p>