Kaggle / Kaggle/kaggle-cli

How to get latest dataset version number?

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

Description

It used to be possible to get the dataset version with the `/datasets/view` endpoint
```
REMOTE_VERSION = kaggle.api.dataset_view('owner/slug').versions[0].versionNumber
```
However, it seems like support for this endpoint was dropped in https://github.com/Kaggle/kaggle-api/pull/482

1. May we know why support for this endpoint was dropped in the library? The endpoint seems to still be working and the code snippet above still works in older versions of this package.
2. If above is because there are plans to deprecate the `/datasets/view`, what is the new way to get the latest version of a dataset?

@Philmod @jplotts
Thanks!

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.