Project

s3etag

0.01
No commit activity in last 3 years
No release in over 3 years
calculate AWS S3 etag by multi upload
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

S3etag

Build Status

calculate AWS S3 etag

Generally the ETAG is the MD5 of the object. If the object was uploaded using multipart upload then this is the MD5 all of the upload-part-md5s.

http://docs.amazonwebservices.com/AWSRubySDK/latest/AWS/S3/S3Object.html#etag-instance_method

Install

% gem install s3etag

Gem

require 's3etag'

p S3Etag.calc(:data => 'a' * 1000)
p S3Etag.calc(:data => 'a' * 1000, :threshold => 100, :min_part_size => 100)
p S3Etag.calc(:file => 'test.txt')
p S3Etag.calc(:file => '.text.text', :threshold => 100, :min_part_size => 100)

Command line

% s3etag
s3etag file
    -t, --threshold threshold
    -p, --max-parts max-parts
    -s, --min_part_size min_part_size

% s3etag text.txt
91fdac689d4861c9ae7a0afa21a1f6b8-18

% s3etag -s 10000000 text.text
32aafcd9748824e559b4dbd6b908f6fa-10

Etc

https://github.com/swdyh/s3etag The MIT License