Python wrapper for Toggl API.
Project description
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.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for toggl_python-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0040edee090d8a8316e6a52d3e79cbd8dc56c7e5ce5215d3f3d10bc655a51020 |
|
MD5 | 4ea4304b9bb62f272750df676dd006f9 |
|
BLAKE2b-256 | c4e68fbd4ad3e7cf93c8419432beafc7c0e0c07b1d6f20ab72e91e6ae2defea2 |