curl-to-Py is a tool to instantly convert curl commands to Python code in the browser. It does not guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.
This project is working now. You can paly around with it via the website below. If you find any bug or you have some advice, please file an issue.
Check it out! It works inside your browser.
Any curl command should work, but only certain flags are understood and converted into Go code. The rest of the flags will be ignored.
Mostly simple HTTP commands (headers, basic auth, body, etc).
Yes, if you convice that falg is very important. Or you can do it yourself.
curl-to-Py is inspired by curl-to-Go.