cURL to Python
Paste a cURL command below.
Paste a cURL command and convert it into Python requests code. JSON bodies become json= dicts, headers become a dict, and auth becomes the auth tuple.
Paste a cURL command below.
The parser reads the method, URL, headers and body, then emits requests.get or requests.post with matching arguments. When the content type is JSON, the body is parsed and emitted as a Python dict via json=, with True, False and None translated correctly.
API documentation written for terminal users becomes a runnable Python script in one step. It is the fastest path to a quick data pull, a webhook test or a prototype integration.