Skip to content

Commit

Permalink
Restore licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemessick committed Apr 29, 2024
1 parent b0ca209 commit 9aed8a1
Show file tree
Hide file tree
Showing 31 changed files with 1,214 additions and 738 deletions.
16 changes: 16 additions & 0 deletions kaggle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/python
#
# Copyright 2024 Kaggle Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# coding=utf-8
from __future__ import absolute_import
from kaggle.api.kaggle_api_extended import KaggleApi
Expand Down
16 changes: 16 additions & 0 deletions kaggle/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/python
#
# Copyright 2024 Kaggle Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import

# flake8: noqa
Expand Down
36 changes: 26 additions & 10 deletions kaggle/api/kaggle_api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
#!/usr/bin/python
#
# Copyright 2024 Kaggle Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# coding: utf-8

"""
Expand Down Expand Up @@ -3011,7 +3027,7 @@ def kernels_list(self, **kwargs): # noqa: E501
:param async_req bool
:param int page: Page number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str search: Search terms
:param str group: Display only your kernels
:param str user: Display kernels by a particular group
Expand Down Expand Up @@ -3043,7 +3059,7 @@ def kernels_list_with_http_info(self, **kwargs): # noqa: E501
:param async_req bool
:param int page: Page number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str search: Search terms
:param str group: Display only your kernels
:param str user: Display kernels by a particular group
Expand Down Expand Up @@ -3146,7 +3162,7 @@ def kernels_list_files(self, user_name, kernel_slug, **kwargs): # noqa: E501
:param str user_name: Kernel owner (required)
:param str kernel_slug: Kernel name (required)
:param str kernel_version_number: Kernel version number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand All @@ -3171,7 +3187,7 @@ def kernels_list_files_with_http_info(self, user_name, kernel_slug, **kwargs):
:param str user_name: Kernel owner (required)
:param str kernel_slug: Kernel name (required)
:param str kernel_version_number: Kernel version number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand Down Expand Up @@ -3600,7 +3616,7 @@ def model_instance_versions_files(self, owner_slug, model_slug, framework, insta
:param str framework: Model instance framework (required)
:param str instance_slug: Model instance slug (required)
:param str version_number: Model instance version number (required)
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand All @@ -3627,7 +3643,7 @@ def model_instance_versions_files_with_http_info(self, owner_slug, model_slug, f
:param str framework: Model instance framework (required)
:param str instance_slug: Model instance slug (required)
:param str version_number: Model instance version number (required)
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand Down Expand Up @@ -4070,7 +4086,7 @@ def models_list(self, **kwargs): # 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 int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand All @@ -4095,7 +4111,7 @@ def models_list_with_http_info(self, **kwargs): # 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 int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand Down Expand Up @@ -4175,7 +4191,7 @@ def models_list_files(self, owner_slug, model_slug, **kwargs): # noqa: E501
:param str owner_slug: Model owner (required)
:param str model_slug: Model name (required)
:param str model_version_number: Model version number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand All @@ -4200,7 +4216,7 @@ def models_list_files_with_http_info(self, owner_slug, model_slug, **kwargs): #
:param str owner_slug: Model owner (required)
:param str model_slug: Model name (required)
:param str model_version_number: Model version number
:param int page_size: Page size
:param int page_size: Number of items per page (default 20)
:param str page_token: Page token for pagination
:return: Result
If the method is called asynchronously,
Expand Down
Loading

0 comments on commit 9aed8a1

Please sign in to comment.