Coder Social home page Coder Social logo

todo_manager's Introduction

Todo Manager

Todo Manager is a command-line application that allows you to manage your tasks. You can add new tasks, list all tasks, delete tasks, and mark tasks as completed.

Installation

  1. Clone the repository:
  git clone https://github.com/your-username/todo-manager.git
  1. Navigate to the project directory:
  cd todo-manager
  1. Set up a virtual environment (optional but recommended):
python -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate

Usage

To use the Todo Manager app, follow the steps below:

Ensure you are in the project directory and have activated the virtual environment (if used).

Run the following command to execute the CLI:

python -m todo_app.cli

Available Commands

  • add: Add a new task.
  • list: List all tasks.
  • delete: Delete a task.
  • complete: Mark a task as completed.

Architecture

The Todo Manager app follows a simple and modular architecture. Here's an overview of the key components:

  • cli.py: This file contains the command-line interface (CLI) logic using the click library. It defines commands such as add, list, delete, and complete and connects them to the corresponding functions in the utils.py file.

  • models.py: This file defines the Task class, representing a single task with properties like description and completed.

  • utils.py: This file contains utility functions for loading and saving tasks. It provides the load_tasks and save_tasks functions, which handle reading tasks from and writing tasks to the tasks.txt file.

  • data/tasks.txt: This file stores the tasks. Each task is stored as a line in the file, with the format: <description>,<completed>. The load_tasks function reads from this file, and the save_tasks function writes to it.

Contributing

Contributions to the Todo Manager app are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

todo_manager's People

Contributors

teo-garcia-gl avatar

Watchers

Mateo Garcia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.