def httpUploadImage(srcImgPath, methodArgs): curlImgWrap.upload(methodArgs.get('url'), srcImgPath, methodArgs.get("headers", {}))
def upload_image(image_path, url, headers=None): with utils.stopwatch("Uploading {} to {}".format(image_path, url), level=logging.INFO, log=log): curlImgWrap.upload(url, image_path, headers)