SCRIdb.tools.put_object

SCRIdb.tools.put_object(dest_bucket_name, dest_object_name, src_data, md5sums=None)

Put an object on Amazon S3 bucket, while verifying the integrity of the uploaded object.

Note

More information on how to verify the integrity of the uploaded object using ETag and MD5 can be found here.

Parameters
  • dest_bucket_name (str) – Bucket name

  • dest_object_name (str) – Target S3 key

  • src_data (str) – Path to source file

  • md5sums (Union[str, dict, None]) – A set of key (name), value (MD5 hash) or path to MD5 hashes file

Return type

Tuple[str, bool]

Returns

tuple