def gcs_put_request(url, local_path):
 return requests.request('PUT', url, data=open(local_path, 'rb'), headers={'content-type': 'application/x-gzip'}, timeout=REQUEST_TIMEOUT, verify=False)

def gcs_put_request ( url , local_path ) : return requests . request ( 'PUT' , url , data = open ( local_path , 'rb' ) , headers = { 'content-type' : 'application/x-gzip' } , timeout = REQUEST_TIMEOUT , verify = False )
performs a put request to the given url .