4 releases

0.2.0 Feb 29, 2024
0.1.2 Feb 29, 2024
0.1.1 Feb 29, 2024
0.1.0 Feb 12, 2024

#126 in Template engine

Download history 19/week @ 2024-02-11 14/week @ 2024-02-18 282/week @ 2024-02-25 29/week @ 2024-03-03 11/week @ 2024-03-10 1/week @ 2024-03-17 1/week @ 2024-03-24 9/week @ 2024-03-31 127/week @ 2024-04-07

80 downloads per month

WTFPL license

218 lines


GitHub Actions Status Crates

Automate your hours

  • Simple: timet --init to create a config
  • Handy: timet to fetch your hours for the current month


Simply run timet to get your hours for the current month.

$ timet

If you want to get the hours for a different month, you can use the -m and -y flags to specify the month and year.

$ timet -m 1 -y 2021  # Get the hours for January 2021


Get your API key from the Timet console and configure your config file using timet -i to create it/get the path for it. Then add the URl and key into the timet.json file.

Optionally, you can also create a template by creating a template file and template key in the config file. Note that the path is relative to the config directory. So a "template": "./timet.tmp" will be read as a file in the same directory as timet.json. These files use minijinja as the templating engine, see here for info about the syntax.


If your method of installation didn't include shell completion, you can manually source or save them with the timet --completion <shell> command.


$ timet --help
Usage: timet [OPTIONS] --completions <COMPLETIONS>

  -m, --month <MONTH>              Month to get the time entries for, defaults to this month
  -y, --year <YEAR>                Year to get the time entries for, defaults to this year
  -i, --init                       Create a new config file
      --completions <COMPLETIONS>  Create shell completions [possible values: bash, elvish, fish, powershell, zsh]
  -h, --help                       Print help
  -V, --version                    Print version


Currently, the package is available a couple of places, including Homebrew, AUR and Nix.

cargo install --locked timet-rs
  1. brew tap sondr3/homebrew-taps
  2. brew install sondr3/homebrew-taps/timet

Release pages

You can also download the matching release from the release tab, extracting the archive and placing the binary in your $PATH. Note that for Linux the unknown-linux-musl.tar.gz is preferred as it is statically linked and thus should run on any Linux distribution.




~232K SLoC