\tangent Wouldn't it make sense for this to be a library? Though most of the py looks so simple, it already has the libraries.
Or, to parse the curl command string at run time, so it can easily be human-read, as a curl command?
But I guess the idea is to generate a start-point template, which can then be customised for whatever is needed.
It would be nice for a tool to combine both - so new code is attached to the curl command string... but not very readable... and not very flexible (I bet the next thing you wanted to add would be something that hadn't been considered...)
Or, to parse the curl command string at run time, so it can easily be human-read, as a curl command?
But I guess the idea is to generate a start-point template, which can then be customised for whatever is needed.
It would be nice for a tool to combine both - so new code is attached to the curl command string... but not very readable... and not very flexible (I bet the next thing you wanted to add would be something that hadn't been considered...)