Description
Habit Tracker in Python
A Habit Tracker built in Python is a simple yet powerful productivity application designed to help users build consistency in their daily routines. It allows users to add habits, track daily progress, and visualize consistency over time using a clean and structured logic system.
⚙️ Key Features
-
- 📝 Add Habits
Users can create habits like reading, coding, exercising, or drinking water.
- 📝 Add Habits
- 📅 Daily Tracking System
Mark habits as completed each day to maintain accountability. - 📊 Progress Monitoring
Track streaks, completion rates, and consistency patterns. - 💾 Data Storage (File or Database)
Stores habit data using files like JSON/CSV or databases like SQLite. - 🔄 Update & Delete Options
Modify or remove habits anytime for flexibility.
habit-tracker/
├── backend/
│ ├── app/
│ │ ├── main.py # FastAPI entry point
│ │ ├── database.py # SQLite connection
│ │ ├── models.py # SQLAlchemy models (Habit, Completion)
│ │ ├── schemas.py # Pydantic request/response schemas
│ │ └── routers/ # API endpoints
│ │ ├── habits.py # CRUD + streak calculation
│ │ └── completions.py
│ └── tests/ # pytest tests
├── frontend/
│ ├── src/
│ │ ├── features/
│ │ │ ├── habits/ # Habit components, hooks, API
│ │ │ └── calendar/ # Calendar view components
│ │ ├── components/ui/ # Shared UI components
│ │ ├── pages/ # Route pages
│ │ └── lib/ # Utilities
│ └── package.json
└── README.md




Reviews
There are no reviews yet.