SZ_BabySWTime_console v1.01

SZ_BabySWTime_console is a console-based Python application for tracking a baby's sleep and awake times. It stores entries in a database and calculates how long the baby has been asleep or awake.


Youtube video


📖 Usage

Commands - help - Displays a list of all available commands
- adds - Add a sleep time record (type back to exit the input menu)
- addw - Add an awake time record (type back to exit the input menu) - shows Displays a table with calculated sleep durations
- showa - Displays a table with calculated awake durations
- delall - Deletes all records from the database
- dels -| Deletes the last sleep time record
- dela - Deletes the last wake time record
- exit - Exits the application

🕒 Note: Time format should be YYYY-MM-DD HH:MM, e.g., 2025-05-13 14:30


🧰 Requirements

Install with:

pip install prettytable


🆕 Change Log

  • Time format example added to the help, adds, and addw menus

📸 Screenshots & 🎥 Video Manual

Screenshots and a video tutorial are included to demonstrate usage:

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6


📦 Source Code