Skip to main content

A Task Management CLI Application.

Project description

Tasksu: A CLI Application to manage tasks.

Description:

Tasksu is a simple command-line interface (CLI) task management application. It allows the user to add, update, list, and delete tasks and save all data to a JSON file.

This project was built while following the python roadmap: https://roadmap.sh/projects/task-tracker

Built on: Python3 - 3.11.9 Mac

Commands

  • add TITLE DESCRIPTION : Add a new task
  • delete UID : Delete a task
  • list : Lists all tasks
    • Options:
      • -s, --status TEXT : Filter tasks by status: todo, in-progress, done
  • mark STATUS UID : Mark a task with an updated status
  • update UID TITLE : Update the title or description of task
    • Options:
      • -d, --description TEXT : Updates the task description

Install

pip3 install git+https://github.com/zephyr834/tasksu

Usage:

  • Add a task

    $ tasksu add "Pet a cat" "Petting the feline friend"
    $ tasksu list
    
    |  UID  |             Title             |          Description          |   Status  |           Created At          |           Updated At          |
    |   1   |           Pet a cat           |   Petting the feline friend   |    todo   |   October 02, 2024 03:51 PM   |   October 02, 2024 03:51 PM   |
    
  • Update a task

    $ tasksu update 1 "Pet a dog" -d "Dogs are better."
    $ tasksu list
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   1   |           Pet a dog           |        Dogs are better.       |      todo      |   October 02, 2024 03:51 PM   |   October 02, 2024 03:57 PM   |
    
  • Mark a task in-progress

    $ tasksu mark in-progress 1
    $ tasksu list
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   1   |           Pet a dog           |        Dogs are better.       |   in-progress  |   October 02, 2024 03:51 PM   |   October 02, 2024 03:58 PM   |
    
  • Mark a task done

    $ tasksu mark done 1
    $ tasksu list
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   1   |           Pet a dog           |        Dogs are better.       |      done      |   October 02, 2024 03:51 PM   |   October 02, 2024 03:59 PM   |
    
  • List all tasks

    $ tasksu list
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   1   |           Pet a dog           |        Dogs are better.       |   in-progress  |   October 02, 2024 03:51 PM   |   October 02, 2024 03:57 PM   |
    |   2   |        Pet a cat again        |          I like cats          |      todo      |   October 02, 2024 04:17 PM   |   October 02, 2024 04:17 PM   |
    
  • List all tasks filtered by status

    $ tasksu list -s todo
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   2   |        Pet a cat again        |          I like cats          |      todo      |   October 02, 2024 04:17 PM   |   October 02, 2024 04:17 PM   |
    
  • Delete a task

    $ tasksu delete 1
    $ tasksu list
    
    |  UID  |             Title             |          Description          |     Status     |           Created At          |           Updated At          |
    |   2   |        Pet a cat again        |          I like cats          |      todo      |   October 02, 2024 04:17 PM   |   October 02, 2024 04:17 PM   |
    

Setup source code

The following steps are for cloning, modifying, testing the code.

  • Clone
git clone git@github.com:zephyr834/tasksu.git
cd tasksu
  • Setup virtual env
python3 -m venv venv
source ./venv/bin/activate
  • Install Requirements
pip3 install -r requirements.txt
  • Run CLI
python3 app/main.py [OPTIONS] COMMAND [ARGS]
  • Run tests
pytest
  • Debugging If running the tests creates a "ModuleNotFoundError", run the following command in your virtual env.
export PYTHONPATH=$PYTHONPATH:$(pwd)/app

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tasksu-1.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tasksu-1.0.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file tasksu-1.0.2.tar.gz.

File metadata

  • Download URL: tasksu-1.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tasksu-1.0.2.tar.gz
Algorithm Hash digest
SHA256 31dcb88bd62bec7212fc3c0797583324a6a927d3d17eae1e46a739f781230916
MD5 977ae00ebb9522f1c9d3a1f9bc551d9a
BLAKE2b-256 b58511c99485cd4110e5aae055889f4ac6fe7a66ebaa86d91c7223a4e1c0049a

See more details on using hashes here.

File details

Details for the file tasksu-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tasksu-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for tasksu-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8888ed66d2ce9f72f848c2de94e2e165744e6945e60cf3462da5e0c41dfeed
MD5 2e541655db10952caef49b6ad5875ef3
BLAKE2b-256 499c379eedb3dcbb4c8b74055d0bc9d63ce41891382322ad14716eb731adcb10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page