demesstify.database package¶
Submodules¶
demesstify.database.chat module¶
Provides functionality for interacting with and extracting messages from the local iMessage database.
- class demesstify.database.chat.ChatDB(db_location: Optional[str] = None)¶
Bases:
objectInteracts with the local iMessage database to get messages.
- Properties:
- db_location:
The filepath to the local iMessage database.
- property db_location: Optional[str]¶
Gets the location of the iMessage database.
- get_all_attachments() DataFrame¶
Gets the dataframe of all attachments ever exchanged.
- get_all_messages() DataFrame¶
Gets the dataframe of all messages ever exchanged.
- get_attachments_from_email(email: str) DataFrame¶
Gets the dataframe of all attachments in a conversation with a user that has the specified email.
- get_attachments_from_handle_id(handle_id: int) DataFrame¶
Gets the dataframe of all attachments in a conversation with a user that has the specified handle ID.
The handle ID would come from prior knowledge or from deducing it by viewing the database directly.
- get_attachments_from_phone(phone: str) DataFrame¶
Gets the dataframe of all attachments in a conversation with a user that has the specified phone number.
- get_messages_from_email(email: str) DataFrame¶
Gets the dataframe of all messages with a user that has the specified email.
- get_messages_from_handle_id(handle_id: int) DataFrame¶
Gets the dataframe of all messages with a user that has the specified handle ID.
The handle ID would come from prior knowledge or from deducing it by viewing the database directly.
- get_messages_from_phone(phone: str) DataFrame¶
Gets the dataframe of all messages with a user that has the specified phone number.
- read_sql_query(query: str, params: Optional[Any] = None) DataFrame¶
Queries with database with a specified SQL command.