A simple command-line application to track your daily water intake and monitor progress toward your hydration goals.
- Track Water Intake: Log water consumption in milliliters
- Daily Progress: View your progress toward the daily goal with a visual progress bar
- Persistent Data: Automatically saves your data to
data.json - Easy-to-use CLI: Simple command-line interface with intuitive arguments
- Python 3.8 or higher
- Clone or navigate to this directory
- No external dependencies required (uses only Python standard library)
Log your water intake in milliliters:
python hydra.py --add 500This adds 500 mL to today's water intake.
Display your progress toward the daily goal:
python hydra.py --statsOutput example:
[█████░░░░░] 50% (1.25L / 2.5L)
You can combine both arguments:
python hydra.py --add 500 --statsThe default daily water intake goal is 2.5 liters (2500 mL). To change this, modify the WATER_GOAL_L constant in hydra.py.
Water intake data is stored in data.json with the following structure:
{
"YYYY-MM-DD": {
"water_l": 1.5,
"goal_l": 2.5,
"full": false
}
}Each day is tracked separately, resetting the counter at midnight.
You can generate a plot of your progression by using:
python hydra.py --plot.
├── hydra.py # Main application script
├── data.json # Data storage (auto-created)
├── README.md # This file
└── .gitignore # Git configuration
This is a personal learning project.