Skip to main content

CLI tool and Python library to access Toggl Track https://toggl.com/track/

Project description

toggl-track

PyPI Changelog Tests License

CLI tool and Python library to access Toggl Track https://toggl.com/track/

Installation

Install this tool using pip:

pip install toggl-track

Usage

For listing the time entries in the last 24 hours, run:

$ tgl entries list
                                                                Time Entries                                                                     
                                                                                                                                                 
  At           Description                                                                  Start      Stop       Duration         Tags          
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 
  2023-01-28   toggl-track: list time entries                                               04:33 AM                                         
  2023-01-27   ESF: telemetry                                                               05:23 PM   07:19 PM   an hour          type:goal     
  2023-01-27   ESF: telemetry                                                               03:28 PM   05:00 PM   an hour          type:goal     
  2023-01-27   Community: Fix parsing error client port is blank and adjust for timeStamp   03:13 PM   03:28 PM   15 minutes       type:support  
  2023-01-27   Community: Azure Signin Module authentication_processing_details Issue       02:47 PM   03:13 PM   25 minutes       type:support  
  2023-01-27   sync                                                                         02:31 PM   02:47 PM   16 minutes       type:sync     
  2023-01-27   🍜 Lunch                                                                     01:11 PM   02:31 PM   an hour                    
  2023-01-27   Community: Fix parsing error client port is blank and adjust for timeStamp   12:19 PM   12:29 PM   10 minutes       type:support  
  2023-01-27   Community: Fix parsing error client port is blank and adjust for timeStamp   11:54 AM   12:06 PM   11 minutes       type:support  
  2023-01-27   Community: Azure Signin Module authentication_processing_details Issue       09:30 AM   11:54 AM   2 hours          type:support  
  2023-01-27   sync                                                                         08:34 AM   09:30 AM   56 minutes       type:sync     
  2023-01-27   toggl-track: list time entries                                               07:04 AM   08:34 AM   an hour                    

For help, run:

toggl-track --help

You can also use:

python -m toggl_track --help

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd toggl-track
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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-track-0.1.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

toggl_track-0.1.0-py3-none-any.whl (9.4 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