Deep Work is defined by author Cal Newport as “Professional activity performed in a state of distraction-free concentration that push your cognitive capabilities to their limit". This script defines deep work as a function of consecutive time spent on a tracked task - by default, if a task was tracked for >60 minutes, it is classified as deep work.
Built on top of Toggl's API. Documentation found here.
- pip install requests
- change config API_TOKEN to your own Toggl API Token
- python run.py
Time Period: 2020-11-01 to 2020-11-07
Deep Work threshold set at: 60 mins.
You logged a total of 10.0 deep work hours.
You logged a total of 20.00 work hours.
Deep work made up 50.00% of your total work.
Copyright (c) 2020, Christian Vega-Munguia. MIT License