Toggl Python API
Toggl Python API
- Based on open Toggl API documentation: https://github.com/toggl/toggl_api_docs/blob/master/toggl_api.md
- Free software: MIT license
- Documentation: https://toggl-python.readthedocs.io.
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 the 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())
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.