Uploaded November 2020 | Updated November 2026, 3 hours ago
The first 1000 people to use the link will get a free trial of Skillshare Premium Membership: https://skl.sh/keithgalli11201
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.
~ GitHub resources ~
Link to source code: github.com/KeithGalli/scheduling-code
Link to analytics report code: github.com/KeithGalli/generate-analytics-report/tree/send_email
~ Relevant videos ~
How to generate an analytics report in python: youtu.be/UmN2_R4KEg8
How to send an email with python (@coreyms ): youtu.be/JRCJ6RtE3xU
~ Articles mentioned ~
AWS Lambda memory limits: hackernoon.com/exploring-the-aws-lambda-deployment-limits-9a8384b0bec3
Downloading python linux libraries on Windows: medium.com/@korniichuk/lambda-with-pandas-fd81aa2ff25e
~ Other resources ~
Python email library docs: docs.python.org/3.8/library/email.examples.html
AWS Cron info (scheduling): docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
Lambda package setup: docs.aws.amazon.com/lambda/latest/dg/python-package.html
Thank you to Skillshare for sponsoring this video!
-------------------------
Video timeline!
0:00 - What we’ll be doing in this video
0:56 - Check out Skillshare! (sponsored)
1:56 - How can we automate scripts? Overview of local, cloud, and serverless methods
5:18 - Simple example of local script automation w/ cronjobs & windows task scheduler
18:32 - How to schedule code on a cloud machine (use cronjobs)
18:51 - Simple example of cloud script automation w/ AWS Lambda & Cloudwatch
27:09 - Schedule & automate sending an email locally
45:12 - Schedule & automate sending an email on the cloud w/ Lambda & Cloudwatch
50:18 - Installing python packages in a serverless environment (zip uploads)
55:50 - Generate & schedule sending analytics reports (locally)
1:02:45 - Generate & schedule sending analytics reports in AWS Lambda
1:07:03 - Limitations of lambda (max file upload size)
1:09:00 - Generate & schedule sending analytics reports in AWS Lambda
1:18:32 - Final thoughts & video recap!
-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli
-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
Practice your Python Pandas data science skills with problems on StrataScratch!
stratascratch.com/?via=keith
Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli
*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
The first 1000 people to use the link will get a free trial of Skillshare Premium Membership: https://skl.sh/keithgalli11201
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.
~ GitHub resources ~
Link to source code: github.com/KeithGalli/scheduling-code
Link to analytics report code: github.com/KeithGalli/generate-analytics-report/tree/send_email
~ Relevant videos ~
How to generate an analytics report in python: youtu.be/UmN2_R4KEg8
How to send an email with python (@coreyms ): youtu.be/JRCJ6RtE3xU
~ Articles mentioned ~
AWS Lambda memory limits: hackernoon.com/exploring-the-aws-lambda-deployment-limits-9a8384b0bec3
Downloading python linux libraries on Windows: medium.com/@korniichuk/lambda-with-pandas-fd81aa2ff25e
~ Other resources ~
Python email library docs: docs.python.org/3.8/library/email.examples.html
AWS Cron info (scheduling): docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
Lambda package setup: docs.aws.amazon.com/lambda/latest/dg/python-package.html
Thank you to Skillshare for sponsoring this video!
-------------------------
Video timeline!
0:00 - What we’ll be doing in this video
0:56 - Check out Skillshare! (sponsored)
1:56 - How can we automate scripts? Overview of local, cloud, and serverless methods
5:18 - Simple example of local script automation w/ cronjobs & windows task scheduler
18:32 - How to schedule code on a cloud machine (use cronjobs)
18:51 - Simple example of cloud script automation w/ AWS Lambda & Cloudwatch
27:09 - Schedule & automate sending an email locally
45:12 - Schedule & automate sending an email on the cloud w/ Lambda & Cloudwatch
50:18 - Installing python packages in a serverless environment (zip uploads)
55:50 - Generate & schedule sending analytics reports (locally)
1:02:45 - Generate & schedule sending analytics reports in AWS Lambda
1:07:03 - Limitations of lambda (max file upload size)
1:09:00 - Generate & schedule sending analytics reports in AWS Lambda
1:18:32 - Final thoughts & video recap!
-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli
-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs
Practice your Python Pandas data science skills with problems on StrataScratch!
stratascratch.com/?via=keith
Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli
*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

![Solving Leetcode Coding Interview Questions in Python!
Lets do some leetcode coding problems live! Join Saturday at 11am EST for about 2-3 hours of Python problems. Will plan to give some advice on how to strengthen your coding interview skills more generally as well. Hope to see you there!
https://leetcode.com/explore/featured/card/top-interview-questions-easy/
Learn data skills with hands-on exercises & tutorials at Datacamp!
https://datacamp.pxf.io/c/3588040/1012793/13294
Video Timeline!
0:00 - Fixing Live Stream Settings
2:38 - Introduction & what were doing today
4:10 - [Leetcode 412] Fizz Buzz string manipulation problem
22:04 - [Leetcode 189] Rotate Array
46:39 - [Leetcode 217] Contains Duplicate list problem
1:01:44 - [Leetcode 125] Valid Palindrome string problem
1:17:37 - [Leetcode 237] Delete Node in a Linked List (watch my brain not function properly!!!)
2:06:19 - [Leetcode 136] Single Number (trickier problem than it might first seem!)
2:28:52 - [Leetcode 104] Maximum Depth of a Binary Tree
2:47:35 - [Leetcode 36] Valid Sudoku (good function design problem)
Follow me on social media!
Instagram | https://www.instagram.com/keithgalli/
Twitter | https://twitter.com/keithgalli
TikTok | https://tiktok.com/@keithgalli
Practice your Python Pandas data science skills with problems on StrataScratch!
https://stratascratch.com/?via=keith
Join the Python Army to get access to perks!
YouTube - https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - https://www.patreon.com/keithgalli
*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links. Solving Leetcode Coding Interview Questions in Python!](https://i.ytimg.com/vi/btdna5esLsI/mqdefault.jpg)








