Kaggle / Kaggle/kaggle-cli

View total uncompressed size for competition files

Open
#349 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
1.4k
Avg merge
3d 15h
Merged PRs (30d)
11

Description

I can't find a way in the Kaggle API to view the total uncompressed size of competition datasets, yet I'm able to with user owned datasets.

`KaggleApi.datasets_view` in the python source yields an object containing “totalBytes” which is the total uncompressed size of the specified user dataset but there doesn't seem to be an equivalent for kaggle competitions. Perhaps I'm overlooking something?

Is there currently a way to view total uncompressed size for competitions? If not I'd vote for this as a feature addition. It’s worth noting the api does return compressed sized correctly, I was able to by reading the `x-goog-stored-content-length` header tag produced from `KaggleApi.competitions_data_download_files_with_http_info`

The problem I'm trying to solve is to programmatically check whether or not there is enough local free space ahead of time before attempting to download a kaggle competition dataset. This requires looking up total uncompressed size in addition to compressed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.