Weekly ops report by Toyo NtewoWeekly ops report by Toyo Ntewo

Weekly ops report

Portfolio project
Toyo Ntewo

Weekly ops report

An automated Monday-morning report for a YouTube channel. It reads the production pipeline from Notion and channel stats from the YouTube Data API, compares them with last week, and sends a one-page status email: what shipped, what grew, what's stuck, and where Notion and YouTube disagree.
Built for Clarity Ideas, a faceless psychology and productivity channel. To use it for a different business, swap the two source adapters.
Notion (pipeline) ─> snapshot ─> diff vs last week ─> metrics ─> Markdown + HTML ─> email / Slack / archive YouTube API (committed to repo)
Runs on: GitHub Actions cron, Mondays 07:00 WAT
Dependencies: none. Python standard library only
Cost: $0. The YouTube API uses about 5 quota units per run out of the 10,000/day free tier
Numbers: all computed in code and covered by unit tests. No estimates, no LLM

What the report contains

Section
Source
What it answers
Summary + status (green/amber/red)
all
Is this week on track?
Output
YouTube
Videos uploaded vs the weekly target
Channel performance
YouTube, diffed weekly
Views and subscribers gained, top videos by weekly gain
Pipeline
Notion, diffed weekly
Stage counts, what moved, what's new, what's stuck 7+ days, what's due
Time
Notion
Hours on shipped videos, average hours per video
Data checks
Notion vs YouTube
Published rows with no video ID, uploads missing from Notion

Run it

python3 -m ops_report --demo # sample data, no keys needed -> reports/demo/ python3 -m unittest discover -s tests python3 -m ops_report --dry-run # live data, sends nothing, saves no snapshot python3 -m ops_report # live run

Setup

Notion: create an internal integration at notion.so/profile/integrations with read-content access only. Then open the Clarity Ideas Content Pipeline database, go to ... > Connections and add the integration.
YouTube: in Google Cloud console, enable YouTube Data API v3 and create an API key, restricted to that API. Your channel ID is in YouTube Studio > Settings > Channel > Advanced.
Local: copy .env.example to .env and fill it in.
GitHub: push to a repo, then add the following under Settings > Secrets and variables > Actions:
Secrets: YOUTUBE_API_KEY, NOTION_TOKEN, plus optionally SMTP_USER, SMTP_APP_PASSWORD, REPORT_TO and SLACK_WEBHOOK_URL
Variables: YOUTUBE_CHANNEL_ID, NOTION_DATA_SOURCE_ID
Trigger the workflow once by hand (Actions > Weekly ops report > Run workflow). The first run sets the baseline. Week-over-week numbers start with the second run.
Settings in config.json: weekly publish target, stuck threshold, timezone, and manual_minutes_per_report. Set that last one to how long the report took you by hand, and the footer will track the hours saved.

Layout

ops_report/ sources/youtube.py YouTube Data API v3 (channel + every upload) sources/notion.py Notion data source query + property parsing snapshot.py weekly JSON snapshots, finds last week's metrics.py every number in the report render.py Markdown + inline-styled HTML email deliver.py archive, SMTP, Slack webhook, run log data/snapshots/ one JSON per run (committed by the Action) data/runs.csv run log: duration, rows, delivery reports/ dated reports, DD-MM-YYYY

About

Automated weekly ops report: Notion pipeline + YouTube stats, diffed weekly, emailed every Monday. Python stdlib + GitHub Actions, $0/month.

0 likes · 0 views · Dec 4, 2026

Built an automated weekly report that combines Notion production data and YouTube stats, then emails a one-page status update.

Tags