pyrax
Python Bindings for the Rackspace Cloud
|
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... | |
class | BulkDeleter |
Threading class to allow for bulk deletion of objects from a container. More... | |
Functions | |
def | plug_hole_in_swiftclient_auth |
This is necessary because swiftclient has an issue when a token expires and it needs to re-authenticate against Rackspace auth. | |
def | handle_swiftclient_exception |
def | ensure_cdn |
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" |
string | LIST_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S.%f" |
int | CONNECTION_TIMEOUT = 20 |
int | CONNECTION_RETRIES = 5 |
int | AUTH_ATTEMPTS = 2 |
int | MAX_BULK_DELETE = 10000 |
int | DEFAULT_CHUNKSIZE = 65536 |
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) |
def pyrax.cf_wrapper.client.ensure_cdn | ( | fnc | ) |
def pyrax.cf_wrapper.client.plug_hole_in_swiftclient_auth | ( | clt, | |
url | |||
) |
This is necessary because swiftclient has an issue when a token expires and it needs to re-authenticate against Rackspace auth.
It is a temporary workaround until we can fix swiftclient.
int AUTH_ATTEMPTS = 2 |
int CONNECTION_RETRIES = 5 |
int CONNECTION_TIMEOUT = 20 |
string DATE_FORMAT = "%Y-%m-%dT%H:%M:%S" |
int DEFAULT_CHUNKSIZE = 65536 |
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" |
string LIST_DATE_FORMAT = "%Y-%m-%dT%H:%M:%S.%f" |
int MAX_BULK_DELETE = 10000 |
00001 re.compile( 00002 r"Container (?:GET|HEAD) failed: .+/(.+) 404")
tuple no_such_object_pattern = re.compile(r"Object (?:GET|HEAD) failed: .+/(.+) 404") |