In this video we learn various methods for how we can schedule and automatically run python code. We’ll start by looking at cronjobs & windows task scheduler and then we will walk through running tasks in the cloud using AWS Lambda & Cloudwatch. The ultimate goal of this video is to learn how we can automatically generate & send an email with an analytics report every day.
There are methods highlighted in this video that will work on Mac, Linux, & Windows.
Video timeline!
~ GitHub resources ~
Link to source code: https://github.com/KeithGalli/scheduling-code
Link to analytics report code: https://github.com/KeithGalli/generate-analytics-report/tree/send_email
~ Other resources ~
Python email library docs: https://docs.python.org/3.8/library/email.examples.html
AWS Cron info (scheduling): https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
Lambda package setup: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html
👕 T-shirts for programmers: https://bit.ly/3ir3Gci
Subscribe: https://www.youtube.com/@KeithGalli/featured
#python #web-development #machine-learning #programming #developer