def GenerateUploadUrl(self, key, content_type=None, content_md5=None, expires_in=constants.SECONDS_PER_DAY,
                        max_bytes=5 << 20):
    headers = {}
    util.SetIfNotNone(headers, 'Content-Type', content_type)
    util.SetIfNotNone(headers, 'Content-MD5', content_md5)

    return self._s3_conn.generate_url(expires_in,
                                      'PUT',
                                      self._bucket_name,
                                      key,
                                      headers=headers or None)
Return a socket object.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/storage/s3_object_store.py/S3ObjectStore.GenerateUploadUrl--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/udp.py/Port.getHandle