• This repository has been archived on 09/Oct/2021
  • Stars
    star
    1,021
  • Rank 45,070 (Top 0.9 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command line interface used by all WakaTime text editor plugins.
Tests Windows Tests Coverage Version Supported Python Versions Code time tracker

WakaTime

This repo is deprecated. Use the Go version of wakatime-cli instead.

Command line interface to WakaTime used by all WakaTime text editor plugins.

Go to http://wakatime.com/editors to install the plugin for your text editor or IDE.

Installation

Note: You shouldn't need to directly use this package unless you are building your own plugin or your text editor's plugin asks you to install the WakaTime CLI manually.

Each plugin installs the WakaTime CLI for you, except for the Emacs WakaTime plugin.

Install the plugin for your IDE/editor:

https://wakatime.com/editors

Each plugin either comes pre-bundled with WakaTime CLI, or downloads the latest version from GitHub for you.

Usage

If you are building a plugin using the WakaTime API then follow the Creating a Plugin guide.

For command line options, run wakatime --help.

Some more usage information is available in the FAQ.

Configuring

Options can be passed via command line, or set in the $WAKATIME_HOME/.wakatime.cfg config file. Command line arguments take precedence over config file settings. The $WAKATIME_HOME/.wakatime.cfg file is in INI format. An example config file with all available options:

[settings]
debug = false
api_key = your-api-key
hide_file_names = false
hide_project_names = false
hide_branch_names =
exclude =
    ^COMMIT_EDITMSG$
    ^TAG_EDITMSG$
    ^/var/(?!www/).*
    ^/etc/
include =
    .*
include_only_with_project_file = false
status_bar_icon = true
status_bar_coding_activity = true
offline = true
proxy = https://user:pass@localhost:8080
no_ssl_verify = false
ssl_certs_file =
timeout = 30
hostname = machinename
[projectmap]
projects/foo = new project name
^/home/user/projects/bar(\d+)/ = project{0}
[git]
disable_submodules = false

For commonly used configuration options, see examples in the FAQ.

Troubleshooting

Read How to debug the plugins.

Make sure to set debug=true in your ~/.wakatime.cfg file.

Common log file location in your User $WAKATIME_HOME directory:

~/.wakatime.log

Each plugin also has its own log file:

  • Atom writes errors to the developer console (View -> Developer -> Toggle Developer Tools)
  • Brackets errors go to the developer console (Debug -> Show Developer Tools)
  • Cloud9 logs to the browser console (View -> Developer -> JavaScript Console)
  • Coda logs to /var/log/system.log so use sudo tail -f /var/log/system.log in Terminal to watch Coda 2 logs
  • Eclipse logs can be found in the Eclipse Error Log (Window -> Show View -> Error Log)
  • Emacs messages go to the messages buffer window
  • Jetbrains IDEs (IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, WebStorm) log to idea.log (locating IDE log files)
  • Komodo logs are written to pystderr.log (Help -> Troubleshooting -> View Log File)
  • Netbeans logs to it's own log file (View -> IDE Log)
  • Notepad++ errors go to AppData\Roaming\Notepad++\plugins\config\WakaTime.log (this file is only created when an error occurs)
  • Sublime Text logs to the Sublime Console (View -> Show Console)
  • TextMate logs to stderr so run TextMate from Terminal to see any errors (enable logging)
  • Vim errors get displayed in the status line or inline (use :redraw! to clear inline errors)
  • Visual Studio logs to the Output window, but uncaught exceptions go to ActivityLog.xml (more info...)
  • VS Code logs to the developer console (Help -> Toggle Developer Tools)
  • Xcode type sudo tail -f /var/log/system.log in a Terminal to view Xcode errors

Useful API Endpoints:

Useful Resources:

Contributing

To install the dev environment:

virtualenv venv
. venv/bin/activate
pip install -r dev-requirements.txt
pip install tox

Before contributing a pull request, make sure tests pass:

tox

The above will run tests on all Python versions available on your machine. To just run all tests with your current Python version:

nosetests

To run only a single test method, specify the test file location, test class, and test method. For example, to only run the Git project detection test:

nosetests tests.test_project:ProjectTestCase.test_git_project_detected

Many thanks to all contributors!

More Repositories

1

vscode-wakatime

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.
TypeScript
1,214
star
2

jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
Java
1,124
star
3

vim-wakatime

Vim plugin for automatic time tracking and metrics generated from your programming activity.
Vim Script
1,015
star
4

wakaq

Background task queue for Python backed by Redis, a super minimal Celery
Python
569
star
5

sublime-wakatime

Sublime Text 2 & 3 plugin for automatic time tracking and metrics generated from your programming activity.
Python
525
star
6

browser-wakatime

Chrome extension for automatic time tracking and metrics generated from your browsing activity.
TypeScript
397
star
7

xcode-wakatime

Xcode plugin for automatic time tracking and metrics generated from your programming activity.
Objective-C
393
star
8

visualstudio-wakatime

Visual Studio plugin for automatic time tracking and metrics generated from your programming activity.
C#
331
star
9

atom-wakatime

Atom plugin for automatic time tracking and metrics generated from your programming activity.
JavaScript
317
star
10

wakatime-cli

Command line interface used by all WakaTime text editor plugins
Go
281
star
11

wakatime-mode

Emacs plugin for automatic time tracking and metrics generated from your programming activity.
Emacs Lisp
268
star
12

eclipse-wakatime

Eclipse plugin for automatic time tracking and metrics generated from your programming activity.
Java
174
star
13

netbeans-wakatime

NetBeans plugin for automatic time tracking and metrics generated from your programming activity.
Java
162
star
14

brackets-wakatime

Brackets plugin for automatic time tracking and metrics generated from your programming activity.
JavaScript
145
star
15

macos-wakatime

Mac system tray app for automatic time tracking and metrics generated from your Xcode, Figma, Postman, etc. usage.
Swift
131
star
16

komodo-wakatime

Komodo plugin for automatic time tracking and metrics generated from your programming activity.
Python
118
star
17

wakadump

Command line tool for converting WakaTime data dump files into various formats.
Python
106
star
18

notepadpp-wakatime

Notepad++ plugin for automatic time tracking and metrics generated from your programming activity.
C#
79
star
19

desktop-old

Plugin install helper app, unfinished.
TypeScript
75
star
20

office-wakatime

Office Solution add-ins for automatic time tracking and metrics generated from your programming activity.
C#
67
star
21

sketch-wakatime

Sketch plugin for automatic time tracking and metrics generated from your Sketch usage.
JavaScript
62
star
22

statuspage

Uptime and latency status page for website and api.
41
star
23

ssms-wakatime

SQL Server Management Studio plugin to quantify your coding with automatic time tracking and metrics about your programming. https://wakatime.com
C#
40
star
24

wakatime-mobile

mobile WakaTime app for displaying dashboard metrics
JavaScript
31
star
25

delphi-wakatime

Embarcadero Delphi plugin for automatic time tracking and metrics generated from your programming activity.
Pascal
29
star
26

wakatime-blog

Markdown post content for the WakaTime blog
23
star
27

micro-wakatime

Micro editor plugin for automatic time tracking and metrics generated from your programming activity.
Lua
22
star
28

wakaq-ts

Background task queue for TypeScript backed by Redis, a super minimal Celery
TypeScript
19
star
29

gedit-wakatime

Gedit 3.8+ plugin for automatic time tracking and metrics generated from your programming activity.
Python
17
star
30

slack-demo-chat

Chat relay server using socket.io for WakaTime + Slack demo
CSS
16
star
31

c9-wakatime

Cloud9 plugin for automatic time tracking and metrics generated from your programming activity.
JavaScript
14
star
32

discord-wakatime

BetterDiscord plugin for automatic time tracking and stats about your Discord usage
JavaScript
12
star
33

adobe-xd-wakatime

Adobe XD plugin for automatic time tracking and metrics generated from your XD usage.
JavaScript
12
star
34

semver-action

Auto-generate the next semantic version.
Go
12
star
35

figma-wakatime

Figma plugin for automatic time tracking and metrics generated from your Figma usage.
TypeScript
12
star
36

desktop-wakatime

Windows & Linux system tray app for automatic time tracking and metrics generated from your Figma, Postman, etc. usage.
TypeScript
12
star
37

coda-wakatime

Coda plugin for automatic time tracking and metrics generated from your programming activity.
Objective-C
11
star
38

texstudio-wakatime

TeXstudio macro for automatic time tracking and metrics generated from your TeXstudio usage.
Python
10
star
39

textmate-wakatime

TextMate plugin for automatic time tracking and metrics generated from your programming activity.
Objective-C++
10
star
40

eric6-wakatime

Eric6 & Pymakr plugin for automatic time tracking and metrics generated from your programming activity.
Python
7
star
41

repl-python-wakatime

Python REPL plugin for automatic time tracking and metrics generated from your programming activity.
Python
7
star
42

vencord-wakatime

Vencord plugin for automatic time tracking and stats about your Discord usage
TypeScript
6
star
43

legal

legal documents for WakaTime
6
star
44

nuget-wakatime-shared-extension-utils

Shared C# utilities used in wakatime extensions
C#
5
star
45

WakaTime.novaextension

Nova plugin for automatic time tracking and metrics generated from your programming activity.
JavaScript
5
star
46

wing-wakatime

A plugin to quantify your programming inside Wing IDE.
Python
4
star
47

monodevelop-wakatime

WakaTime add-in for VSMac/MonoDevelop/Xamarin Studio
C#
3
star
48

homebrew-tap

Homebrew Tap for WakaTime
Ruby
3
star
49

prompt-style.lua

Lua plugin for powerlevel10k style prompt and WakaTime time tracking
Lua
2
star
50

jupyterlab-wakatime

WakaTime for JupyterLab
Python
2
star
51

tcl-prompt

Tcl plugin for powerlevel10k style prompt and WakaTime time tracking
Tcl
2
star
52

Reply-Plugin-Prompt

Perl Reply plugin for powerlevel10k style prompt and WakaTime time tracking
Perl
1
star
53

wakatime.io

Resources and documentation for learning about WakaTime
TypeScript
1
star