Toggl Python API

Sponsored by evrone.com

Based on open Toggl API documentation

Installation

pip install toggl-python or use poetry poetry add toggl-python

Usage example

Get authenticated user time entries:

from toggl_python import TokenAuth, TimeEntries

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(TimeEntries(auth=auth).list())

Get information about authenticated user:

from toggl_python import TokenAuth, Users

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(Users(auth=auth).me())

Get information about authenticated user workspaces:

from toggl_python import TokenAuth, Workspaces

if __name__ == "__main__":
    auth = TokenAuth('AUTH_TOKEN')
    print(Workspaces(auth=auth).list())