Skip to content

pyppd 1.1.1

Latest
Compare
Choose a tag to compare
@tillkamppeter tillkamppeter released this 19 Feb 16:33

Bug fix release, to make compressing PPD files vastly faster, avoid weird "*Product" entries in PPD files, and to not use wrong model names for Brother BR-Script printers.

  • Replace bytes with bytearray for massive speed up
    Bytes type is very inefficient for append/concatenation and involves copying the entire data. This one-line fix speeds up foomatic-db compression from ~20 minutes to 10 seconds (Pull request #5).
  • Correction for Brother BR-Script PPD files
    Use the "*Product" entry for the model name.
  • When generating PPD index, avoid using single "*Product" entries in PPD
    When creating the PPD index and there is a PPD with only one, single "*Product" line, use the model name of this line only if the PPD has no "*1284DeviceID" and no "*ModelName", as a single "*Product" entry usually either repeats "*1284DeviceID" and/or "*ModelName" or contains something weird.