plistlib.dumps()

plistlib.dumps(value, *, fmt=FMT_XML, sort_keys=True, skipkeys=False) Return value as a plist-formatted bytes object. See the documentation for dump() for an explanation of the keyword arguments of this function. New in version 3.4.

plistlib.Data

class plistlib.Data(data) Return a “data” wrapper object around the bytes object data. This is used in functions converting from/to plists to represent the <data> type available in plists. It has one attribute, data, that can be used to retrieve the Python bytes object stored in it. Deprecated since version 3.4: Use a bytes object instead.

plistlib.dump()

plistlib.dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False) Write value to a plist file. Fp should be a writable, binary file object. The fmt argument specifies the format of the plist file and can be one of the following values: FMT_XML: XML formatted plist file FMT_BINARY: Binary formatted plist file When sort_keys is true (the default) the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dicti

platform.release()

platform.release() Returns the system’s release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined.

platform.python_version_tuple()

platform.python_version_tuple() Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to '0').

platform.version()

platform.version() Returns the system’s release version, e.g. '#3 on degas'. An empty string is returned if the value cannot be determined.

platform.system_alias()

platform.system_alias(system, release, version) Returns (system, release, version) aliased to common marketing names used for some systems. It also does some reordering of the information in some cases where it would otherwise cause confusion.

platform.uname()

platform.uname() Fairly portable uname interface. Returns a namedtuple() containing six attributes: system, node, release, version, machine, and processor. Note that this adds a sixth attribute (processor) not present in the os.uname() result. Also, the attribute names are different for the first two attributes; os.uname() names them sysname and nodename. Entries which cannot be determined are set to ''. Changed in version 3.3: Result changed from a tuple to a namedtuple.

platform.system()

platform.system() Returns the system/OS name, e.g. 'Linux', 'Windows', or 'Java'. An empty string is returned if the value cannot be determined.

platform.python_revision()

platform.python_revision() Returns a string identifying the Python implementation SCM revision.