This is a work in progress.
- Make course decisions more user friendly & potentially some UI elements.
- Make environment better accessible.
- Add bash and zsh scripts too.
Here's a fun little script that's just for you if you use Todoist to keep track of your assignments from Canvas! It uses Canvas API and Todoist API to sync your assignments from canvas into todoist.
- Once you pull in the repository, change the environment variables within the
.envfile.
To obtain Canvas API, navigate to your account settings and scroll over to 'Approved Integrations'. Click on 'New Access Token' to generate your canvas API key, and insert it into the .env file under CANVAS_API_TOKEN.
Open your todoist app, and click on your profile on the top left and navigate to settings. Within settings, click on 'Integrations'. Click on the tab titled 'Developer' and copy the API token. Insert this key into the .env file under TODOIST_API_TOKEN.
Navigate to your university's canvas landing page, it will usually be of the structure university.instructure.com. For example, at the University of Cincinnati, it is uc.instructure.com. Find this base URL and insert it into the .env under CANVAS_BASE_URL.
- Once you have all the keys inserted into the
.envfile, run the python script. - Now, in your browser, navigate to
localhost:5000/sync-assignments. - Voila! Watch your tasks flow into todoist.
Now if you want to go crazy and set up the powershell script to automate the script with an alias,
- Open powershell
- Enter
notepad $profile - Paste the code from
powershell_profile.ps1into your$profile - Boom! Now source your profile by running
. $profileand you're all set!
This is a jank solution to a problem I've been facing lately to solve my eternal laziness to fill in my todoist myself. This can and will be improved to have a better user experience, but I wanted to put this out there for anyone else facing the same issue.
If you are interested to contribute to this, feel free to contact me!