Command-line project that is capable of storing your tasks across different sessions into a database.
- Add/delete a task.
- Set due dates for tasks.
- Priority system for tasks.
- Display tasks sorted by due date & priority.
- Data persistence across sessions.
Python needs a MySQL driver to access the MySQL database.
Also you should have MySQL installed in your system.
Install the following library after cloning the repository:
python -m pip install mysql-connector-python
And then
import mysql.connector
Clone the project
https://github.com/Ameya29/Coding-Raja-Technologies-Internship
Go to the project directory
cd Coding-Raja-Technologies-Internship
- Create a database named
todo_list
in yourMySQL
client - Create a table named
mytasks
with the following columns and datatypes:task_id
->PRIMARY KEY
SERIAL
task
->TEXT
due_date
->DATE
priority
->ENUM('High','Medium','Low') DEFAULT Medium
task_completed
->ENUM('Yes','No') DEFAULT No
Run the project
python todo_sql.py