Acquire.Access._runrequest module

class RunRequest(runfile=None)[source]

Bases: Acquire.Access._request.Request

This class holds a request to run a particular calculation on a RunService. The result of this request will be a PAR to which the input should be loaded, and a Bucket from which the output can be read. The calculation will start once the input has been signalled as loaded.

fingerprint()[source]

Return a unique fingerprint for this request that can be used for signing and verifying authorisations

static from_data(data)[source]

Construct a Request from the data in the json-deserialised dictionary

input_files()[source]

Return a dictionary of the input file information for the input files for the calculation. This is a dictionary mapping the key for each file to the filename in the tarfile, the size of the file in the tarfile and the md5 sum of the file

is_null()[source]

Return whether or not this is a null request

runinfo()[source]

Return the processed run information used to describe the calculation to be run. This includes information about all of the input files, such as their names, filesizes and MD5 checksums

tarfile()[source]

Return the name of the tarfile containing all of the input files

tarfile_md5sum()[source]

Return the MD5 checksum of the tarfile containing the input files

tarfile_size()[source]

Return the size of the tarfile in bytes

to_data()[source]

Return this request as a json-serialisable dictionary

uid()[source]

Return the UID of this request