Building a Python API Client That Doesn’t Fall Apart When the API Misbehaves

Wait 5 sec.

The first version of almost every API client I write looks embarrassingly simple.Send a request. Parse the JSON. Return the result.