pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Classes | Functions | Variables
pyrax::cf_wrapper::client Namespace Reference

Classes

class  CFClient
 Wraps the calls to swiftclient with objects representing Containers and StorageObjects. More...
class  Connection
 This class wraps the swiftclient connection, adding support for CDN. More...
class  FolderUploader
 Threading class to allow for uploading multiple files in the background. More...

Functions

def handle_swiftclient_exception
 Swiftclient often leaves the connection open.

Variables

string EARLY_DATE_STR = "1900-01-01T00:00:00"
string DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
string HEAD_DATE_FORMAT = "%a, %d %b %Y %H:%M:%S %Z"
int CONNECTION_TIMEOUT = 20
int CONNECTION_RETRIES = 5
int AUTH_ATTEMPTS = 2
tuple no_such_container_pattern
tuple no_such_object_pattern = re.compile(r"Object (?:GET|HEAD) failed: .+/(.+) 404")
string etag_fail_pat = r"Object PUT failed: .+/([^/]+)/(\S+) 422 Unprocessable Entity"
tuple etag_failed_pattern = re.compile(etag_fail_pat)

Function Documentation

Swiftclient often leaves the connection open.


Variable Documentation

int AUTH_ATTEMPTS = 2
string DATE_FORMAT = "%Y-%m-%dT%H:%M:%S"
string EARLY_DATE_STR = "1900-01-01T00:00:00"
string etag_fail_pat = r"Object PUT failed: .+/([^/]+)/(\S+) 422 Unprocessable Entity"
tuple etag_failed_pattern = re.compile(etag_fail_pat)
string HEAD_DATE_FORMAT = "%a, %d %b %Y %H:%M:%S %Z"
Initial value:
00001 re.compile(
00002         r"Container (?:GET|HEAD) failed: .+/(.+) 404")
tuple no_such_object_pattern = re.compile(r"Object (?:GET|HEAD) failed: .+/(.+) 404")
 All Classes Namespaces Files Functions Variables Properties