Skip to main content

A simple project to automate the creation of reports using the Toggl API.

Project description

TogglReports

Latest Release Python package License, MIT Python, 3.9+


TogglReports is a Python library for creating time entry reports from Toggl's detailed report data.

Prerequisites

Installation

Use the package manager pip to install TogglReports.

pip install git+https://github.com/ro-56/togglReports

Usage

TogglReports comes by default with only one type of report (sgu). To create a sgu report, run the following script:

togglReports build sgu

The first time you run the script, you will be prompted to configure your installation. Follow each step to configure the core application and each report type installed.

To reset and redo the configuration script, run the script:

togglReports config

Report: SGU - Expected Toggl Data Structure

  • Time entry: The name and duration of the sgu task;
  • Project: The sgu project;
  • Tag: The sgu category (if multiple, only one is used);

While configuring the report, you can define a specific tag to indicate that a time entry should be ignored while creating a report.

FAQ

1. How to locate the Toggl API Token?

Your personal Toggl api token can be found following these instructions.

2. How to create other report types?

Included in this repository is an example report type containing the basic files structure and required configuration for a report type.

The src\togglreports\plugins\example.py file is where the report is built: where the data is manipulated from the information extracted from the Toggl API and where the output file is created.

The data\reports_example.json file is where you define the report required configuration parameters.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

togglreports-2.2.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

togglreports-2.2.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file togglreports-2.2.2.tar.gz.

File metadata

  • Download URL: togglreports-2.2.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for togglreports-2.2.2.tar.gz
Algorithm Hash digest
SHA256 08484db52dfd3ca8f309c12d3bdbcbba6534722658ed02a504736a72456ffc5a
MD5 bbc45d65df9a46744393fb7280bd1436
BLAKE2b-256 8f649e4c1db6504ab6e7f2171347e65719aed065f5892742eca5e214adb34a69

See more details on using hashes here.

File details

Details for the file togglreports-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: togglreports-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.8.2 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for togglreports-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 743e38f5867c9992a8b80d0ee05969281f03f5bbd3c368da9a1d9bb02d404fb0
MD5 87f157c7620608064aa7221fde7e27a9
BLAKE2b-256 5da40c63f0a1096f8d9a4ec6a8b99da0616570bc470d66b4406bfef8d9b79efc

See more details on using hashes here.

Supported by

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