Skip to main content

CLI time tracker for What Have You Done?!

Project description

whyd — CLI for What Have You Done?!

Command-line time tracker for What Have You Done?!, with zsh tab completion.

Installation

pip install whyd

Or from source:

git clone https://github.com/xrtic/whyd.git
cd whyd
pip install .

Configuration

Create ~/.whyd/config with your credentials:

mkdir -p ~/.whyd
cat > ~/.whyd/config <<EOF
API_KEY=your-api-key-here
WHYD_URL=https://api.whyd.io/
HOME_DIR=~/.whyd
EOF

Your API key is on the Account page at whyd.io.

You can also override the API key at runtime with the WHYD_API_KEY environment variable:

WHYD_API_KEY=your-key whyd -today

Usage

Time Tracking:
  whyd -n -p <project> -t <duration> -m <message>   Add a time entry
  whyd -s                                            Start the internal timer
  whyd -v                                            View elapsed timer time
  whyd -x                                            Record and reset timer
  whyd -clear                                        Discard the current timer

Reporting:
  whyd -today                List time tracked today
  whyd -week                 List time tracked this week
  whyd -month                List time tracked this month
  whyd -lastmonth            List time tracked last month
  whyd -c <client>           Filter reports by client ID
  whyd -ap                   List all projects/clients (parsable)
  whyd -apt                  List all projects/clients (table)
  whyd -d <n>                Delete entry #n from the last report

Duration format: 1h, 30m, 1h30m

Examples

# Log 90 minutes to a project
whyd -n -p ab12 -t 1h30m -m "Implemented login flow"

# See what you tracked today
whyd -today

# Start a timer, then record it later
whyd -s
whyd -x

zsh Completion

Copy scripts/_whyd to a directory on your $fpath:

cp scripts/_whyd ~/.zsh/completions/_whyd

Make sure that directory is on your fpath in ~/.zshrc:

fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit

Tab completion covers all flags, and -p completes from your project list, -m from recent messages, and -t from common durations.

Run whyd -refresh to update the local completion caches after adding new projects or clients.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whyd-0.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whyd-0.1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file whyd-0.1.3.tar.gz.

File metadata

  • Download URL: whyd-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for whyd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b1d4a209eac7407ea4e5f8cbb62b2251a67a710bbde57560630531fa8d74b9ad
MD5 f2da03e6783271419d3921f61e868b8b
BLAKE2b-256 640cdc5659e1c1ab7dd7e0a21e145b13691b4e831e0dcdd71d91670019c1b873

See more details on using hashes here.

File details

Details for the file whyd-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: whyd-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for whyd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10f73bebeb693c2684b07fc45ae4f66f194c4be2d6694c177812b915b9ca920c
MD5 49d8c6d62ed373e5564b7eca8b69d07a
BLAKE2b-256 8f6ccbd05105debc7d74abb185da1ad4a58f7cdd08629519aaa8b594ad7c58ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page