Python program that tracks total time spent on projects and saves sessions. It supports multiple projects.
Project description
Contents
- 📖 Description
- 🚀 Quick start
- ✨ Features
- 📦 Installation
- 📲 Usage
- ⚙ Options
- 💻 Development
- 👥 Contributing
📖 Description
💻 Windows, Linux and Mac compatible. 💻
A Python script to track time spent on various projects. This script allows you to start, stop, and monitor time tracking for different projects, as well as output data to files.
It is very lightweight since it doesnt have to be running in the background.
This script is going to help you track:
- Total time spent on different projects
- Work sessions information
- Time spent on each session
🚀 Quick start
pipx install hourtrack
hourtrack start myProject
✨ Features
- Supports multiple projects: Track time for multiple projects.
- Start/Stop tracking: Start and stop tracking time for a project.
- List projects: List all projects being tracked.
- Delete project: Delete a project and all its data.
- Reset project: Reset a project's data.
- Export data: Export data to a
.txt
file. - ...
📦 Installation
From PyPI
pipx install hourtrack
pipx
is optional but recommended, you can use pip
instead.
Optional installation alternative
git clone https://github.com/P-ict0/HourTrack.git
cd HourTrack
pipx install . # You can also use `pip`
📲 Usage
For help:
hourtrack --help
Start tracking: Start tracking session for a project. If the project does not exist, it will be created.
hourtrack start <project>
Stop tracking: Stop current session for a project, saving the time spent. With option to delete all projects.
hourtrack stop <project|--all>
Reset project: Reset a project's data. With option to reset all projects
hourtrack reset <project|--all>
Delete project: Delete a project and all its data. With option to delete all projects.
hourtrack delete <project|--all>
List projects: List all/active projects.
hourtrack list <all|active> [--format <smart|full|short|hours>]
Project Info: Show the status of a specific project or show current active session. With option to output to a file.
# Project status
hourtrack info <project> [--format <smart|full|short|hours>] [-o <outputPath>]
# Active session
hourtrack info [--format <smart|full|short|hours>]
⚙ Options
Command | Requirement | Default | Description |
---|---|---|---|
hourtrack --help |
None | None | For help |
hourtrack start <project> |
Project name | None | Start tracking session for a project. If the project does not exist, it will be created. |
hourtrack stop <project|--all> |
Project name or -a/--all flag |
None | Stop current session for a project, saving the time spent. With option to stop all projects |
hourtrack reset <project|--all> |
Project name or -a/--all flag |
None | Reset a project's data. With option to reset all projects |
hourtrack delete <project|--all> |
Project name or -a/--all flag |
None | Delete a project and all its data. With option to delete all projects |
hourtrack list <all|active> [--format <smart|full|short|hours>] |
format smart |
None | List all/active projects. |
hourtrack info [<project>] [--format <smart|full|short|hours>] [-o <outputPath>] |
format smart |
None | Show the info of a specific project or show current active session if project is not specified. With option to output to a file. |
💻 Development
git clone https://github.com/P-ict0/HourTrack.git
cd HourTrack
python -m venv venv
pip install -r requirements.txt
source venv/bin/activate # Windows: .\venv\Scripts\activate.ps1
# Run the script
python src/hourtrack.py --help
👥 Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your suggested changes.
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
File details
Details for the file hourtrack-1.2.2.tar.gz
.
File metadata
- Download URL: hourtrack-1.2.2.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad04377d0a77a670ea47886be7bedf67ee8bbf371dfc95902c5b1b75b8256373 |
|
MD5 | 0b8bc68567f5281280f8374e1a443bee |
|
BLAKE2b-256 | d258cc4f0831eda302a8175b4425d5ed02471883663210db5f4ba364a047ec40 |
File details
Details for the file hourtrack-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: hourtrack-1.2.2-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06001aac9c13e841ffc98773e7a6934b9c98051e8d3db1504dfdcb4188a6aa39 |
|
MD5 | 164cf0cb59f1a8dbe640a997e4e63676 |
|
BLAKE2b-256 | 53d526ef9c97904486bcde2c97057561fe3b60d0adc041dbe09f0df265c27b84 |