Skip to content

JediPriAmo/Habit_tracker_Portfolio

Repository files navigation

Habit Tracker

Overview

Habit Tracker is a simple Python application designed to help you track your daily and weekly habits. With this tool, you can create new habits, mark them as completed, view your habits, and monitor your longest streaks.

Table of Contents

Features

  • Create and manage daily or weekly habits
  • Track completion status and dates
  • View and analyze habit data in tabular form
  • Calculate and display longest streaks
  • When entering habit names, ensure they are spelled correctly
  • Viewing by periodicities, ensure the habit has the correct periodicity otherwise solution outputs "'habit_name' not found"

Technical Details

Dependencies

  • Anaconda installed
  • Libraries: pandas, numpy, matplotlib, datetime
  • Python 3.11.4
  • SQLite3 installed

Installation

  1. Clone the repository: git clone https://github.com/JediPriAmo/Habit_tracker_Portfolio.git
  2. Navigate to the project directory: cd Habit_tracker_Portfolio
  3. Install dependencies: pip install -r requirements.txt

Usage

  1. Open the Anaconda environment.
  2. Launch the CMD.exe Prompt.
  3. In the prompt, execute 'jupyter lab'.
  4. In jupyter lab, select 'New launher' with the blue "+" icon in the toolbar.
  5. Open the main Jupyter notebook and copy & paste code from "Habit_tracker_script.py" file (Alternatively, you can just drag the file and drop it on the file browser section in jupyter lab).
  6. Write the directory/ path to the "2new_habit_tracker.db" file in establishing connection to the database at the beginning of the script.
  7. Run the code cells or execute the script.
  8. Follow the main menu options.
  9. Select "View longest streak for ALL habits" for a quick summary of all the predefined habits.

Unit Testing

  1. In anaconda environment, open jupyter lab.
  2. If you have not done it previously, drag "Habit_tracker_script.py" & "Habittracker_Analytics_unittest.py" to the file browser in jupyter lab.
  3. Open a new notebook.
  4. You can copy & paste entire code from "Habittracker_Analytics_unittest.py" and run it in the new notebook or...
  5. ...you can only input the following in the cell of the new notebook:
%run -i Habittracker_Analytics_unittest.py

Contributing

If you'd like to contribute to the project, please follow these steps:

  1. Clone the repisitory: git clone https://github.com/JediPriAmo/Habit_tracker_Portfolio.git
  2. Create a new branch: git checkout -b feature-name
  3. Make your changes and tests
  4. Submit Pull Request with comprehensive description of changes

Make sure to update any additional details specific to your project.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages