Archive Requests Python Module¶
Module that is used by the cart to send requests to the archive interface.
-
class
pacifica.cartd.archive_requests.
ArchiveRequests
¶ Class that supports all the requests to the archive interface.
-
__init__
()¶ Constructor for setting the AI URL.
-
__weakref__
¶ list of weak references to the object (if defined)
-
static
_status_dict
(headers, file_name)¶ Return status dictionary from http response headers.
-
pull_file
(archive_filename, cart_filepath, hashval, hashtype)¶ Pull file from AI.
Performs a request that will attempt to write the contents of a file from the archive interface to the specified cart filepath
-
stage_file
(file_name)¶ Send a post to the archive interface telling it to stage the file.
-
status_file
(file_name)¶ Get a status from the archive interface via Head and returns response.
-