Lab: Build the BrightCart API client
Module 1 · Lab · About 60 minutes · Needs: lessons 1, 3, 4 and 5 (exceptions, the project folder and tests, Git, timeouts and retries)
What you are building
Module 1's piece of BrightCart is an API client that retries, times out and keeps keys secret. The lessons built each part in a notebook cell: the retry decorator in lesson 1, the brightcart/ folder and JSON logs in lesson 3, the Git habit in lesson 4, OrderClient with backoff and jitter in lesson 5. This lab puts them in one small project that another person can clone, install and test. One ticket runs through it at the end: Priya's "Please refund order 7120, the bulbs are the wrong fitting." The assistant looks the order up through the client, survives one failure of the order system on the way, and answers with the hosted model. Every file is tested without a model before the model is called once.