@@ -3,42 +3,70 @@ Copyright (C) DV Klopfenstein, PhD
33License: https://www.gnu.org/licenses/agpl-3.0.en.html#license-text
44https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
55-->
6- # Timetracker-csv
7- [ ![ PyPI - Version] ( https://img.shields.io/pypi/v/timetracker-csv )] ( https://pypi.org/project/timetracker-csv )
8- [ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.14803225.svg )] ( https://doi.org/10.5281/zenodo.14803225 )
9- ![ GitHub License] ( https://img.shields.io/github/license/dvklopfenstein/timetracker )
6+ <p align =" center " style =" display :inline " >
7+ <h1 align =" center " >Timetracker-csv</h1 >
8+ <h3 align =" center " >Pandas-friendly time tracking from the CLI, repo by repo</h3 >
9+ <h3 align =" center " >
10+ <a href =" https://pypi.org/project/timetracker-csv " ><img src =" https://img.shields.io/pypi/v/timetracker-csv " alt =" PyPI - Version " ></a > |
11+ <a href =" https://doi.org/10.5281/zenodo.14803226 " ><img src =" https://zenodo.org/badge/DOI/10.5281/zenodo.14803226.svg " alt =" DOI " ></a > |
12+ <a href =" https://www.gnu.org/licenses/agpl-3.0.en.html " ><img src =" https://img.shields.io/github/license/dvklopfenstein/timetracker " alt =" License " ></a >
13+ </h3 >
14+ <pre align =" center " style =" font-family : monospace ; font-size : larger ; border : 1px solid #ccc ; padding : 10px ; display : inline-block ;" >
15+ ┌────────────────────────────┐
16+ │ 🕒 Timetracker CLI Tool │
17+ │ Track time → CSV → pandas │
18+ └────────────────────────────┘
19+ </pre >
20+ </p >
1021
1122Track time spent on multiple projects,
1223one repo at a time from the [ CLI] ( https://blog.iron.io/pros-and-cons-of-a-command-line-interface )
1324
1425Time is saved in
15- [ pandas] ( https://pandas.pydata.org/pandas-docs/stable/index.html ) -friendly
26+ [ pandas] ( https://pandas.pydata.org/pandas-docs/stable/index.html ) -friendly plaintext
1627[ CSV] ( https://www.datarisy.com/blog/understanding-csv-files-use-cases-benefits-and-limitations ) files
1728
1829<p align =" center " ><img src =" https://github.com/dvklopfenstein/timetracker/raw/main/doc/mkdocs/source/images/stopwatch.png " alt =" timetracker " width =" 750 " /></p >
1930
31+ ## Description
32+ Timetracker is a
33+ lightweight, privacy-respecting CLI tool
34+ that logs your work sessions into
35+ clean, pandas-friendly CSV files.
36+ Whether you're juggling multiple projects or
37+ just want a no-fuss way to monitor your productivity,
38+ Timetracker keeps your data local, editable, and analysis-ready.
39+ * No cloud. No surveillance.
40+ * Human-readable logs perfect for Python and pandas workflows.
41+ * Quick to set up, easy to use, and fully open source.
42+ * Supports free-form messages, optional activity types, and tag metadata
43+
2044## Quickstart
21- The ` name ` used by this time tracker is determined
22- by the ` USER ` environmental variable by default.
23- In this example, the username is "bez."
45+ The username of the researcher running this timer is "bez."
46+ The project repository (repo) name is "meetinghouse."
2447``` sh
2548# ----------------------------------------------------
2649# 1) Initialize a timetracker project
27- $ cd /home/bez/meetinghouse
50+ $ cd /home/bez/projs/ meetinghouse
2851
29- $ trk init
30- Initialized timetracker directory: /home/bez/meetinghouse/.timetracker
52+ $ trk init --csvdir doc/
53+ Initialized timetracker directory: /home/bez/projs/ meetinghouse/.timetracker
3154
3255# ----------------------------------------------------
3356# 2) Start the timer
3457$ trk start
3558Timetracker started now: Mon 09:00 AM: 2025-03-24 09:00:00
59+ ```
3660
61+ Initializing with the option ` --csvdir doc/ ` will cause time units to be written to
62+ a csv file stored in the ` doc/ ` directory,
63+ rather than in the default repo root directory.
64+ ``` sh
3765# ----------------------------------------------------
3866# 3) Stop the timer
3967$ trk stop -m ' Received instructions'
4068Timer stopped at Mon 2025-03-24 12:00:00 PM
41- Elapsed H:M:S 0:03:00 appended to timetracker_meetinghouse_bez.csv
69+ Elapsed H:M:S 0:03:00 appended to doc/ timetracker_meetinghouse_bez.csv
4270
4371# ----------------------------------------------------
4472# 4a) Report my time units for this project
@@ -47,7 +75,7 @@ Day Date Span Total Description
4775Sun 2025-03-24 03:00 03:00 Received instructions
4876
4977# - - - - - - - - - - - - - - - - - - - - - - - - - -
50- # 4b) You can also get the total hours that you spent on a project:
78+ # 4b) Get my total hours spent on the project:
5179$ trk hours
52800:03:00 H:M:S or 3.000 hours
5381```
0 commit comments