Python module to parse the OfficeTime time tracking program's .otd file format.
Added just the stuff I need for running analytics on my own data. Fork the project and add more if you wish!
Usage:
from officetime import OfficeTimeFile
myfile = OfficeTimeFile("my_officetime_file.otd")
for p in myfile.all_projects:
print "Project: %s" % p.name
for s in p.sessions:
print "\t - %s" % s.notes
all_sessions
: list of all sessionsall_projects
: list of all projectspath
: the path
uid
: unique identifier for this sessionproject
: reference to its parent projectstart_time
: time the session started as a datetimeend_time
: time the session ended as a datetimelength
: length of the session as a timedelta (not necessarily the difference between start and end)adjustment
: the number of seconds the user adjusted the length bynotes
: the notes the user entered for the session
uid
: unique identifier for this projectname
: name for this projectclient
: the clientarchived
: bool, whether it shows in the menu or notsessions
: list ofSession
objects associated with this project.