A simple utility tool
Project description
Task Planner
Overview
This program is a simple command-line tool for managing tasks. It allows users to add tasks with optional deadlines, list existing tasks, and remove tasks. Task data is stored in a JSON file for persistence.
Features
- Add Task: Create a new task with an optional deadline.
- List Tasks: Display all existing tasks along with their deadlines (if any).
- Remove Task: Delete a task by specifying its index.
- Help: Provides usage instructions for the script.
Requirements
- Python 3.x
- No additional libraries are required beyond Python's standard library.
Usage
Run the script from the command line with the following options:
Adding Tasks
To add a task, run the script with the task name and an optional deadline:
python todo.py add -d 2 days "Task Name"
This command will add a new task named "Task Name" with a deadline 2 days from the current time.
Listing Tasks
To list all tasks, use:
python todo.py list
Removing Tasks
To remove a task, run the following command:
python todo.py remove
You will be prompted to provide the index of the task to remove.
Show Help
To display the help message, use:
python todo.py help
File Structure
tasks.json: This file stores the tasks data, including task names and deadlines. It is created if it does not exist.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file the_task_planner-0.1.0.tar.gz.
File metadata
- Download URL: the_task_planner-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b624856ffec48bf21440e14e9d56db02700094c0d4e059dad95428315d41f38
|
|
| MD5 |
f5a94d7d5847c04e6d532978ae727bde
|
|
| BLAKE2b-256 |
91172a9f0cdb898bbdb6342acb251ff024e20b15be167ae96478a3d5b62e41bd
|
File details
Details for the file The_Task_Planner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: The_Task_Planner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c367185e771568ab667080e19d109bb5ce62f5f15e30fbe34ce63d5ce8aa38
|
|
| MD5 |
14e5ba277592708df8e96783ca633df7
|
|
| BLAKE2b-256 |
a6de2ec2e3ea3bd290af54af29d56e5a85156b0fc6e4f2740afd1fa1a5023477
|