This tool turns a curl command into Python code. There's probably bugs; please contribute on GitHub!
Very simple example · Basic Auth · POST · POST data with files · Several data blocks ·