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

Inheritance diagram of pysiriproxy.plist.BinaryPlist

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 biplist module to convert a Python dictionary into a binary plist.

DateKeys

The DateKeys property contains the list of object keys that contain dates that need to be swapped with datetime objects.

TtsRegex

The tag that indicates the start of a tts tag. This is a non-greedy regular expression so that it matches to only the first end curly brace.

UnicodeKeys

The UnicodeKeys property contains a list of the object keys whose values are strings that may contain hexadecimal characters and need to be converted to unicode strings.

toBinary()[source]

Convert the data into a binary plist.

The Keys class

Inheritance diagram of pysiriproxy.plist.Keys

class pysiriproxy.plist.Keys

The Keys class defines various properties which contain strings which are keys to the dictionary objects sent between the iPhone and Apple’s server.

AceId

The aceId key.

AssistantId

The key for the AssistantId property of an object.

Birthday

The birthday key for an object.

Class

The class name for the object.

Data

The key for the data property of an object.

Date

The date key for an object.

DateSent

The key for the dateSent property of an object.

DisplayText

The key for the displayText property of an object.

DueDate

The due date key for an object.

FirstName

The key for the firstName property of an object.

FullName

The key for the fullName property of an object.

Group

The group for the object.

Identifier

The key for the identifier property of an object.

Interpretations

The interpretations key for an object.

Label

The key for the label property of an object.

LastName

The key for the lastName property of an object.

MsgSender

The key for the msgSender property of an object.

Number

The key for the number property of an object.

OrderedContext

The key for the orderedContext property of an object.

Outgoing

The key for the outgoing property of an object.

Phones

The key for the phones property of an object.

Phrases

The phrases key for an object.

Properties

The properties key for the object.

Recognition

The recognition key for an object.

RefId

The refId for the object.

RemoveSpaceAfter

The removeSpaceAfter key for an object.

RemoveSpaceBefore

The removeSpaceBefore key for an object.

SelectionResponse

The key for the selectionResponse property of an object.

SessionValidationData

The key for the SessionValidationData property of an object.

SpeakableSelectionResponse

The key for the speakableSelectionResponse property of an object.

SpeakableText

The speakable text key for an object.

SpeechId

The key for the SpeechId property of an object.

Street

The street value.

Text

The text key for an object.

TheatricalReleaseDate

The theatrical release date.

Title

The title key for an object.

Tokens

The tokens key for an object.

Utterance

The utterance key for an object.

Version

The version key for an object.

The Plist class

Inheritance diagram of pysiriproxy.plist.Plist

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

Table Of Contents

Previous topic

The interpreter module

Next topic

The packetPlayer module

This Page