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

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

manualwakatime-0.1.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for manualwakatime-0.1.2.tar.gz
Algorithm Hash digest
SHA256 48de7b884cc8fc4ba8d671a1f069a7a522d54356ac756de41e089e91679bd5cc
MD5 5962a2762ba10b9d24c1924e8492469c
BLAKE2b-256 54e5d148b1fcd9ffd957c2815142cf0fd235c8f83426a82750d95d3ef652a020

See more details on using hashes here.

File details

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

File metadata

  • Download URL: manualwakatime-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for manualwakatime-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a48ac035233883b7570c9858609bfc6760bca615328834fcc7083846935bfbf
MD5 ad13d22a05e6667041f66894f6e65268
BLAKE2b-256 20e392578c180ced3ca0fb9c29300d001a2ee442e7390b6b207aa6d5bd285306

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