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

Shell Completion

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

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

zsh

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

bash

Add this to your ~/.bashrc:

source /path/to/whyd-completion.bash

Or install system-wide:

sudo cp scripts/whyd-completion.bash /etc/bash_completion.d/whyd

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.4.tar.gz (7.2 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.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whyd-0.1.4.tar.gz
  • Upload date:
  • Size: 7.2 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.4.tar.gz
Algorithm Hash digest
SHA256 e6401db1028ebad7a5ce59a43b215ec82015340c9a6409b26c0a424c5e2ee1e2
MD5 415e22fae887307af1024616d898b223
BLAKE2b-256 28fe4de7285fe8a74b645c8704d35a3c228dfd35a57fa8aa3fb653eaaec63fe6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whyd-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5c519e3cb5fb677e4bad4939c9075ead9c1eb59858ba33ba847fa8f8ab8d42
MD5 f2989c7be524bc9827286e8e72705a9b
BLAKE2b-256 8d6a1ba8177eafd0efe65db51bb919f0d0b6c2b14f4dcbba2f9aeeddf510d682

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