A simple project to automate the creation of reports using the Toggl API.
Project description
TogglReports
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08484db52dfd3ca8f309c12d3bdbcbba6534722658ed02a504736a72456ffc5a
|
|
| MD5 |
bbc45d65df9a46744393fb7280bd1436
|
|
| BLAKE2b-256 |
8f649e4c1db6504ab6e7f2171347e65719aed065f5892742eca5e214adb34a69
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
743e38f5867c9992a8b80d0ee05969281f03f5bbd3c368da9a1d9bb02d404fb0
|
|
| MD5 |
87f157c7620608064aa7221fde7e27a9
|
|
| BLAKE2b-256 |
5da40c63f0a1096f8d9a4ec6a8b99da0616570bc470d66b4406bfef8d9b79efc
|