Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alotab/python-ci
Custome professional command line application for a todolist
https://github.com/alotab/python-ci
command-line python3
Last synced: about 1 month ago
JSON representation
Custome professional command line application for a todolist
- Host: GitHub
- URL: https://github.com/alotab/python-ci
- Owner: Alotab
- License: mit
- Created: 2024-11-13T01:23:38.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T12:46:35.000Z (about 2 months ago)
- Last Synced: 2024-11-13T13:46:50.542Z (about 2 months ago)
- Topics: command-line, python3
- Language: Python
- Homepage:
- Size: 5.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TodoList CLI Application
This is a custom, professional command-line To-Do List application built with Python using the `click` library. The application allows users to manage their to-dos through a set of simple commands, all of which interact with a `todolist.txt` file for data storage.
## Features
- Add a new to-do with a name, description, and priority.
- List all to-dos with different priority filters (high, medium, crucial).
- Delete a to-do by its index in the list.
- Built using the powerful and easy-to-use `click` Python library for CLI interfaces.## Installation
1. Clone or download the repository.
2. Install the required dependencies via pip:```
pip install click
```# Usage
## List All Commands
```
python main.py --help
```## Add a New To-Do:
To add a new to-do, use the add-todo command. You can optionally specify a description and priority
```
python main.py add-todo
``````
python main.py add-todo --name "Repaire Phone"
``````
python main.py add-todo --name "Sell Ipad" --desc "Have to sell my iPad for a new one"
``````
python main.py add-todo --name "Hospital" --desc "Going to see the doctor for my surgery" h
```#### Note: The priority options are
- `h` for high priority
- `m` for medium priority
- `c` for crucial priority## List All To-Dos:
To list all to-dos, use the `list-todos` command. You can filter the list based on priority:
List all to-dos:
```
python main.py list-todos
```List medium priority to-dos:
```
python main.py list-todos -p m
```List high priority to-dos:
```
python main.py list-todos -p h
```List crucial priority to-dos:
```
python main.py list-todos -p c
```## Delete a To-Do
To delete a to-do, use the delete-todo command, followed by the index of the to-do you want to delete:
Delete the to-do at index 3:
```
python main.py delete-todo 3
```## Command Summary
| Command | Description |
| --------------------- | --------------------------------------- |
| `add-todo` | Add a new to-do to the list |
| `list-todos` | List all to-dos or filter by priority |
| `delete-todo [index]` | Delete the to-do at the specified index |
| `--help` | Show help information for any command |## Dependencies
This application uses the following Python library:
- `click`: For building the command-line interface
## License
This project is licensed under the MIT License - see the LICENSE file for details.