Skip to main content
Kai Walker

Hertfordshire, UK

← All workAnalytics platforms · 11 / 19

Python Framework

Shared Python toolkit reducing duplication across analytics automation

Role
Owned initiative
Stack
Python / GCP / BigQuery / Slack API / GitLab CI/CD
Domain
Platform / Infrastructure

Problem

Analytics team built similar data pipelines repeatedly: moving data between Looker, Slack, BigQuery, and email, scheduling jobs, managing credentials.

Constraints

Platform / Infrastructure

My role

Owned initiative.

  • Data Pipeline
  • Software Engineering
  • Machine Learning / Applied Maths / ML Ops
  • Data Governance
  • Data Modeling
  • Storytelling with data & Domain Knowledge

Approach

Created a shared Python framework with reusable helpers for common analysis patterns, automated GitLab releases, secure credential handling, and job scheduling. Established patterns that team members adopted and extended. Grew to approximately 20,000 lines across five production Cloud Functions deployed on Google Cloud.

Created a reusable Python framework that automates moving and updating data between Looker, Slack, BigQuery, and email. Grew to roughly 20k lines with about ten contributors and several small cloud functions running in production. Handles pulling data in, cleaning it, and sending it where it needs to go, using Python and shell scripts. Uses Google's cloud, standard APIs, and GitLab for automated releases. Includes helpers for common analysis tasks and machine-learning utilities. When models run in pipelines, failures alert the team on Slack; secrets stay in a managed vault. Added simple “data last updated at” labels and checks so live dashboards stay trustworthy. Database side: staging tables and separate lookup tables linked by IDs so data stays organised.

Result

  • Approximately 20,000 lines of shared framework code
  • Approximately 10 contributors adopting and extending the toolkit
  • Five GCP Cloud Functions in production using the framework
Next project12 / 19Cost to Serve Model