A lightweight terminal study timer with a built-in audible alarm.
- Countdown timer for study sessions
- Displays remaining time in
HH:MM:SSformat - Colorized terminal interface
- Audible alarm when the timer reaches zero
- Supports study sessions up to 24 hours
- Built-in input validation and error handling
- Works on Linux and Windows
- Python 3.x
- playsound3
git clone https://github.com/MohssineX/studytimer.git
cd studytimerInstall dependencies:
pip install -r requirements.txtOr:
pip install playsound3Run the program:
python studytimer.pyIf your system uses python3:
python3 studytimer.py- Start the program
- Enter a study duration in minutes
- The countdown begins immediately
- The remaining time is displayed in real time
- When the timer reaches zero, an alarm starts playing
- Press
Ctrl+Cto stop the alarm and exit
| Code | Description |
|---|---|
| err101 | Invalid timer Maximum allowed is 1440 minutes (24 hours) |
| err102 | Invalid input (integer numbers only) |
The alarm sound requires a working audio playback system on your device.
This project is licensed under the MIT License.
Mohssine : https://github.com/MohssineX
A special thanks to mimi — the legendary, the great, the gentle cat.