Skip to main content

Manual WakaTime tracker — send heartbeats with a live TUI

Project description

PyPI Python License

manualwakatime

Manual WakaTime tracker with a live terminal UI.
Sends heartbeats every 60 seconds while you work — no editor plugin required.

Works with the official WakaTime API and compatible backends like Hackatime.

┌──────────────────────────────────────────────┐
│                  Tracking                    │
│                                              │
│     Project:    my-awesome-project           │
│     Elapsed:    00:12:35                     │
│     Heartbeats: 12                           │
│     Last beat:  23s ago                      │
│     Status:     ● Running                    │
│                                              │
├──────────────────────────────────────────────┤
│     Press q or Ctrl+C to stop                │
└──────────────────────────────────────────────┘

Why?

Sometimes you aren't writing code in an editor. Maybe you're:

  • Reviewing PRs in a browser
  • Designing in Figma
  • Writing docs in Notion
  • Pair programming over a call

manualwakatime lets you track any activity as a WakaTime project with a single command. Fire and forget.

Install

pip install manualwakatime

Requires Python 3.8+.

Quick start

mwt start my-project

A fullscreen TUI opens. Heartbeats are sent every 60 seconds. Press q or Ctrl+C when you're done, and a summary prints:

  Stopped  Tracked 01:23:45  83 heartbeat(s) sent.

No project name? Run mwt start — it shows your recent projects and lets you pick one by number or type a new name.

Commands

mwt start <project>    Start tracking a project
mwt start              Pick from recent projects interactively
mwt projects           List all tracked projects
mwt config             Show API key / URL status
mwt --help             Show help

Configuration

API credentials are read from (highest priority first):

Source Variable
Environment WAKATIME_API_KEY
Environment WAKATIME_API_URL
WakaTime config ~/.wakatime.cfgapi_key
WakaTime config ~/.wakatime.cfgapi_url

If no api_url is set, it defaults to https://api.wakatime.com/api/v1.

Example ~/.wakatime.cfg

[settings]
api_key = waka_your_api_key_here
api_url = https://api.wakatime.com/api/v1

Get your API key at wakatime.com/settings/api-key.

How it works

  1. On startup, mwt reads your API key and URL from config or environment.
  2. A background thread sends a heartbeat every 60 seconds.
  3. The TUI refreshes 8 times per second, showing elapsed time, heartbeat count, and status.
  4. Press q or Ctrl+C to stop cleanly — the alternate screen restores your terminal.

Project history is saved locally to %APPDATA%/mwt/projects.json (Windows) or ~/.config/mwt/projects.json (Linux/macOS).

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

manualwakatimetracker-0.1.2.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.

manualwakatimetracker-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file manualwakatimetracker-0.1.2.tar.gz.

File metadata

  • Download URL: manualwakatimetracker-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for manualwakatimetracker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 770a3784663a664538308f20d1b32523542450309feb53aa3df6351935b6425b
MD5 40f33905341a32fb1a853dc1be577008
BLAKE2b-256 25545aa584a60886efe41c5e442ff3f0a3b8f3a77ea68b605a7bf8dd56fa99fd

See more details on using hashes here.

File details

Details for the file manualwakatimetracker-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for manualwakatimetracker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8018a398d25c529a697fd15ae3842b3fe3c46f7efd08b6e0c13339e07bc442
MD5 54a2480aba3429fa4d5947643fdcbcd6
BLAKE2b-256 12128af6725f0d8b90213ff9e5b7bb59f2243176c767a8acecdaa0e0fd51dcd2

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