Code Monkey home page Code Monkey logo

toggl-report's Introduction

CLI tools to process Toggl reports

Preparing

make prepare
. venv/bin/activate

or

sudo apt install pip3-venv
python3 -m venv env
. venv/bin/activate
pip install -r requirements.txt

Usage

Combine Toggl report with issues list by issue number

combine.py [-h] [-s SUMMARY] [-t TIME] [-i ISSUES] [-f FILTER] [-o OUTPUT]

Issue numbers extracted from Description columns of summary files and compared with Issue column of issue list.

Optional arguments

  • -h, --help — show help message and exit
  • -s SUMMARY, --summary SUMMARY — read summary report from file
  • -t TIME, --time TIME — read time entries from file
  • -i ISSUES, --issues ISSUES — read issues list from file
  • -f FILTER, --filter FILTER — filter input file by column=value
  • -o OUTPUT, --output OUTPUT — output to file

Any of SUMMARY or TIME is enough

File formats

Appropriate file format is choosing according to its extension.

Both input and output
  • CSV — Comma Separated Values — file.csv
Output only
  • HTML — Hypertext Markup Language — file.htm, file.html
  • JSON — JavaScript Notation Object — file.json, file.js
  • Microsoft Excel — file.xlsx

Examples

Read Track summary report, combine it with issue list issues.csv and put the result to merged.csv

./combine.py -s Toggl_Track_summary_report_2023-03-01_2024-02-29.csv \
  -i issues.csv -o merged.csv

Filter input file by project name

./combine.py -s Toggl_Track_summary_report_2023-03-01_2024-02-29.csv \
  -f Project=Something \
  -i issues.csv -o merged.csv

toggl-report's People

Contributors

shoorick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.