text: import os
  
  from togglore import toggl
  from togglore import utils
  from togglore import config
  
  
  class Togglore(object):
      def __init__(self):
          config_path = os.path.join(os.path.expanduser('~'), '.togglore')
          self.cfg = config.Config.read_from_file(config_path)
  
          self.toggle = toggl.TogglClient(self.cfg.api_key, self.cfg.user_id, self.cfg.workspace)
          self.time_calculator = utils.WorkTimeCalculator(
              work_hours_per_day=self.cfg.work_hours_per_day,
              public_holidays=self.cfg.public_holidays,
              vacation_days=self.cfg.vacation_days,
              working_days=self.cfg.working_days
          )
  
      def diff(self, date_range):
          actual_hours = utils.sum_time_of_entries(self.toggle.time_entries(date_range))
          expected_hours = self.time_calculator.time_to_work_in_range(date_range)
  
          return actual_hours, expected_hours
  