nextstep_plist¶
-
nextstep_plist.load(fp)[source]¶ Deserialize
fp(a.read()-supporting file-like object containing a NeXTSTEP property list document) to a Python object.
-
nextstep_plist.loads(s)[source]¶ Deserialize
s(astrorunicodeinstance containing a NeXTSTEP property list document) to a Python object.If
sis astrinstance and is encoded with an ASCII based encoding other than utf-8 (e.g. latin-1) then an appropriateencodingname must be specified. Encodings that are not ASCII based (such as UCS-2) are not allowed and should be decoded tounicodefirst.
-
class
nextstep_plist.PListDecoder(encoding=None)[source]¶ Simple NeXSTSTEP property list decoder
Performs the following translations in decoding by default:
PList Python string unicode binary data bytes dictionary dict array list -
decode(s, _w=<built-in method match of _sre.SRE_Pattern object>)[source]¶ Return the Python representation of
s(astrorunicodeinstance containing a plist document)
-
raw_decode(s, idx=0)[source]¶ Decode a plist document from
s(astrorunicodebeginning with a plist document) and return a 2-tuple of the Python representation and the index inswhere the document ended.This can be used to decode a plist document from a string that may have extraneous data at the end.
-