Archive Requests Python Module

Module that is used by the cart to send requests to the archive interface.

class pacifica.cartd.archive_requests.ArchiveRequests[source]

Class that supports all the requests to the archive interface.

__init__()[source]

Constructor for setting the AI URL.

static _status_dict(headers, file_name)[source]

Return status dictionary from http response headers.

pull_file(archive_filename, cart_filepath, hashval, hashtype)[source]

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)[source]

Send a post to the archive interface telling it to stage the file.

status_file(file_name)[source]

Get a status from the archive interface via Head and returns response.