• Stars
    star
    109
  • Rank 318,105 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created over 15 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a command-line time tracker

timed

Timed is a command-line time tracker.

Summary

$ timed start myproject
starting work on myproject
  at 16:35 on 07 Feb 2011

$ timed
working on myproject:
  from     16:35 on 07 Feb 2011
  to now,  17:00 on 07 Feb 2011
        => 0h25m have elapsed

$ timed stop
worked on myproject
  from    16:35 on 07 Feb 2011
  to now, 17:40 on 07 Feb 2011
       => 1h5m elapsed

$ timed summary
myproject   1h5m

$ cat ~/.timed
myproject: 16:35 on 07 Feb 2011 - 17:40 on 07 Feb 2011

$ cat ~/.timed | grep "Jan 2011" | timed parse

Installation

From GitHub:

  $ git clone git://github.com/adeel/timed.git
  $ cd timed
  # python setup.py install

From Pypi:

  # pip install timed

For Arch Linux, Tom Vincent (@tlvince) has prepared a PKGBUILD.

Usage

timed: alias for 'timed status'

timed status:
       print current status

timed start <project>:
       start tracking for <project>

timed stop:
       stop tracking for the active project

timed summary:
       show a summary of all projects

timed parse:
       parses a stream with text formatted as a Timed logfile and shows a
       summary

timed help:
       print help

Bonus

Enable tab completion for project names by putting this in your .bashrc:

shopt -s progcomp                                                               
timed_complete() {                                                              
  local partial                                                                 
  COMPREPLY=()                                                                  
  partial=${COMP_WORDS[COMP_CWORD]}                                             
  COMPREPLY=($(compgen -W '$( timed projects )' -- $partial))                   
  return 0                                                                      
}                                           
complete -F timed_complete -o dirnames timed

Thanks

Thanks to Tom Vincent.

License

Copyright (c) 2011 Adeel A. Khan [email protected].

MIT license.

More Repositories

1

pump

A dead simple abstraction of HTTP for Python.
Python
61
star
2

veneer

Modal dialogs in JavaScript.
JavaScript
55
star
3

php-pdf-parser

a pdf parser in php
PHP
42
star
4

picasso

A simple web framework built on Pump.
Python
28
star
5

google-scholar-scraper

Python library for scraping Google Scholar [no longer supported, use https://github.com/ckreibich/scholar.py]
Python
20
star
6

ring-http-basic-auth

Ring middleware for basic HTTP authentication.
Clojure
9
star
7

srt-shift

[deprecated, use https://github.com/smacke/subsync]
Python
6
star
8

berry

Deprecated. Use http://github.com/adeel/picasso
Python
5
star
9

picasso-blog-example

An example blog built with Picasso.
Python
5
star
10

shucker

A tool for stripping design elements out of HTML documents and leaving only the content.
Python
3
star
11

paypal

A simple Paypal client for Python.
Python
3
star
12

razgovore

a web-based group chat app
JavaScript
2
star
13

notify

Python library for sending SMS and email notifications.
Python
2
star
14

typeset

A Clojure DSL for typesetting documents that consist of claims and their proofs.
Clojure
1
star
15

salat-times

PHP
1
star
16

web-development-with-clojure-talk

JavaScript
1
star
17

froelich

A library for DOM manipulation in ClojureScript.
Clojure
1
star
18

adeel.github.com

1
star
19

pump-jinja

A Pump middleware that uses the Jinja templating system to render responses.
Python
1
star
20

beagle-site-2

1
star
21

timezones

Python
1
star
22

ios-classes

Some reusable iOS classes.
1
star
23

beagle-media

1
star
24

expensive

Clojure
1
star
25

pump-flash

A Pump middleware for adding flash message support via sessions.
Python
1
star