Trak is a CLI to track the time you spend on projects, with useful reports and analytics.
For freelancers, by a freelance.
Website
·
Issues
·
Documentation
•
Feedback
On Pypi you can find the package under the trakcli name.
You can install it with pip:
pip install trakclior with pipx:
pipx install trakclibrew install lcfd/trak/trak
Try it:
nix shell nixpkgs/master#trakInstall it:
nix profile install nixpkgs/master#trakRun poetry build and then
# x.x.x = The version you have used to do the build.
pipx install ./dist/trakcli-x.x.x-py3-none-any.whlto install trak using the wheel file.
The package has the useful --help command that explains all the commands.
trak --help
The CLI guides you through what you should and must do with specific messages.
# Start a new session
trak start <project-name>
# Stop the current session
trak stop
# Show the elapsed time of the current session
trak status
# Show the amount of hours spend on the project
trak report project <project-name>Start tracking a billable project:
trak start pasta -b
Start tracking a project on a specific category/topic:
trak start pasta -c rigatoni
There is a dedicated command that outputs clean strings for tools like Starship:
trak status -s or trak status --starship
To see the status in your terminal line open $HOME/.config/starship.toml
and put this snippet inside of it:
[custom.trak]
command = """ trak status -s """
when = "trak status"
shell = "sh"This way you can stay updated on the state of your session wherever you integrate this command.
tar --exclude=".venv" --exclude="dist" --exclude=".mypy_cache" --exclude=".pytest_cache" --exclude="**/__pycache__" -czvf dist.tar.gz cli