fork of the wakatime cli program for rana
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luna 57ef0ab810 update README 2 weeks ago
tests fix tests on py2 1 month ago
wakatime api: fix error when base_url not given 2 weeks ago
.appveyor.yml run Windows tests on Python 3.4 through 3.6 8 months ago
.coveragerc remove unused python token parser method 2 years ago
.gitignore pull vim-rana changes into rana-cli 2 weeks ago
.travis.yml re-enable travis tests on Python 2.6 9 months ago
AUTHORS add, update AUTHORS 2 weeks ago
HISTORY.rst fix typo 1 month ago
LICENSE update copyright year to 2016 3 years ago add NOTICE to manifest for pypi 4 years ago
NOTICE add NOTICE file for vendorized python libraries 4 years ago update README 2 weeks ago
README.rst add base_url setting to README 2 weeks ago
dev-requirements.txt downgrade mock for py2.6 1 month ago
setup.cfg include non-executed python files in coverage report 3 years ago add support for python 3.6 2 years ago
tox.ini run tests locally on py 3.6 2 years ago


Command line interface to rana.

This is a fork of the wakatime CLI tool for use with rana.

Rana is not affiliated with WakaTime.

Go to to install the plugin for your text editor or IDE.

Installation / Forking WakaTime plugins

Note: You shouldn’t need to directly use this package unless you’re building your own plugin or forking an existing WakaTime plugin for support with Rana.

Since plugins install the WakaTime CLI directly, the recommendation for plugin forkers is to copy this repository into the plugin’s installation of WakaTime CLI.

For example, this would happen on vim-rana:

cp -rv path/to/rana-cli/wakatime/* path/to/vim-rana/packages/wakatime/

WakaTime plugins can be found in

WakaTime plugins with Rana support can be found in


rana-cli aims to be a seamless replacement of WakaTime CLI. As such, all existing documentation of WakaTime CLI applies to rana-cli.


rana-cli, as of right now, has a single extra field in the configuration file: api_key, so that you can switch easily between rana instances (e.g prod/local)

The config file is found on $WAKATIME_HOME/.wakatime.cfg, which is the user’s current home directory for UNIXes.

An example config file is as follows.

debug = false
api_key = your-api-key
base_url =
hide_file_names = false
hide_project_names = false
exclude =
include =
include_only_with_project_file = false
status_bar_icon = true
status_bar_coding_activity = true
offline = true
proxy = https://user:[email protected]:8080
no_ssl_verify = false
ssl_certs_file =
timeout = 30
hostname = machinename

projects/foo = new project name
^/home/user/projects/bar(\d+)/ = project{0}

disable_submodules = false

The default config file may be:

debug = false
hidefilenames = false
ignore =


Check for other config options.

Running tests

Install dev requirements:

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

Run tests:



Thank you to the WakaTime developers and contributors for writing the CLI tool.