Graph metadata about your Gmail inbox.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sample-output
.gitignore
Inbox count by age.ipynb
Inbox count over time.ipynb
Length of time a message spends in inbox.ipynb
README.md
compute_ages_on_each_day.py
compute_time_in_inbox_by_date_received.py
requirements.txt

README.md

gmail-graphs

Been using gmail-logger to collect data about your Gmail inbox, and want to generate graphs like those in my blog post, Three Years of Logging My Inbox Count? Perfect, because that's all this repo does.

Fair warning: a lot of this code is inelegant. Don't study it as an example of how to do Pandas/Matplotlib right.

Quick start

Make sure you have ipython, pip, and virtualenv installed.

git clone https://github.com/mddub/gmail-graphs
cd gmail-graphs
virtualenv venv && . venv/bin/activate
pip install -r requirements.txt
ipython notebook --pylab inline

Figures 1 & 2: Inbox count over time

Figure 2: Inbox count over time

Follow the Inbox count over time IPython Notebook.

Figure 3: Inbox count by age

Figure 3: Inbox count by age

See compute_ages_on_each_day.py and the Inbox count by age IPython Notebook to graph the results.

Figure 4: Length of time a message spends in inbox, by date of arrival

Figure 4: Length of time a message spends in inbox, by date of arrival

See compute_time_in_inbox_by_date_received.py and the Length of time a message spends in inbox IPython Notebook to graph the results.

Issues / enhancements

I've tried my best to generalize this code to run against anyone's gmail-logger data, but I can't foresee how well others' data will play with it. If you run into issues, please file an issue. If you have enhancements, pull requests are welcome.