RORY MCGREGOR
Independent thinking. Connected systems.

I build dependable data systems that turn complexity into clear insight.

Selected projects in data engineering, streaming and analytics.

01 — 03 / selected projects

Selected work

Projects built to explore practical data systems.

UK procurement / batch pipelineOCDS API → insights
FTS APIPython · OCDS
DuckDB + dbtRaw layer · models
Power BIRecent changes
Cursor pagination · incremental watermarksPrefect · monitored runs
01 / Batch data engineering

Procurement intelligence pipeline

Built a daily ELT pipeline for UK procurement notices using Python and the Find a Tender OCDS API. It handles cursor pagination and incremental watermarks, retains source JSON in DuckDB, shapes analysis-ready models with dbt, and uses Prefect for scheduled runs and observability. Power BI surfaces recent imports and changes.

PythonDuckDBdbtPrefectPower BI
View source on GitHub
network rail / movement streamEVENT FLOW
Network RailKafkaPostgresGrafana
Raspberry Pi producer → cloud databaseStreaming system
02 / Real-time data

Rail movement streaming

Python on a Raspberry Pi consumes Network Rail movement messages and publishes them to Aiven Kafka; a consumer stores the events in PostgreSQL. SQL views combine movement and activation details, and Grafana presents the stream in an operational dashboard. This demonstrates feed integration, event streaming, relational data modelling and dashboard delivery.

KafkaPythonPostgreSQLGrafana
online retail / lakehouse explorationPYSPARK · DELTA
INGESTCSV source
TRANSFORMPySpark notebook
STOREDelta table
EXPLORECatalog + dashboard
03 / Lakehouse analytics

Retail analytics in Databricks

Prepared an online retail dataset in Databricks with PySpark, transforming source data into Delta Lake tables for analytics. Unity Catalog organises the data assets, demonstrating Spark transformations, lakehouse storage and data governance.

DatabricksPySparkDelta LakeUnity Catalog
Tools & approach

Experience behind the projects

I bring a long-standing background in SQL Server, data warehouses, SSIS and reporting, with experience spanning NHS workforce information, retail data and CRM Software. These projects extend that foundation into modern batch and streaming tools.

My approach is practical: understand the data, keep the raw source recoverable, make transformations understandable, and give people a useful way to see what the system is doing.

SQL ServerSSIS / SSRSPythonDuckDBKafkaPostgreSQLPySparkPower BIReactAPI integration