internalsGet Pro

Module 03 · Lesson 9 of 10Pro

Packaging pipelines: config, dependencies and Docker

Level
Intermediate
Topic
Python for data engineering
Reading time
16 min

When you finish this page you can

  1. Name the five things a pipeline script depends on, and the file that pins each one.
  2. Read settings and secrets from the environment, and make a script stop at start when one is missing.
  3. Pin every package, direct and transitive, with a lock file installed under hash checking.
  4. Package a nightly job as a Docker image on a pinned Python base, and run it from cron with an env file and a mounted data folder.

Builds on 3 lessons

Start with lesson 112 min
  1. The Python data toolkit: libraries that matter12 min
  2. Reading and writing databases from Python16 min
  3. Testing data code with pytest17 min

It worked at 18:00 and failed at 01:00

is an online store in India. Every night at 01:00, one Python script, run_night.py, copies the day’s orders and click events from the store’s PostgreSQL into . It builds the tables that Daniel, who leads finance reporting, reads at 07:00. A run takes about 2.5 hours.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan