Metadata-Version: 2.1
Name: rcurl
Version: 0.0.2
Summary: Generate curl commands from python-requests
Home-page: https://github.com/rapando/rcurl
Author: Samson Rapando
Author-email: samsonrapando@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# rcurl

A simple package of generating curl statements from requests.

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

## Installation
```bash
pip install rcurl
```

## Usage
```py
import json

import requests

from rcurl import get_curl

req_one = requests.get("https://google.com")
curl_command_one = get_curl(req_one)

req_two = requests.post("https://google.com")
curl_command_two = get_curl(req_two)

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

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

## Build
```bash
python setup.py bdist_wheel sdist
twine upload dist/*
```

