def benchmark(asset_id): token = os.getenv("FRAMEIO_TOKEN") client = FrameioClient(token) asset_info = client.assets.get(asset_id) accelerated_filename = client.download(asset_info, "downloads", prefix="accelerated_", multi_part=True, concurrency=20)
def download(asset_id): token = getenv("FRAME_IO_TOKEN") client = FrameioClient(token) asset_info = client.get_asset(asset_id) filename = client.download(asset_info, "", prefix="", multi_part=True, concurrency=8) return filename