Skip to main content

Library to convert python requests object to curl command.

Project description

# Curlify - convert python requests request object to cURL command

## Installation
pip install curlify

## Changes

### v.1.2
* Order of headers is deterministic (thanks to @tomviner)

## Example

import curlify
import requests

response = requests.get("")
# curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-requests/2.7.0 CPython/2.7.11 Darwin/15.6.0' -d '' ''

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for curlify, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size curlify-1.2.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page