The plist module
The plist module contains the Plist, and BinaryPlist classes.
These classes are designed to encapsulate a plist object, and be able
to convert a standard plist into a binary formatted plist.
The BinaryPlist class
-
class pysiriproxy.plist.BinaryPlist(data, logger, logFile='/dev/null')[source]
The BinaryPlist class takes in a dictionary containing data and
provides the ability to convert the dictionary into a binary plist.
Note
This class uses the plistlib module to convert the
dictionary into an XML plist, and it uses the plutil.pl script
to convert the XML plist into a binary plist.
-
toBinary()[source]
Convert the data into a binary plist.
The Plist class
-
class pysiriproxy.plist.Plist[source]
The Plist class contains methods pertaining to converting objects
to plist objects and manipulating them.
-
classmethod convert(objectData)[source]
Convert the given object into a plist.
- objectData – The data for this object
-
classmethod toBinary(data, logger, logFile='/dev/null')[source]
Convert an object into a binary plist.
- data – The data to convert into a binary plist
- logger – The logger
- logFile – The file to which output will be logged