Skip to content
littlekit.app
All tools

cURL to Python requests

Turn a bounded cURL command into a reviewable Python requests snippet, entirely locally.

Supports URL, -X/--request, -H/--header, -d/--data, --url, -u and -I. The output is a static requests snippet.
Authorization, cookies and API-key headers stay redacted unless you explicitly opt in.
Generated Python preview300 characters
import requests

url = "https://api.example.com/v1/notes?limit=10"
headers = {
    "Content-Type": "application/json",
    "Authorization": "[redacted]",
}
response = requests.request("POST", url, headers=headers, data="{\"title\":\"Morning notes\"}")
print(response.status_code)
print(response.text)
Processed on your device

How it works & useful details

Local-only workspace

This tool converts or inspects pasted text in your browser. It never sends a request, opens a URL, uploads a HAR, or stores your input.

Supported cURL syntax

The same bounded cURL subset is converted into a static requests.request call. Review the generated snippet before using it in your own environment.