Track your habits, analyze your progress, and stay motivated—all from your terminal!
- 📅 Daily & Weekly Tracking: Log your habits (only numbers)
- ✏️ Custom Habits: Add, show, or delete any habit you want to track.
- 📈 Visualize Progress: Instantly generate beautiful graphs (with dark mode!) for your week, month, or year.
- 🎉 Motivational Cheers: Get random motivational messages to keep you going.
- 📤 Export Data: Export all your habit data to CSV for use in Excel, Sheets, or anywhere else.
- 🛠️ Easy Reset: Reset your data and start fresh anytime.
Before building or running HabitPy, create a virtual environment and install dependencies:
# Clone the repo
git clone https://github.com/asuntx/habitpy.git
cd habitpy
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install .note: * is the version and name it might change so just copy the name of the whl file
# Build the distribution
python -m build
# Install the built package globally
pip install dist/habitpy-*.whl# Build the distribution
python -m build
# Install with pipx (ensures global availability)
pipx install dist/habitpy-*.whl# Already inside .venv
pip install -e .uv sync
uv run habitpy setuppipx install -e .First, set up your tracker:
habitpy setupThen, use the commands:
habitpy track <habit_name[optional]>— Log today’s habitshabitpy create <habit_name>— Add a new habithabitpy show— List all habitshabitpy delete <habit_name>— Remove a habithabitpy graph week|month|year— Visualize progresshabitpy export— Export data to CSVhabitpy reset— Delete all data and start over