$ python Python 2.5.1 (r251:54863, Sep 11 2007, 23:45:49) [GCC 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cups >>> from pprint import * >>> c=cups.Connection() >>> for printer in c.getPrinters().keys(): ... print printer ... pprint (c.getPrinterAttributes(printer)) ... ML-1610 {'auth-info-required': 'none', 'charset-configured': 'utf-8', 'charset-supported': ['us-ascii', 'utf-8'], 'color-supported': False, 'compression-supported': ['none', 'gzip'], 'copies-default': 1, 'copies-supported': (1, 100), 'cups-version': '1.3.2', 'device-uri': 'usb://Samsung/ML-1610', 'document-format-supported': ['application/octet-stream', 'application/openofficeps', 'application/pdf', 'application/postscript', 'application/vnd.cups-postscript', 'application/vnd.cups-raster', 'application/vnd.cups-raw', 'application/vnd.hp-hpgl', 'application/x-cshell', 'application/x-csource', 'application/x-perl', 'application/x-shell', 'image/gif', 'image/jpeg', 'image/png', 'image/tiff', 'image/x-bitmap', 'image/x-photocd', 'image/x-portable-anymap', 'image/x-portable-bitmap', 'image/x-portable-graymap', 'image/x-portable-pixmap', 'image/x-sgi-rgb', 'image/x-sun-raster', 'image/x-xbitmap', 'image/x-xpixmap', 'text/html', 'text/plain', ''], 'finishings-default': 3, 'finishings-supported': 3, 'generated-natural-language-supported': ['de-de'], 'ipp-versions-supported': ['1.0', '1.1'], 'job-hold-until-default': 'no-hold', 'job-hold-until-supported': ['no-hold', 'indefinite', 'day-time', 'evening', 'night', 'second-shift', 'third-shift', 'weekend'], 'job-k-limit': 0, 'job-page-limit': 0, 'job-priority-default': 50, 'job-priority-supported': 100, 'job-quota-period': 0, 'job-sheets-default': ('none', 'none'), 'job-sheets-supported': ['none', 'classified', 'confidential', 'secret', 'standard', 'topsecret', 'unclassified'], 'media-default': 'A4', 'media-supported': ['Auto', 'Manual', 'OFF', 'NORMAL', 'THICK', 'THIN', 'BOND', 'OHP', 'CARD', 'LABEL', 'USED', 'COLOR', 'ENV', 'Letter', 'Legal', 'A4', 'Executive', 'Ledger', 'A3', 'Env10', 'Monarch', 'C5', 'DL', 'B4', 'B5', 'EnvISOB5', 'A5', 'A6', 'EnvISOB6', 'C6', 'Folio', 'Custom'], 'multiple-document-handling-supported': ['separate-documents-uncollated-copies', 'separate-documents-collated-copies'], 'multiple-document-jobs-supported': True, 'multiple-operation-time-out': 60, 'natural-language-configured': 'de-de', 'notify-attributes-supported': ['printer-state-change-time', 'notify-lease-expiration-time', 'notify-subscriber-user-name'], 'notify-events-default': ['job-completed'], 'notify-events-supported': ['job-completed', 'job-config-changed', 'job-created', 'job-progress', 'job-state-changed', 'job-stopped', 'printer-added', 'printer-changed', 'printer-config-changed', 'printer-deleted', 'printer-finishings-changed', 'printer-media-changed', 'printer-modified', 'printer-restarted', 'printer-shutdown', 'printer-state-changed', 'printer-stopped', 'server-audit', 'server-restarted', 'server-started', 'server-stopped'], 'notify-lease-duration-default': 86400, 'notify-lease-duration-supported': (0, 2147483647), 'notify-max-events-supported': 100, 'notify-pull-method-supported': ['ippget'], 'notify-schemes-supported': ['mailto', 'rss', 'testnotify'], 'number-up-default': 1, 'number-up-supported': [1, 2, 4, 6, 9, 16], 'operations-supported': [2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 16, 17, 18, 20, 22, 23, 24, 25, 26, 27, 28, 34, 35, 16385, 16386, 16387, 16388, 16389, 16390, 16391, 16392, 16393, 16394, 16395, 16396, 16397, 16398], 'orientation-requested-default': '(unknown IPP tag)', 'orientation-requested-supported': [3, 4, 5, 6], 'page-ranges-supported': True, 'pages-per-minute': 1, 'pdl-override-supported': ['not-attempted'], 'port-monitor': 'none', 'port-monitor-supported': ['none'], 'printer-current-time': '(IPP_TAG_DATE)', 'printer-error-policy': 'stop-printer', 'printer-error-policy-supported': ['abort-job', 'retry-job', 'stop-printer'], 'printer-info': 'Samsung ML-1610', 'printer-is-accepting-jobs': True, 'printer-is-shared': True, 'printer-location': '', 'printer-make-and-model': 'Samsung ML-1610, 1.0', 'printer-more-info': 'ipp://localhost.localdomain:631/printers/ML-1610', 'printer-name': 'ML-1610', 'printer-op-policy': 'default', 'printer-op-policy-supported': ['default'], 'printer-state': 5, 'printer-state-change-time': 1190196715, 'printer-state-message': 'Unplugged or turned off', 'printer-state-reasons': 'paused', 'printer-type': 176196, 'printer-up-time': 1190197403, 'printer-uri-supported': ['ipp://localhost:631/printers/ML-1610'], 'queued-job-count': 0, 'uri-authentication-supported': ['requesting-user-name'], 'uri-security-supported': ['none']}