pyrax
Python Bindings for the Rackspace Cloud
|
Functions | |
def | request |
Handles all the common functionality required for API calls. | |
def | http_log_req |
When pyrax.get_http_debug() is True, outputs the equivalent `curl` command for the API request being made. | |
def | http_log_resp |
When pyrax.get_http_debug() is True, outputs the response received from the API request. | |
Variables | |
dictionary | req_methods |
verify_ssl = False |
def pyrax.http.http_log_req | ( | args, | |
kwargs | |||
) |
When pyrax.get_http_debug() is True, outputs the equivalent `curl` command for the API request being made.
def pyrax.http.http_log_resp | ( | resp, | |
body | |||
) |
When pyrax.get_http_debug() is True, outputs the response received from the API request.
def pyrax.http.request | ( | method, | |
uri, | |||
args, | |||
kwargs | |||
) |
Handles all the common functionality required for API calls.
Returns the resulting response object.
Formats the request into a dict representing the headers and body that will be used to make the API call.
dictionary req_methods |
00001 { 00002 "HEAD": requests.head, 00003 "GET": requests.get, 00004 "POST": requests.post, 00005 "PUT": requests.put, 00006 "DELETE": requests.delete, 00007 "PATCH": requests.patch, 00008 }
verify_ssl = False |