Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serengti/timekeeper
A tiny utility to keep track of your working hours
https://github.com/serengti/timekeeper
Last synced: 5 days ago
JSON representation
A tiny utility to keep track of your working hours
- Host: GitHub
- URL: https://github.com/serengti/timekeeper
- Owner: SerenGTI
- Created: 2022-10-21T07:24:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T16:24:49.000Z (9 months ago)
- Last Synced: 2024-03-26T17:48:12.519Z (9 months ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TimeKeeper (WIP)
A command line utility to keep track of your working hours.
## Dependencies
TimeKeeper automatically tracks public holidays.
As such, it requires the `holidays` package.
Install e.g., via `pip` as follows.
```bash
pip3 install holidays
```## Usage
When you start working, simply type
```bash
tkp start
```
and when you finish, use
```bash
tkp stop
```
This will create a new entry in you work time database.
Starting when you are already working is a no-op and will instead print your current work time since the last start.
Similarly, stopping a work session when you are not working (did not issue `tkp start`) is a no-op as well.To view your work time over longer durations, use the `view` command.
To view the current week's statistics use
```bash
tkp view
```
If you want to include more weeks, use index slicing
```bash
# current and previous week
tkp view -1:
# previous week, current week and next week
tkp view -1:1
```## Data file
We use plain-text files to track work times because it allows simple synchronization across multiple devices via git + automatic conflict resolution.