Study mapping and tracker
There are no dependencies aside from Python 3.10+.
- Clone the repository and change into the directory.
- Add executable permission to the script:
chmod u+x interest_tracker.py
.
-
Create a virtual environment and activate it.
python3 -m venv .venv source .venv/bin/activate
-
Install dependencies from
dev_requirements.txt
:pip3 install -r dev_requirements.txt
. -
Run tests with
python3 -m pytest
.
Basic interest creation:
./interest-tracker.py log "OOP using default python classes and object" --effort 00:15 --tags python,oop
You can use shorthand syntax on the effort
and tags
flags:
./interest-tracker.py log "study usage of subcommands with python argparser" -e 00:15 -t python,cli
You can prompt the script for help using
# help for specific commands
./interest-tracker.py visualize -h
./interest-tracker.py log -h
# or general program wide help
./interest-tracker.py -h
Visualize existing interests:
./interest-tracker.py visualize
- argparse
- python's sqlite3 lib
- For parsing arbitrary time intervals (3h, 32m, 07h30, 07:30, etc) we could use pytimeparse or maybe parsedatetime
- subcommands with argparse