Skip to main content

timcol

timcol helps you track your time in a plaintext format compatible with Ledger-CLI. Similar tools exist within the plain text accounting ecosystem.

It can help you generate basic HTML or CSV invoices and even give them live updates via the flexible upload (sync) command.

Installation

Releases are available on PyPI. In descending order of preference, I recommend installing it using uv, pipx, or pip:

  1. uv tool install timcol
  2. pipx install timcol
  3. pip install timcol

Trying Out timcol

Try some timcol commands to get a feel for how to use it:

$ timcol start Client1 "Writing email"
$ timcol cancel
-i 2024/07/29 04:28:21 PM Client1  Writing email
$ timcol backfill Client1 "Writing email" "3 hours ago" 15m
$ timcol start Client1 "Setting up project skeleton."
$ timcol swap Client1 "Implementing milestone 1"
$ timcol stop
$ timcol resume 
$ timcol reg
timestamp          duration    account    task
-----------------  ----------  ---------  ----------------------------
Jul 29 @ 01:30 PM  0:15:00     Client1    Writing email
Jul 29 @ 04:30 PM  0:00:15     Client1    Setting up project skeleton.
Jul 29 @ 04:30 PM  0:00:20     Client1    Implementing milestone 1
Jul 29 @ 04:31 PM  0:00:17*    Client1    Implementing milestone 1
Jul 29 SUBTOTAL    0:15:52
TOTAL TIME         0:15:52

Run timcol edit to open up the ledger file for direct editing.

Configuring timcol

Depending on your preferences, you may want to set up a central git repo for your ledger file. You can do this by setting TIMCOL_HOME in your .bashrc, .bash_profile, or equivalent file.

export TIMCOL_HOME=/Users/johnsullivan/personal/timekeeping-ledger

You may also want to alias or symlink timcol to a shorter name, like t. If you want to use an alias to do this, timcol has an environmental variable TIMCOL_NAME you can set so that --help text matches the aliased name:

alias t='TIMCOL_NAME=t timcol'

Full Help Output

usage: timcol [-h] [-f FILE] {edit,register,reg,csv,html,start,swap,backfill,resume,stop,cancel,upload,sync,log-path} ...

Tracks time in a plaintext ledger format compatible with Ledger-CLI.

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Location of log file. Defaults to $TIMCOL_HOME/ledger.dat if TIMCOL_HOME is set, otherwise defaults to ./ledger.dat.

SUB COMMANDS:
  {edit,register,reg,csv,html,start,swap,backfill,resume,stop,cancel,upload,sync,log-path}
    edit                Open ledger for editing.
    register (reg)      Human friendly format.
    csv                 CSV-formatted invoice.
    html                HTML-formatted invoice.
    start (swap)        Start a new task (use swap to stop and immediately start a new task)
    backfill            Record a complete task given its timestamp and duration.
    resume              Restart the last task.
    stop                Stop current task.
    cancel              Delete current task.
    upload (sync)       Execute the file `upload` in the directory the log file is in.
    log-path            Print the path of the log file then exit.

$TIMCOL_NAME can be set to change the name of timcol in help text. This allows easy renaming of timcol via an alias like `alias t='TIMCOL_NAME=t
timcol'`

Metadata

Release files for timcol 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timcol 0.2.0
File Size Uploaded
timcol-0.2.0.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timcol 0.2.0
File Interpreter ABI Platform
timcol-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / timcol-0.2.0.tar.gz

Download URL timcol-0.2.0.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f79be33c309ecef9f3ea689c047a6f0c6e3b7738415666a311927c6e8c79966b
BLAKE2b-256 checksum
How to use checksums
b38bf87b493ff7c7134742cf1f91ab0d9d92f9cdb192854d600900d1f9c70a5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / timcol-0.2.0-py3-none-any.whl

Download URL timcol-0.2.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6c991d55d73a0680450d2f4bafa091edf2d61d45cf50a3b27cbf670d04a5369
BLAKE2b-256 checksum
How to use checksums
7c2fee26b5659411bdd95d3e5a922837a73e9dd620ed6d03b3069fbaf90bcf1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page