bigbang_io

bigbang.bigbang_io.email_to_dict(msg: mailbox.mboxMessage) → Dict[str, str]

Handles data type transformation from mailbox.mboxMessage to Dictionary.

bigbang.bigbang_io.email_to_mbox(msg: mailbox.mboxMessage, filepath: str, mode: str = 'w') → None

Saves mailbox.mboxMessage as .mbox file.

bigbang.bigbang_io.email_to_pandas_dataframe(msg: mailbox.mboxMessage) → pandas.core.frame.DataFrame

Handles data type transformation from mailbox.mboxMessage to pandas.DataFrame.

bigbang.bigbang_io.get_paths_to_dirs_in_directory(directory: str, folder_dsc: str = '*') → List[str]

Get paths of all directories matching file_dsc in directory

bigbang.bigbang_io.get_paths_to_files_in_directory(directory: str, file_dsc: str = '*') → List[str]

Get paths of all files matching file_dsc in directory

bigbang.bigbang_io.mlist_from_mbox(filepath: str) → list

Reads mailbox.mboxMessage objects from .mbox file. For a clearer definition on what a mailing list is, see: bigbang.ingress.abstract.AbstractList

bigbang.bigbang_io.mlist_from_mbox_to_pandas_dataframe(filepath: str) → pandas.core.frame.DataFrame

Reads mailbox.mboxMessage objects from .mbox file and transforms it to a pandas.DataFrame. For a clearer definition on what a mailing list is, see: bigbang.ingress.abstract.AbstractList

bigbang.bigbang_io.mlist_to_dict(msgs: List[mailbox.mboxMessage], include_body: bool = True) → Dict[str, List[str]]

Handles data type transformation from a List[mailbox.mboxMessage] to a Dictionary. For a clearer definition on what a mailing list is, see: bigbang.ingress.abstract.AbstractList

bigbang.bigbang_io.mlist_to_mbox(msgs: List[mailbox.mboxMessage], dir_out: str, filename: str) → None

Saves a List[mailbox.mboxMessage] as .mbox file. For a clearer definition on what a mailing list is, see: bigbang.ingress.abstract.AbstractList

bigbang.bigbang_io.mlist_to_pandas_dataframe(msgs: List[mailbox.mboxMessage], include_body: bool = True) → pandas.core.frame.DataFrame

Handles data type transformation from a List[mailbox.mboxMessage] to a pandas.DataFrame. For a clearer definition on what a mailing list is, see: bigbang.ingress.abstract.AbstractList

bigbang.bigbang_io.mlistdom_to_dict(mlists: List[List[mailbox.mboxMessage]], include_body: bool = True) → Dict[str, List[str]]

Handles data type transformation from a List[AbstractList] to a Dictionary. For a clearer definition on what a mailing archive is, see: bigbang.ingress.abstract.AbstractArchive

bigbang.bigbang_io.mlistdom_to_mbox(mlists: List[List[mailbox.mboxMessage]], dir_out: str)

Saves a List[AbstractList] as .mbox file. For a clearer definition on what a mailing archive is, see: bigbang.ingress.abstract.AbstractArchive

bigbang.bigbang_io.mlistdom_to_pandas_dataframe(mlists: List[List[mailbox.mboxMessage]], include_body: bool = True) → pandas.core.frame.DataFrame

Handles data type transformation from a List[AbstractList] to a pandas.DataFrame. For a clearer definition on what a mailing archive is, see: bigbang.ingress.abstract.AbstractArchive