Python Tutorial : Introduction to data ingestion with Singer

15 Apr 2020 · 5 min
4:30

In this tutorial, the instructor introduces Singer, an open‑source specification designed to standardize data ingestion pipelines. Singer defines how extraction scripts (taps) and loading scripts (targets) communicate via a JSON‑based message format sent over standard output. The talk explains the three core message types—schema, state, and record—and how they are organized into named streams, allowing logical partitioning of data (e.g., per table or error channel). The speaker details how to describe a stream’s data using a valid JSON Schema, including field types, constraints, and optional ID/schema identifiers, and how to wrap that schema into a Singer schema message with the write_schema function, specifying stream name and primary‑key fields. Finally, the tutorial covers Python’s JSON module, contrasting json.dumps (string output) with json.dump (file output), and shows how these tools serialize Singer messages for downstream consumption.

Chapters

More from Richie

youtube.com

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

5mo ago
youtube.com

17.8% of the World Now Uses AI — And the Gap Is Widening | The Median #5

5mo ago
youtube.com

Create GPTs to Automate Go-To-Market Research

5mo ago
youtube.com

What Happened to Self-Driving Cars? #AI

5mo ago
youtube.com

Never Use AI For This #warning #AI #flights

5mo ago
youtube.com

Use AI Agents to Analyze Power Grid Optimization

5mo ago
youtube.com

This is how modern AI actually solves problems #AITrends #AI

5mo ago
youtube.com

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

Build an AI‑driven Dashboard

5mo ago
youtube.com

What’s Broken in Labor Markets Today #datascience

5mo ago
See all content