Skip to main content

Generate curl commands from python-requests

Project description


A simple package of generating curl statements from requests.

For now the supported methods are limited. Checl the samples in usage


pip install rcurl


import json

import requests

from rcurl import get_curl

req_one = requests.get("")
curl_command_one = get_curl(req_one)

req_two ="")
curl_command_two = get_curl(req_two)

data = json.dumps({'a': 'b', 'x': 45})
headers = {
    'content-type': 'application/json',
    'authorization': 'Bearer dhsfdJGHGDH'
req_three ="", data=data, headers=headers)
curl_command_three = get_curl(req_three)

print (curl_command_one)
print (curl_command_two)
print (curl_command_three)


python bdist_wheel sdist
twine upload dist/*

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 rcurl, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size rcurl-0.0.2-py3-none-any.whl (2.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rcurl-0.0.2.tar.gz (1.8 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