A simple and intuitive Python script to track your daily mood and maintain a personal emotional journal.
Daily Mood Logger helps you keep track of your emotional well-being by logging your mood each day. The data is saved locally in a CSV file, making it easy to analyze your mood patterns over time.
- 📝 Log your mood (Happy, Sad, Neutral)
- 📅 Automatic date and timestamp recording
- 💭 Add optional notes to your mood entries
- 📊 View your mood history
- 📈 Get mood statistics and insights
- 💾 Data stored locally in CSV format
- Python 3.6 or higher
- No external dependencies required (uses only standard library)
- Clone the repository or download the script
- Navigate to the
Daily_Moon_Loggerdirectory - Run the script:
python daily_moon_logger.pyWhen you run the script, you'll see a menu with the following options:
1. Log today's mood
2. View mood history
3. View mood statistics
4. Exit
- Select option 1 from the main menu
- Choose your current mood:
- Happy
- Sad
- Neutral
- Optionally add a note to describe your feelings
- Your mood will be saved with the current date and time
Select option 2 to view your recent mood entries. You can specify how many entries you want to see, or press Enter to see the last 7 entries by default.
Select option 3 to see:
- Total number of mood entries
- Mood distribution (percentage of each mood)
- Overall mood insights
All mood data is stored in mood_log.csv in the same directory as the script. The CSV file contains:
- Date: The date of the mood entry (YYYY-MM-DD)
- Time: The time of the mood entry (HH:MM:SS)
- Mood: Your mood (happy, sad, or neutral)
- Note: Optional note about your mood
Example CSV structure:
Date,Time,Mood,Note
2025-10-13,14:30:45,happy,Had a great day at work!
2025-10-14,09:15:22,neutral,Feeling okay today========================================
Daily Mood Logger
========================================
Options:
1. Log today's mood
2. View mood history
3. View statistics
4. Exit
Enter your choice (1-4): 1
Available moods: happy, sad, neutral
Enter your mood: happy
Add a note (optional): Finished a great project!
✓ Mood logged: happy on 2025-10-13 at 14:30:45
All your mood data is stored locally on your computer. No data is transmitted or shared online.
This project is part of the 100 Lines of Python Code repository. Feel free to suggest improvements or report issues!
This project follows the license of the parent repository.
Created as a contribution to 100 Lines of Python Code project (Issue #847)