--- Python Cabinet • Matt Twells

~/cabinet/python

Python Cabinet

Everyday Python structure, syntax, pathlib, requests, and pytest patterns. Each drawer names its evidence and limits; course notes are not a substitute for a hands-on test.

3 sections

HTTP Requests And JSON

Always pass a `timeout`, call `response.raise_for_status()`, and check keys after `response.json()`—otherwise a slow or failing API hangs your script or crashes with a confusing `KeyError`.

open drawer →