stmp - The tool to manage your working hours
Project description
stmp CLI Tool
Introduction
stmp is a command-line interface (CLI) tool designed to help developers and other professionals track their work hours and notes. Born out of the need for a simple, flexible, and efficient time tracking tool, stmp aims to make time management as seamless as possible.
Features
- Work Hours Tracking: Easily log your start and end times for each work day.
- Break Duration: Keep track of your break times to ensure you're taking adequate rest.
- Notes: Add notes to each work day for better context and recall.
- Checks: Check if your daily records are complete.
- Data Dump: Export your data to stdout or a file for further analysis or backup.
Automatic Work Hours Tracking
Configure your machine in such a way, that start and end time are automatically tracked with your powering on and off of your machine and set your default break duration. The automatic tracking should always use the --overwrite False Flag.
Installation
You can simply install stmp from pip:
pip install stmp
Usage
To use stmp, you can use the following commands:
- To add a working hours and notes for a day:
stmp add --date YYYY-MM-DD --start_time HH:MM --end_time HH:MM --break_minutes MM --note "Your note"
You can omit almost all arguments and stmp uses the current date as a default:
stmp add --start_time HH:MM
- To view records for certain date:
stmp show --date YYYY-MM-DD --format json
- To view records for a certain month:
stmp show --month MM --year 2023
You can also omit the year and stmp will set the current year as default:
stmp show -m MM --format table
If you want to view the records for the current month, you can omit all arguments:
stmp show
- Included help text:
❯ stmp -h
usage: stmp.py [-h] {add,rm,show,dump,check} ...
Record working hours.
positional arguments:
{add,rm,show,dump,check,config}
add Add times and notes for the day
rm Remove a record
show Show hours and notes
dump Dump the database
check Check the database entries for completeness
config Configure stmp
options:
-h, --help show this help message and exit
This tool allows you to record your working hours and breaks, and manage notes.
To add a record:
stmp add -d <date> -s <start_time> -e <end_time> -b <break_minutes> -n <note> -o <overwrite>
-d, --date: Date in YYYY-MM-DD format. If not specified, the current date is used.
-s, --start_time: Start time in HH:MM format. If not specified, the existing value is used.
-e, --end_time: End time in HH:MM format. If not specified, the existing value is used.
-b, --break_minutes: Break duration in minutes. If not specified, the existing value is used.
-n, --note: Add a note for the day. If not specified, no note is added.
-o, --overwrite: Boolean to indicate whether to overwrite existing data. Default is True.
To remove a record:
stmp rm -i <id> -d <date>
-i, --id: ID of the note to remove.
-d, --date: Date of the record to remove.
To show records for a date, month, year, or all records. Shows records of current month as default:
stmp show -d <date> -m <month> -y <year> -a
-d, --date: Date in YYYY-MM-DD format for which to show records.
-m, --month: Month in MM format for which to show records.
-y, --year: Year in YYYY format for which to show records.
-a, --all: Show all records.
-n, --notes: Show notes in the output.
-f, --format: Format to show. Default format is table.
To dump all data:
stmp dump -d <destination>
-d, --destination: Destination folder for the dumped data.
To check the database entries for completeness:
stmp check
To configure stmp or list configuration key value pairs:
stmp config set -k <key> -v <value>
stmp config list -k <key>
stmp config rm -k <key>
-k, --key: Key
-v, --value: Value
License
stmp is licensed under the MIT License.
Contact
If you have any questions or feedback, please feel free to contact me.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stmp-0.3.3.tar.gz.
File metadata
- Download URL: stmp-0.3.3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb6b4e474a8e4b6ee05fa439dfcd823f615e77ffc978c489d168212bdae71abf
|
|
| MD5 |
53227dfb659c7721b6245022baac16a4
|
|
| BLAKE2b-256 |
a02f0c99abe9a9ad2dd507a5ef38b38928805c614389c3328392a9636bf4353c
|
File details
Details for the file stmp-0.3.3-py3-none-any.whl.
File metadata
- Download URL: stmp-0.3.3-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1016-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e64fa11a88b0253a7e40b34c0f8193c055f3f1dd988a511e8119dc53bcacd4cc
|
|
| MD5 |
c8dabe1dae7e8e4df701a25ac944de6f
|
|
| BLAKE2b-256 |
b7e95d77a5cddcb90510e604ade6713a102f3a6e818d7557ecc24f0fbb08e2d7
|