Pull a file directly from S3.
(url, temp_file)
| 157 | |
| 158 | @s3_request |
| 159 | def s3_get(url, temp_file): |
| 160 | """Pull a file directly from S3.""" |
| 161 | s3_resource = boto3.resource("s3") |
| 162 | bucket_name, s3_path = split_s3_path(url) |
| 163 | s3_resource.Bucket(bucket_name).download_fileobj(s3_path, temp_file) |
| 164 | |
| 165 | |
| 166 | def http_get(url, temp_file): |
no test coverage detected