Skip to main content

Pandas-friendly time tracking from the CLI

Project description

Timetracker-csv

PyPI - Version DOI GitHub License

Track time spent on multiple projects, one repo at a time from the CLI

Time is saved in pandas-friendly CSV files.

CSV files for each project can be combined into a single CSV file for analysis and plotting.

timetracker

Advantages

  • Libre Software (aka open-source)
  • Quick to set up
  • Own your data
  • NO invasive tracking ever of keystrokes, browser activity, mouse-clicks, etc., as is done by multitudinous other timetracking apps
  • Human-readable ASCII data stored in CSV (comma-separated values) plaintext files:
    • Ready for pandas, the Python Data Analysis Library for tabular data
    • Editable using many editors, including vim and Notepad++
  • Modify your data if you forget to log time
  • Quickly see the current task being recorded
  • Quickly see elapsed time spent on the current task
  • No clicking and clicking and clicking on a GUI
  • No required use of the internet or cloud-based services
  • Data supported for each time interval includes:
    • A required free-form descriptive message
    • An optional activity or type
    • Any number of tags
  • Export data for import by external time-tracking viewers

Quickstart

The name used by this time tracker is determined by the USER environmental variable by default.

1) Initialize a timetracker project

$ cd ~/projects/meetinghouse

$ trk init
Initialized timetracker directory: /home/bez/projects/meetinghouse/.timetracker

2) Start the timer

$ trk start
Timetracker started now: Mon 09:00 AM: 2025-03-24 09:00:00

3) Stop the timer

$ trk stop -m 'Received architectural plans'
Timer stopped at Mon 2025-03-24 12:00:00 PM
Elapsed H:M:S 0:03:00 appended to timetracker_meetinghouse_bez.csv

4) Report my time units for this project

$ trk report
Day  Date        Span     Total  Description
Sun  2025-03-24  03:00    03:00  Received architectural plans

You can also get the total hours that you spent on a project:

$ trk hours
0:03:00 H:M:S or 3.000 hours

Installation

Install with timetracker-csv pip:

$ pip install timetracker-csv

Or install from source:

$ git clone git@github.com:dvklopfenstein/timetracker.git
$ cd timetracker
$ pip install .

Other timetrackers

Copyright (C) 2025-present, DV Klopfenstein, PhD. All rights reserved

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timetracker_csv-0.5a6-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file timetracker_csv-0.5a6-py3-none-any.whl.

File metadata

File hashes

Hashes for timetracker_csv-0.5a6-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6008f08c730a29878842a284cb7f8204cdff136d7c64ea6fbde05cfc3b4c9d
MD5 ced664765c5c7723b54045d363b19a03
BLAKE2b-256 5d002c307e4a076f52dd0aedf1d6309adae3d96a7f9cd9bb28ea75ac29279bdf

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