diff --git a/kaggle/api/kaggle_api.py b/kaggle/api/kaggle_api.py index a4d482d..8153748 100644 --- a/kaggle/api/kaggle_api.py +++ b/kaggle/api/kaggle_api.py @@ -109,10 +109,9 @@ def competitions_submissions_submit(self, blob_file_tokens, submission_descripti :param str id: Competition name (required) :return: Result """ - - print("competitions_submissions_submit() not implemented") - print("use kaggle_api_extended.KaggleApi.competition_submit() instead") - raise NotImplementedError() + print("competitions_submissions_submit() not implemented") + print("use kaggle_api_extended.KaggleApi.competition_submit() instead") + raise NotImplementedError() def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc): # noqa: E501 """Upload competition submission file # noqa: E501 @@ -124,7 +123,7 @@ def competitions_submissions_upload(self, file, guid, content_length, last_modif :return: Result """ print("competitions_submissions_upload() not implemented") - print("use kaggle_api_extended.KaggleApi.competition_submit() instead") + print("use kaggle_api_extended.KaggleApi.competitions_submissions_submit() instead") raise NotImplementedError() def competitions_submissions_url(self, id, content_length, last_modified_date_utc): # noqa: E501 @@ -183,7 +182,7 @@ def datasets_download(self, owner_slug, dataset_slug, dataset_version_number=Non """ dataset = f'{owner_slug}/{dataset_slug}' if dataset_version_number is not None: - dataset += f'@{dataset_version_number}' + dataset += f'/{dataset_version_number}' return self.api_client.dataset_download_files(dataset) def datasets_download_file(self, owner_slug, dataset_slug, file_name, dataset_version_number=None): # noqa: E501 diff --git a/src/kaggle/api/kaggle_api.py b/src/kaggle/api/kaggle_api.py index a4d482d..b019c04 100644 --- a/src/kaggle/api/kaggle_api.py +++ b/src/kaggle/api/kaggle_api.py @@ -109,10 +109,9 @@ def competitions_submissions_submit(self, blob_file_tokens, submission_descripti :param str id: Competition name (required) :return: Result """ - - print("competitions_submissions_submit() not implemented") - print("use kaggle_api_extended.KaggleApi.competition_submit() instead") - raise NotImplementedError() + print("competitions_submissions_submit() not implemented") + print("use kaggle_api_extended.KaggleApi.competition_submit() instead") + raise NotImplementedError() def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc): # noqa: E501 """Upload competition submission file # noqa: E501 @@ -124,7 +123,7 @@ def competitions_submissions_upload(self, file, guid, content_length, last_modif :return: Result """ print("competitions_submissions_upload() not implemented") - print("use kaggle_api_extended.KaggleApi.competition_submit() instead") + print("use kaggle_api_extended.KaggleApi.competitions_submissions_submit() instead") raise NotImplementedError() def competitions_submissions_url(self, id, content_length, last_modified_date_utc): # noqa: E501 @@ -183,7 +182,7 @@ def datasets_download(self, owner_slug, dataset_slug, dataset_version_number=Non """ dataset = f'{owner_slug}/{dataset_slug}' if dataset_version_number is not None: - dataset += f'@{dataset_version_number}' + dataset += f'/{dataset_version_number}' return self.api_client.dataset_download_files(dataset) def datasets_download_file(self, owner_slug, dataset_slug, file_name, dataset_version_number=None): # noqa: E501 @@ -491,19 +490,19 @@ def models_list(self, owner=None, page_size=20, page_token=None): # noqa: E501 - """Lists models # noqa: E501 - :param str search: Search terms - :param str sort_by: Sort the results - :param str owner: Display models by a specific user or organization - :param int page_size: Page size - :param str page_token: Page token for pagination - :return: Result - """ - return self.api_client.model_list(sort_by=sort_by, - search=search, - owner=owner, - page_size=page_size, - page_token=page_token) + """Lists models # noqa: E501 + :param str search: Search terms + :param str sort_by: Sort the results + :param str owner: Display models by a specific user or organization + :param int page_size: Page size + :param str page_token: Page token for pagination + :return: Result + """ + return self.api_client.model_list(sort_by=sort_by, + search=search, + owner=owner, + page_size=page_size, + page_token=page_token) def update_model(self, owner_slug, model_slug, model_update_request,): # noqa: E501 """Update a model # noqa: E501