s3bundler_19.py 257 B

1234
  1. def hashkey(bucket, key):
  2. """create a key to use with a prepartitioned bucket:
  3. https://docs.aws.amazon.com/AmazonS3/latest/dev/request-rate-perf-considerations.html"""
  4. return hashlib.md5(os.path.join(bucket,key).encode('utf-8')).hexdigest()[0:6]