The pydatamail
is a python module to apply data science principles to email processing. It stores the emails in an
SQL
database and generates pandas.DataFrame
objects for futher processing and plotting.
Install the pydatamail
package using pip
:
pip install pydatamail
Or alternatively using conda
:
conda install -c conda-forge pydatamail
Import the pygmailfiler
module
from pydatamail DatabaseInterface, get_from_pie_plot, get_labels_pie_plot, get_number_of_email_plot, Message, email_date_converter
The individual components are briefly explained below:
DatabaseInterface
-SQLalchemy
based interface forSQL
database to store emailsget_from_pie_plot
- plot a pie chart of the distribution of emails sendersget_labels_pie_plot
- plot a pie chart of the distribution of email labelsget_number_of_email_plot
- plot the number of incoming emails over timeMessage
- abstract class to implementpydatamail
compatible email adaptersemail_date_converter
- convert the email date to pythondatetime
dates.