This Python script allows you to easily convert roughly written todo items into Google Calendar events. It leverages the power of Composio, an open-source command-line tool for developers, to automate the process of creating calendar events based on your todo descriptions.
-
Clone the repository:
git clone https://github.com/anonthedev/composio-todo-to-calendar.git
-
Go to the cloned repo:
cd composio-todo-to-calendar
-
Adding API keys
Create a
.env
file and add the API keys there.Composio API key can be found here - https://app.composio.dev/settings
OPENAI_API_KEY=sk- COMPOSIO_API_KEY=
-
Setup Virtual env
python3 -m venv env
source env/bin/activate
-
Give execute permission to
setup.sh
filechmod +x ./setup.sh
-
Run the setup.sh file
Make sure you have python dev essentials installed in your device as chromadb needs it.
./setup.sh
-
Edit your todos:
Open the
main.py
file and edit thetodos
list with your desired todo items in the formatstart_time - end_time -> description
. For example:todos = ''' 9AM - 11AM -> Work on project X, 1PM - 3PM -> Gaming, # Add more todos here '''
-
Run the file:
python main.py