Lab: Kestrel as an installable, tested package
Module 2 · Lab · About 45 minutes · Needs: lessons 1 and 2 of this module, and the Module 1 lab (or nothing: Step 1 rebuilds Module 1)
What you are building
Tomasz's team will run Kestrel's code from scheduled jobs, not from a notebook, and Rhys will build an image from it. Both need the same thing: a package that installs with one command, a way to call it from a terminal, and a test suite that says green or red. The lessons wrote the pieces; this lab joins them in the repository.
The lab puts the lessons' ten files into the repository unchanged, installs the package with pip install -e ., adds kestrel/cli.py (Kestrel from a terminal), a Makefile with the commands everyone runs, and tests/test_cli.py, which also settles a duplicate the lessons left behind. The Dockerfile and the CI workflow are written but not run here: they need Docker and GitHub. No cell calls a hosted model.
Open a new Colab notebook, call it module-02-lab.ipynb, and run each cell in order.