Skip to content

Instantly share code, notes, and snippets.

@h5rdly
h5rdly / download_s3_vanilla.py
Last active July 7, 2020 16:31
Download a file from S3 using "vanilla" standard library Python
import hashlib, hmac, socket, ssl
from datetime import datetime
try:
from urlparse import urlsplit
except:
from urllib.parse import urlsplit
ALGORTHM = 'AWS4-HMAC-SHA256'