Skip to main content

Python wrapper for Toggl API.

Project description

Toggl Python API

https://pypi.python.org/pypi/toggl_python https://travis-ci.com/evrone/toggl_python https://toggl-python.readthedocs.io/en/latest/?badge=latest https://pyup.io/repos/github/evrone/toggl_python/

Toggl Python API

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toggl_python-0.2.9.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

toggl_python-0.2.9-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page