from urllib.parse import urlparse


def parse_s3_url(url):
    """
    Break a url into bucket and key
    """
    up = urlparse(url)
    bucket = up.netloc
    key = up.path.lstrip('/')
    return bucket, key