#invoice #time-tracking #csv #toggl

bin+lib pint-rs

Parse Toggl time-tracking CSV files to generate invoices

4 releases

0.1.3 Jun 12, 2023
0.1.2 Jun 11, 2023
0.1.1 Jun 11, 2023
0.1.0 Jun 11, 2023

#463 in Date and time

GPL-3.0 license

22KB
325 lines

🍻 Pint-rs

Author: Karl Bonnici (@kbonnici)

A command-line tool to parse Toggl reports and calculate invoice charges. Written in Rust, saving you time, allowing you to spend more of it doing what matters 🍺

Overview

Pint-rs is a command-line utility to parse a CSV file generated from the Toggl time-tracking app and automate the process of calculating the values to be inserted into an invoice, such as the following:

  • Total number of hours worked
  • Hours worked per project
  • Subtotal
  • GST applied
  • Grand total

Requirements

  • A CSV file generated from the Toggl time-tracking app

Installation

cargo install pint-rs

Usage

pint-rs --file <FILE_PATH> --gst <GST> --pay_rate <PAY_RATE>
  • GST is a percentage value (e.g. 0.05 for 5%)
  • Pay rate is an hourly rate (e.g. 50 for $50 per hour)

Dependencies

~5.5MB
~82K SLoC