GithubHelp home page GithubHelp logo

se000ra / tasktime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from svenhertle/tasktime

0.0 2.0 0.0 184 KB

Calculate and print spent time for a project from taskwarrior

License: MIT License

Python 100.00%

tasktime's Introduction

tasktime

tasktime reads information of a project from taskwarrior and calculates, how much time was spent with this project. tasktime can print CSV or readable output.

Usage

./tasktime.py [parameters...] <project>

Parameters

-h, --help              Show help message
-c, --csv               Print output in CSV format
-n, --null              Print also tasks without time information (default: no)
-t, --task [cmd]        Change task command

Prepare taskwarrior

You have to add journal.time=on to your taskwarrior configuration (.taskrc). Taskwarrior will save start and stop annotations from now on. This annotations are evaluated by tasktime.

Note time with taskwarrior

taskwarrior has the operations start and stop. This information is used to calculate the spent time. You have to start and stop the tasks you work on.

Example:

task 2 start

# Work on task 2...

task 2 stop

Examples

Default output

./tasktime.py cool-project

Output:

Project: cool-project

Do something cool
    Duration: 00:13:05
Do something really cool
    Duration: 02:18:35

Sum: 02:31:40

Print also tasks without time

./tasktime.py -n cool-project

Output:

Project: cool-project

Do something cool
    Duration: 00:13:05
Do something boring
Do something really cool
    Duration: 02:18:35

Sum: 02:31:40

CSV output

./tasktime.py -c cool-project

Output:

"Project","cool-project"
"",""
"Description","Duration (hours)"
"",""
"Do something cool","00:13:05"
"Do something really cool","02:18:35"
"",""
"Sum","02:31:40"

Contact and copyright

Sven Hertle <[email protected]>

tasktime is distributed under the MIT license. See http://www.opensource.org/licenses/MIT for more information.

tasktime's People

Contributors

svenhertle avatar ehlovader avatar fmeynadier avatar

Watchers

 avatar James Cloos 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.