Skip to content

a Python script that calls an API (Toggl) and calculates amount of "deep work" hours logged during a period.

License

Notifications You must be signed in to change notification settings

cvega21/deep-work-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggl API - Deep Work Tracker

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.

API

Built on top of Toggl's API. Documentation found here.

Installation

  • pip install requests
  • change config API_TOKEN to your own Toggl API Token
  • python run.py

Expected Output Example

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.

License

Copyright (c) 2020, Christian Vega-Munguia. MIT License

About

a Python script that calls an API (Toggl) and calculates amount of "deep work" hours logged during a period.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages