Or put the API definitions into some database (sqlite, datascript + nodejs or babashka or nbb), then you can decide what http library or mocked http solution would you like to use, eg https://github.com/oliyh/martian
Most of the code is just a thin veneer over that information...
Another example to add to your list - the new AWS CLI v2:
> don't force me to download a 30MB binary with embedded Python interpreter baked in, please just give us a pip package instead!
;)