Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Simple command line habit tracking app design project for the course DLBDSOOFPP01 through IU International University of Applied Sciences.

License

Notifications You must be signed in to change notification settings

takavarasha-desire/habittracker1_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Habit tracker app

Introduction

Simple command line habit tracking app design project for the course DLBDSOOFPP01 through IU International University of Applied Sciences. The application allows a user to create habits which they would like to track (see usage below). Once created, a scheduling function in the habits class is called to calculate the next date that the habit should be completed depending on the periodicity chosen. Created habits are considered overdue when a period of 1 day has lapsed after the next_run date for all periodic options. The application also allows a user to analyse their habits through the analyse subcommands. Some of the information that can be accessed though these subcommands is the longest streak for each habit. Which the largest number of consecutive completions for a particular habit.

Installation

  • clone this repo to your local folder
git clone https://github.com/takavarasha-desire/habittracker1_1
cd habittracker1_1
  • make your virtualenv
virtualenv env
  • and activate it

on Windows:

env/scripts/activate

on macOS and Linux

source env/Scripts/activate
  • install package
pip install -r requirements.txt
  • Done!

Usage

habit entry point (Terminal command)

cll

Getting help

cll --help

Creating a new habit

  • Periodicity can be Daily, Weekly, Monthly, or Annually (case-sensitive)
cll create <activity> <periodicity>

Completing a habit

cll complete <habitid>
  • Getting habitid (to see all habits with their habitids)
cll analyse show

Deleting a habit

cll delete <habitid>

Habit Analysis entry point

cll analyse

Analysing habits

cll analyse <subcommand>

Tests

pytest .

About

Simple command line habit tracking app design project for the course DLBDSOOFPP01 through IU International University of Applied Sciences.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages