kabbes_icloud package

Submodules

kabbes_icloud.AttributeOption module

class kabbes_icloud.AttributeOption.AttributeOption(dictionary)[source]

Bases: Menu

get_attr(att)[source]

returns self.<att_string>

kabbes_icloud.AttributeOptions module

class kabbes_icloud.AttributeOptions.AttributeOptions(name, list_of_options)[source]

Bases: ParentPluralList, Menu

SUFFIX = '_Options'
add_Option(new_Option)[source]

kabbes_icloud.Connection module

class kabbes_icloud.Connection.Connection(*args, **kwargs)[source]

Bases: ParentClass

get_connection(*args, account_email=None, account_password=None)[source]

kabbes_icloud.ICloudContact module

class kabbes_icloud.ICloudContact.ICloudContact(dictionary={}, json_string=None)[source]

Bases: Menu

ID_COL = 'contactId'
att_has_Options(att)[source]
check_has_iMessage()[source]
export_to_dict()[source]
export_to_json()[source]
firstName = ''
get_attr(att)[source]

returns self.<att_string>

get_atts(atts)[source]

returns all values of atts for class instance

get_id()[source]
get_id_col()[source]
get_multi_preffered_Option(att, list_pref_atts, list_pref_values, index_pref=0)[source]

att = “phones”, list_pref_atts = [‘label’,’other_field’], list_pref_values = [[‘IPHONE’,’MOBILE’],[‘OTHER_VALUE’]]

get_preffered_Option(att, pref_att, pref_values, index_pref=0, att_Options=None)[source]

att = “phones”, pref_att = ‘label’, pref_values = [‘IPHONE’, ‘MOBILE’], index_pref = 0

lastName = ''
update(dictionary={}, json_string=None)[source]

kabbes_icloud.ICloudContacts module

class kabbes_icloud.ICloudContacts.ICloudContacts(conn=None, df=Empty DataFrame Columns: [] Index: [], json_string=None, dictionary={})[source]

Bases: ParentPluralDict, Menu

COLS = ['contactId', 'data']
DATA_COL = 'data'
TABLE_NAME = 'ICloudContacts'
add_ICloudContact(Contact_inst)[source]

Add a singular iCloud_Contact to the Contacts dictionary

export_to_df()[source]

export all contacts to a pandas DataFrame

export_to_dict()[source]

export all contacts to a dictionary

export_to_json()[source]

export all contacts to a json format

lambda_on_Contacts(lambda_func)[source]

given a lambda function (lambda Contact: Contact.get_attr(“firstName”)), put each return statement in a dict

merge_ICloudContacts(Contacts_inst, how='left', overwrite=False)[source]
remove_ICloudContact(Contact_inst)[source]

Remove a singular iCloud_Contact from the Contacts dictionary

select_Contacts_where(dictionary={})[source]

Returns an iCloud_Contacts instance where all Contacts have keys=values in the dictionary dictionary = {‘firstName’: ‘James’, ‘lastName’: ‘Kabbes’} returns an instance with all Contacts that contain James Kabbes

show_attribute_breakdown()[source]
update_Contacts(dictionary={}, json_string=None)[source]

{ contactId1: Dictionary1, contactId2: Dictionary2 }

Module contents