iu_generate_upload_creds.py¶
Generates upload credentials for one or more File records on the IGVF Portal. The upload credentials store AWS authorization tokens to allow a user to upload a file to a presigned S3 URL.
The Exception requests.exceptions.HTTPError will be raised if the response from the server a not a successful status code for any File object when attempting to generate the upload credentials, and will utlimately halt the program with an error message.
usage: iu_generate_upload_creds.py [-h] [-m IGVF_MODE]
(-f FILE_IDS [FILE_IDS ...] | -i INFILE)
Named Arguments¶
- -m, --igvf-mode
The IGVF Portal site (‘prod’, ‘sandbox’, ‘staging, or an explicit host name, i.e. ‘*.demo.igvf.org’) to connect to.
- -f, --file-ids
One or more IGVF File identifiers. They can be any valid IGVF File object identifier, i.e. alias, uuid, accession, md5sum.
Default: []
- -i, --infile
- Input file containing File object identifiers, one
per line.