API Reference

timekill

timekill.load

timekill.load.load_all()

timekill.suggest

class timekill.suggest.Activity(**data)

A suggested activity for the user.

condition: Callable[[Context], bool]
description: str
do(context=None)

Execute the activity.

Return type:

None

duration: int | None
pretty()
Return type:

str

priority: int
schedule: timekill.suggest.schedule.Schedule | None
title: str
type: Optional[Literal['any', 'work', 'leisure', 'exercise', 'relax', 'social', 'learn', 'meditate', 'other']]