CupsPpd - files /etc/cups/ppd/*

Parser to parse the content of files /etc/cups/ppd/*

class insights.parsers.cups_ppd.CupsPpd(context)[source]

Bases: Parser, dict

Class to parse /etc/cups/ppd/* files.

Sample output for files:

*PPD-Adobe: "4.3"
*% Copyright 2007-2014 by Apple Inc.
*% Copyright: 1997-2007 by Easy Software Products.
*FormatVersion: "4.3"
*FileVersion: "2.2"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "ippeve.ppd"
*Manufacturer: "Canon"
*ModelName: "iR-ADV C3525/3530 PPD"
*Product: "(iR-ADV C3525/3530 PPD)"
*NickName: "iR-ADV C3525/3530 PPD"
*ShortNickName: "iR-ADV C3525/3530 PPD"
*cupsFilter2: "application/vnd.cups-pdf application/pdf 10 -"
*cupsFilter2: "application/vnd.cups-postscript application/postscript 10 -"


>>> type(cups_ppd)
<class 'insights.parsers.cups_ppd.CupsPpd'>
>>> cups_ppd["PCFileName"]
>>> cups_ppd["cupsFilter2"]
['"application/vnd.cups-pdf application/pdf 10 -"', '"application/vnd.cups-postscript application/postscript 10 -"']

This method must be implemented by classes based on this class.