def download_sdk ( url ) : r = requests . get ( url ) r . raise_for_status ( ) return StringIO ( r . content )
python requests how to download a zip file
Downloads the SDK and returns a file - like object for the zip content .
def download_sdk(url):
    """Downloads the SDK and returns a file-like object for the zip content."""
    r = requests.get(url)
    r.raise_for_status()
    return StringIO(r.content)