repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competition_download_leaderboard
def competition_download_leaderboard(self, id, **kwargs): # noqa: E501 """Download competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_download_leade...
python
def competition_download_leaderboard(self, id, **kwargs): # noqa: E501 """Download competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_download_leade...
[ "def", "competition_download_leaderboard", "(", "self", ",", "id", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", "."...
Download competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_download_leaderboard(id, async_req=True) >>> result = thread.get() :param async_...
[ "Download", "competition", "leaderboard", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L52-L71
train
Download a competition leaderboard.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competition_view_leaderboard
def competition_view_leaderboard(self, id, **kwargs): # noqa: E501 """VIew competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_view_leaderboard(id, a...
python
def competition_view_leaderboard(self, id, **kwargs): # noqa: E501 """VIew competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_view_leaderboard(id, a...
[ "def", "competition_view_leaderboard", "(", "self", ",", "id", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", ...
VIew competition leaderboard # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competition_view_leaderboard(id, async_req=True) >>> result = thread.get() :param async_req bool...
[ "VIew", "competition", "leaderboard", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L141-L160
train
VIew competition leaderboard
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_data_download_file
def competitions_data_download_file(self, id, file_name, **kwargs): # noqa: E501 """Download competition data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_...
python
def competitions_data_download_file(self, id, file_name, **kwargs): # noqa: E501 """Download competition data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_...
[ "def", "competitions_data_download_file", "(", "self", ",", "id", ",", "file_name", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "ret...
Download competition data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_download_file(id, file_name, async_req=True) >>> result = thread.get() :para...
[ "Download", "competition", "data", "file", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L230-L250
train
Download competition data file
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_data_list_files
def competitions_data_list_files(self, id, **kwargs): # noqa: E501 """List competition data files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_list_files(id, as...
python
def competitions_data_list_files(self, id, **kwargs): # noqa: E501 """List competition data files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_list_files(id, as...
[ "def", "competitions_data_list_files", "(", "self", ",", "id", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", ...
List competition data files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_data_list_files(id, async_req=True) >>> result = thread.get() :param async_req bool ...
[ "List", "competition", "data", "files", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L327-L346
train
List competition data files.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_list
def competitions_list(self, **kwargs): # noqa: E501 """List competitions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_list(async_req=True) >>> result = threa...
python
def competitions_list(self, **kwargs): # noqa: E501 """List competitions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_list(async_req=True) >>> result = threa...
[ "def", "competitions_list", "(", "self", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", "competitions_list_with_ht...
List competitions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_list(async_req=True) >>> result = thread.get() :param async_req bool :param str group:...
[ "List", "competitions", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L420-L443
train
List competitions by category group and terms.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_submissions_list
def competitions_submissions_list(self, id, **kwargs): # noqa: E501 """List competition submissions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_list(id,...
python
def competitions_submissions_list(self, id, **kwargs): # noqa: E501 """List competition submissions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_list(id,...
[ "def", "competitions_submissions_list", "(", "self", ",", "id", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", ...
List competition submissions # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_list(id, async_req=True) >>> result = thread.get() :param async_req boo...
[ "List", "competition", "submissions", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L525-L545
train
List competition submissions
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_submissions_submit
def competitions_submissions_submit(self, blob_file_tokens, submission_description, id, **kwargs): # noqa: E501 """Submit to competition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = ...
python
def competitions_submissions_submit(self, blob_file_tokens, submission_description, id, **kwargs): # noqa: E501 """Submit to competition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = ...
[ "def", "competitions_submissions_submit", "(", "self", ",", "blob_file_tokens", ",", "submission_description", ",", "id", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", ...
Submit to competition # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_submit(blob_file_tokens, submission_description, id, async_req=True) >>> result = threa...
[ "Submit", "to", "competition", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L622-L643
train
Submit to competition
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_submissions_upload
def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Upload competition submission file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True ...
python
def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Upload competition submission file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True ...
[ "def", "competitions_submissions_upload", "(", "self", ",", "file", ",", "guid", ",", "content_length", ",", "last_modified_date_utc", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ...
Upload competition submission file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_upload(file, guid, content_length, last_modified_date_utc, async_req=True) ...
[ "Upload", "competition", "submission", "file", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L735-L757
train
Uploads a competition submission file to a specific location.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.competitions_submissions_url
def competitions_submissions_url(self, id, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Generate competition submission URL # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> ...
python
def competitions_submissions_url(self, id, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Generate competition submission URL # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> ...
[ "def", "competitions_submissions_url", "(", "self", ",", "id", ",", "content_length", ",", "last_modified_date_utc", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", ...
Generate competition submission URL # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.competitions_submissions_url(id, content_length, last_modified_date_utc, async_req=True) >>> resul...
[ "Generate", "competition", "submission", "URL", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L856-L878
train
Generate a competition submission URL for a specific competition.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_create_new
def datasets_create_new(self, dataset_new_request, **kwargs): # noqa: E501 """Create a new dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_create_new(dataset_new_re...
python
def datasets_create_new(self, dataset_new_request, **kwargs): # noqa: E501 """Create a new dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_create_new(dataset_new_re...
[ "def", "datasets_create_new", "(", "self", ",", "dataset_new_request", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ...
Create a new dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_create_new(dataset_new_request, async_req=True) >>> result = thread.get() :param async_req bool...
[ "Create", "a", "new", "dataset", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L973-L992
train
Create a new dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_create_version
def datasets_create_version(self, owner_slug, dataset_slug, dataset_new_version_request, **kwargs): # noqa: E501 """Create a new dataset version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> t...
python
def datasets_create_version(self, owner_slug, dataset_slug, dataset_new_version_request, **kwargs): # noqa: E501 """Create a new dataset version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> t...
[ "def", "datasets_create_version", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "dataset_new_version_request", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", ...
Create a new dataset version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_create_version(owner_slug, dataset_slug, dataset_new_version_request, async_req=True) >>> result...
[ "Create", "a", "new", "dataset", "version", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1070-L1091
train
Create a new dataset version
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_create_version_by_id
def datasets_create_version_by_id(self, id, dataset_new_version_request, **kwargs): # noqa: E501 """Create a new dataset version by id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = ap...
python
def datasets_create_version_by_id(self, id, dataset_new_version_request, **kwargs): # noqa: E501 """Create a new dataset version by id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = ap...
[ "def", "datasets_create_version_by_id", "(", "self", ",", "id", ",", "dataset_new_version_request", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")...
Create a new dataset version by id # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_create_version_by_id(id, dataset_new_version_request, async_req=True) >>> result = thread....
[ "Create", "a", "new", "dataset", "version", "by", "id", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1183-L1203
train
Create a new dataset version by id
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_download
def datasets_download(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_download(owner_slug, ...
python
def datasets_download(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_download(owner_slug, ...
[ "def", "datasets_download", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return...
Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_download(owner_slug, dataset_slug, async_req=True) >>> result = thread.get() :param async_req ...
[ "Download", "dataset", "file", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1288-L1309
train
Download dataset file
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_download_file
def datasets_download_file(self, owner_slug, dataset_slug, file_name, **kwargs): # noqa: E501 """Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_downl...
python
def datasets_download_file(self, owner_slug, dataset_slug, file_name, **kwargs): # noqa: E501 """Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_downl...
[ "def", "datasets_download_file", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "file_name", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req...
Download dataset file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_download_file(owner_slug, dataset_slug, file_name, async_req=True) >>> result = thread.get() :...
[ "Download", "dataset", "file", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1393-L1415
train
Download a file from an existing dataset.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_list
def datasets_list(self, **kwargs): # noqa: E501 """List datasets # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list(async_req=True) >>> result = thread.get() ...
python
def datasets_list(self, **kwargs): # noqa: E501 """List datasets # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list(async_req=True) >>> result = thread.get() ...
[ "def", "datasets_list", "(", "self", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", "datasets_list_with_http_info"...
List datasets # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list(async_req=True) >>> result = thread.get() :param async_req bool :param str group: Display...
[ "List", "datasets", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1506-L1533
train
List datasets by a specific key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_list_files
def datasets_list_files(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """List dataset files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list_files(owner_slug,...
python
def datasets_list_files(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """List dataset files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list_files(owner_slug,...
[ "def", "datasets_list_files", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "retu...
List dataset files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_list_files(owner_slug, dataset_slug, async_req=True) >>> result = thread.get() :param async_req b...
[ "List", "dataset", "files", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1627-L1647
train
List dataset files.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_status
def datasets_status(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Get dataset creation status # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_status(owner_slug...
python
def datasets_status(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Get dataset creation status # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_status(owner_slug...
[ "def", "datasets_status", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return",...
Get dataset creation status # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_status(owner_slug, dataset_slug, async_req=True) >>> result = thread.get() :param async_...
[ "Get", "dataset", "creation", "status", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1728-L1748
train
Get dataset creation status
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_upload_file
def datasets_upload_file(self, file_name, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Get URL and token to start uploading a data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True ...
python
def datasets_upload_file(self, file_name, content_length, last_modified_date_utc, **kwargs): # noqa: E501 """Get URL and token to start uploading a data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True ...
[ "def", "datasets_upload_file", "(", "self", ",", "file_name", ",", "content_length", ",", "last_modified_date_utc", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", ...
Get URL and token to start uploading a data file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_upload_file(file_name, content_length, last_modified_date_utc, async_req=True) ...
[ "Get", "URL", "and", "token", "to", "start", "uploading", "a", "data", "file", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1829-L1850
train
Uploads a file to the dataset store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.datasets_view
def datasets_view(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Show details about a dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_view(owner_slug, d...
python
def datasets_view(self, owner_slug, dataset_slug, **kwargs): # noqa: E501 """Show details about a dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_view(owner_slug, d...
[ "def", "datasets_view", "(", "self", ",", "owner_slug", ",", "dataset_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", ...
Show details about a dataset # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.datasets_view(owner_slug, dataset_slug, async_req=True) >>> result = thread.get() :param async_r...
[ "Show", "details", "about", "a", "dataset", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L1942-L1962
train
Show details about a dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.kernel_output
def kernel_output(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Download the latest output from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_output(use...
python
def kernel_output(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Download the latest output from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_output(use...
[ "def", "kernel_output", "(", "self", ",", "user_name", ",", "kernel_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "...
Download the latest output from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_output(user_name, kernel_slug, async_req=True) >>> result = thread.get() :par...
[ "Download", "the", "latest", "output", "from", "a", "kernel", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L2043-L2063
train
Download the latest output from a kernel
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.kernel_pull
def kernel_pull(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Pull the latest code from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_pull(user_name, ke...
python
def kernel_pull(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Pull the latest code from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_pull(user_name, ke...
[ "def", "kernel_pull", "(", "self", ",", "user_name", ",", "kernel_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "se...
Pull the latest code from a kernel # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_pull(user_name, kernel_slug, async_req=True) >>> result = thread.get() :param async...
[ "Pull", "the", "latest", "code", "from", "a", "kernel", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L2144-L2164
train
Pull the latest code from a kernel
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.kernel_push
def kernel_push(self, kernel_push_request, **kwargs): # noqa: E501 """Push a new kernel version. Can be used to create a new kernel and update an existing one. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=Tr...
python
def kernel_push(self, kernel_push_request, **kwargs): # noqa: E501 """Push a new kernel version. Can be used to create a new kernel and update an existing one. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=Tr...
[ "def", "kernel_push", "(", "self", ",", "kernel_push_request", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", ...
Push a new kernel version. Can be used to create a new kernel and update an existing one. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_push(kernel_push_request, async_req=True) ...
[ "Push", "a", "new", "kernel", "version", ".", "Can", "be", "used", "to", "create", "a", "new", "kernel", "and", "update", "an", "existing", "one", ".", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L2245-L2264
train
Push a new kernel version.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.kernel_status
def kernel_status(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Get the status of the latest kernel version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_status(...
python
def kernel_status(self, user_name, kernel_slug, **kwargs): # noqa: E501 """Get the status of the latest kernel version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_status(...
[ "def", "kernel_status", "(", "self", ",", "user_name", ",", "kernel_slug", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "...
Get the status of the latest kernel version # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernel_status(user_name, kernel_slug, async_req=True) >>> result = thread.get() :...
[ "Get", "the", "status", "of", "the", "latest", "kernel", "version", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L2342-L2362
train
Get the status of the latest kernel version
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api.py
KaggleApi.kernels_list
def kernels_list(self, **kwargs): # noqa: E501 """List kernels # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernels_list(async_req=True) >>> result = thread.get() ...
python
def kernels_list(self, **kwargs): # noqa: E501 """List kernels # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernels_list(async_req=True) >>> result = thread.get() ...
[ "def", "kernels_list", "(", "self", ",", "*", "*", "kwargs", ")", ":", "# noqa: E501", "kwargs", "[", "'_return_http_data_only'", "]", "=", "True", "if", "kwargs", ".", "get", "(", "'async_req'", ")", ":", "return", "self", ".", "kernels_list_with_http_info", ...
List kernels # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.kernels_list(async_req=True) >>> result = thread.get() :param async_req bool :param int page: Page numbe...
[ "List", "kernels", "#", "noqa", ":", "E501" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api.py#L2443-L2473
train
List kernels in a specific language.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.authenticate
def authenticate(self): """authenticate the user with the Kaggle API. This method will generate a configuration, first checking the environment for credential variables, and falling back to looking for the .kaggle/kaggle.json configuration file. """ config_data ...
python
def authenticate(self): """authenticate the user with the Kaggle API. This method will generate a configuration, first checking the environment for credential variables, and falling back to looking for the .kaggle/kaggle.json configuration file. """ config_data ...
[ "def", "authenticate", "(", "self", ")", ":", "config_data", "=", "{", "}", "# Step 1: try getting username/password from environment", "config_data", "=", "self", ".", "read_config_environment", "(", "config_data", ")", "# Step 2: if credentials were not in env read in configu...
authenticate the user with the Kaggle API. This method will generate a configuration, first checking the environment for credential variables, and falling back to looking for the .kaggle/kaggle.json configuration file.
[ "authenticate", "the", "user", "with", "the", "Kaggle", "API", ".", "This", "method", "will", "generate", "a", "configuration", "first", "checking", "the", "environment", "for", "credential", "variables", "and", "falling", "back", "to", "looking", "for", "the", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L96-L119
train
authenticate the user with the Kaggle API
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.read_config_environment
def read_config_environment(self, config_data=None, quiet=False): """read_config_environment is the second effort to get a username and key to authenticate to the Kaggle API. The environment keys are equivalent to the kaggle.json file, but with "KAGGLE_" prefix to define a uniqu...
python
def read_config_environment(self, config_data=None, quiet=False): """read_config_environment is the second effort to get a username and key to authenticate to the Kaggle API. The environment keys are equivalent to the kaggle.json file, but with "KAGGLE_" prefix to define a uniqu...
[ "def", "read_config_environment", "(", "self", ",", "config_data", "=", "None", ",", "quiet", "=", "False", ")", ":", "# Add all variables that start with KAGGLE_ to config data", "if", "config_data", "is", "None", ":", "config_data", "=", "{", "}", "for", "key", ...
read_config_environment is the second effort to get a username and key to authenticate to the Kaggle API. The environment keys are equivalent to the kaggle.json file, but with "KAGGLE_" prefix to define a unique namespace. Parameters ========== config_d...
[ "read_config_environment", "is", "the", "second", "effort", "to", "get", "a", "username", "and", "key", "to", "authenticate", "to", "the", "Kaggle", "API", ".", "The", "environment", "keys", "are", "equivalent", "to", "the", "kaggle", ".", "json", "file", "b...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L121-L142
train
Read the Kaggle environment variables and return a config dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi._load_config
def _load_config(self, config_data): """the final step of the authenticate steps, where we load the values from config_data into the Configuration object. Parameters ========== config_data: a dictionary with configuration values (keys) to read ...
python
def _load_config(self, config_data): """the final step of the authenticate steps, where we load the values from config_data into the Configuration object. Parameters ========== config_data: a dictionary with configuration values (keys) to read ...
[ "def", "_load_config", "(", "self", ",", "config_data", ")", ":", "# Username and password are required.", "for", "item", "in", "[", "self", ".", "CONFIG_NAME_USER", ",", "self", ".", "CONFIG_NAME_KEY", "]", ":", "if", "item", "not", "in", "config_data", ":", ...
the final step of the authenticate steps, where we load the values from config_data into the Configuration object. Parameters ========== config_data: a dictionary with configuration values (keys) to read into self.config_values
[ "the", "final", "step", "of", "the", "authenticate", "steps", "where", "we", "load", "the", "values", "from", "config_data", "into", "the", "Configuration", "object", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L146-L199
train
Load the configuration values from the given dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.read_config_file
def read_config_file(self, config_data=None, quiet=False): """read_config_file is the first effort to get a username and key to authenticate to the Kaggle API. Since we can get the username and password from the environment, it's not required. Parameters ========== ...
python
def read_config_file(self, config_data=None, quiet=False): """read_config_file is the first effort to get a username and key to authenticate to the Kaggle API. Since we can get the username and password from the environment, it's not required. Parameters ========== ...
[ "def", "read_config_file", "(", "self", ",", "config_data", "=", "None", ",", "quiet", "=", "False", ")", ":", "if", "config_data", "is", "None", ":", "config_data", "=", "{", "}", "if", "os", ".", "path", ".", "exists", "(", "self", ".", "config", "...
read_config_file is the first effort to get a username and key to authenticate to the Kaggle API. Since we can get the username and password from the environment, it's not required. Parameters ========== config_data: the Configuration object to save a username and...
[ "read_config_file", "is", "the", "first", "effort", "to", "get", "a", "username", "and", "key", "to", "authenticate", "to", "the", "Kaggle", "API", ".", "Since", "we", "can", "get", "the", "username", "and", "password", "from", "the", "environment", "it", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L201-L237
train
Read the Kaggle API configuration file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi._read_config_file
def _read_config_file(self): """read in the configuration file, a json file defined at self.config""" try: with open(self.config, 'r') as f: config_data = json.load(f) except FileNotFoundError: config_data = {} return config_data
python
def _read_config_file(self): """read in the configuration file, a json file defined at self.config""" try: with open(self.config, 'r') as f: config_data = json.load(f) except FileNotFoundError: config_data = {} return config_data
[ "def", "_read_config_file", "(", "self", ")", ":", "try", ":", "with", "open", "(", "self", ".", "config", ",", "'r'", ")", "as", "f", ":", "config_data", "=", "json", ".", "load", "(", "f", ")", "except", "FileNotFoundError", ":", "config_data", "=", ...
read in the configuration file, a json file defined at self.config
[ "read", "in", "the", "configuration", "file", "a", "json", "file", "defined", "at", "self", ".", "config" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L239-L248
train
read in the configuration file a json file defined at self. config
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi._write_config_file
def _write_config_file(self, config_data, indent=2): """write config data to file. Parameters ========== config_data: the Configuration object to save a username and password, if defined indent: number of tab indentations to use when writing j...
python
def _write_config_file(self, config_data, indent=2): """write config data to file. Parameters ========== config_data: the Configuration object to save a username and password, if defined indent: number of tab indentations to use when writing j...
[ "def", "_write_config_file", "(", "self", ",", "config_data", ",", "indent", "=", "2", ")", ":", "with", "open", "(", "self", ".", "config", ",", "'w'", ")", "as", "f", ":", "json", ".", "dump", "(", "config_data", ",", "f", ",", "indent", "=", "in...
write config data to file. Parameters ========== config_data: the Configuration object to save a username and password, if defined indent: number of tab indentations to use when writing json
[ "write", "config", "data", "to", "file", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L250-L260
train
write config data to file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.set_config_value
def set_config_value(self, name, value, quiet=False): """a client helper function to set a configuration value, meaning reading in the configuration file (if it exists), saving a new config value, and then writing back Parameters ========== name: the name ...
python
def set_config_value(self, name, value, quiet=False): """a client helper function to set a configuration value, meaning reading in the configuration file (if it exists), saving a new config value, and then writing back Parameters ========== name: the name ...
[ "def", "set_config_value", "(", "self", ",", "name", ",", "value", ",", "quiet", "=", "False", ")", ":", "config_data", "=", "self", ".", "_read_config_file", "(", ")", "if", "value", "is", "not", "None", ":", "# Update the config file with the value", "config...
a client helper function to set a configuration value, meaning reading in the configuration file (if it exists), saving a new config value, and then writing back Parameters ========== name: the name of the value to set (key in dictionary) value: the val...
[ "a", "client", "helper", "function", "to", "set", "a", "configuration", "value", "meaning", "reading", "in", "the", "configuration", "file", "(", "if", "it", "exists", ")", "saving", "a", "new", "config", "value", "and", "then", "writing", "back" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L262-L288
train
a helper function to set a configuration value at a specific key in the configuration file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.unset_config_value
def unset_config_value(self, name, quiet=False): """unset a configuration value Parameters ========== name: the name of the value to unset (remove key in dictionary) quiet: disable verbose output if True (default is False) """ config_data = self._rea...
python
def unset_config_value(self, name, quiet=False): """unset a configuration value Parameters ========== name: the name of the value to unset (remove key in dictionary) quiet: disable verbose output if True (default is False) """ config_data = self._rea...
[ "def", "unset_config_value", "(", "self", ",", "name", ",", "quiet", "=", "False", ")", ":", "config_data", "=", "self", ".", "_read_config_file", "(", ")", "if", "name", "in", "config_data", ":", "del", "config_data", "[", "name", "]", "self", ".", "_wr...
unset a configuration value Parameters ========== name: the name of the value to unset (remove key in dictionary) quiet: disable verbose output if True (default is False)
[ "unset", "a", "configuration", "value", "Parameters", "==========", "name", ":", "the", "name", "of", "the", "value", "to", "unset", "(", "remove", "key", "in", "dictionary", ")", "quiet", ":", "disable", "verbose", "output", "if", "True", "(", "default", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L290-L307
train
unset a configuration value
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.get_default_download_dir
def get_default_download_dir(self, *subdirs): """ Get the download path for a file. If not defined, return default from config. Parameters ========== subdirs: a single (or list of) subfolders under the basepath """ # Look up value for key "path" i...
python
def get_default_download_dir(self, *subdirs): """ Get the download path for a file. If not defined, return default from config. Parameters ========== subdirs: a single (or list of) subfolders under the basepath """ # Look up value for key "path" i...
[ "def", "get_default_download_dir", "(", "self", ",", "*", "subdirs", ")", ":", "# Look up value for key \"path\" in the config", "path", "=", "self", ".", "get_config_value", "(", "self", ".", "CONFIG_NAME_PATH", ")", "# If not set in config, default to present working direct...
Get the download path for a file. If not defined, return default from config. Parameters ========== subdirs: a single (or list of) subfolders under the basepath
[ "Get", "the", "download", "path", "for", "a", "file", ".", "If", "not", "defined", "return", "default", "from", "config", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L321-L336
train
Get the default download directory for a file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.print_config_value
def print_config_value(self, name, prefix='- ', separator=': '): """print a single configuration value, based on a prefix and separator Parameters ========== name: the key of the config valur in self.config_values to print prefix: the prefix to print separ...
python
def print_config_value(self, name, prefix='- ', separator=': '): """print a single configuration value, based on a prefix and separator Parameters ========== name: the key of the config valur in self.config_values to print prefix: the prefix to print separ...
[ "def", "print_config_value", "(", "self", ",", "name", ",", "prefix", "=", "'- '", ",", "separator", "=", "': '", ")", ":", "value_out", "=", "'None'", "if", "name", "in", "self", ".", "config_values", "and", "self", ".", "config_values", "[", "name", "]...
print a single configuration value, based on a prefix and separator Parameters ========== name: the key of the config valur in self.config_values to print prefix: the prefix to print separator: the separator to use (default is : )
[ "print", "a", "single", "configuration", "value", "based", "on", "a", "prefix", "and", "separator" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L338-L351
train
print a single configuration value based on a prefix and separator
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.print_config_values
def print_config_values(self, prefix='- '): """a wrapper to print_config_value to print all configuration values Parameters ========== prefix: the character prefix to put before the printed config value defaults to "- " """ print('Configuratio...
python
def print_config_values(self, prefix='- '): """a wrapper to print_config_value to print all configuration values Parameters ========== prefix: the character prefix to put before the printed config value defaults to "- " """ print('Configuratio...
[ "def", "print_config_values", "(", "self", ",", "prefix", "=", "'- '", ")", ":", "print", "(", "'Configuration values from '", "+", "self", ".", "config_dir", ")", "self", ".", "print_config_value", "(", "self", ".", "CONFIG_NAME_USER", ",", "prefix", "=", "pr...
a wrapper to print_config_value to print all configuration values Parameters ========== prefix: the character prefix to put before the printed config value defaults to "- "
[ "a", "wrapper", "to", "print_config_value", "to", "print", "all", "configuration", "values", "Parameters", "==========", "prefix", ":", "the", "character", "prefix", "to", "put", "before", "the", "printed", "config", "value", "defaults", "to", "-" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L353-L364
train
a wrapper to print all configuration values from the current directory
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competitions_list
def competitions_list(self, group=None, category=None, sort_by=None, page=1, search=None): """ make call to list competitions, format the response, and return a list of C...
python
def competitions_list(self, group=None, category=None, sort_by=None, page=1, search=None): """ make call to list competitions, format the response, and return a list of C...
[ "def", "competitions_list", "(", "self", ",", "group", "=", "None", ",", "category", "=", "None", ",", "sort_by", "=", "None", ",", "page", "=", "1", ",", "search", "=", "None", ")", ":", "valid_groups", "=", "[", "'general'", ",", "'entered'", ",", ...
make call to list competitions, format the response, and return a list of Competition instances Parameters ========== page: the page to return (default is 1) search: a search term to use (default is empty string) sort_by: how to sort the result, ...
[ "make", "call", "to", "list", "competitions", "format", "the", "response", "and", "return", "a", "list", "of", "Competition", "instances" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L369-L415
train
returns a list of Competition instances from the API
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competitions_list_cli
def competitions_list_cli(self, group=None, category=None, sort_by=None, page=1, search=None, csv_display=False): """ a wrapper for ...
python
def competitions_list_cli(self, group=None, category=None, sort_by=None, page=1, search=None, csv_display=False): """ a wrapper for ...
[ "def", "competitions_list_cli", "(", "self", ",", "group", "=", "None", ",", "category", "=", "None", ",", "sort_by", "=", "None", ",", "page", "=", "1", ",", "search", "=", "None", ",", "csv_display", "=", "False", ")", ":", "competitions", "=", "self...
a wrapper for competitions_list for the client. Parameters ========== group: group to filter result to category: category to filter result to sort_by: how to sort the result, see valid_sort_by for options page: the page to return (default is 1) ...
[ "a", "wrapper", "for", "competitions_list", "for", "the", "client", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L417-L451
train
a wrapper for competitions_list for the client.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_submit
def competition_submit(self, file_name, message, competition, quiet=False): """ submit a competition! Parameters ========== file_name: the competition metadata file message: the submission description competition: the competition name quie...
python
def competition_submit(self, file_name, message, competition, quiet=False): """ submit a competition! Parameters ========== file_name: the competition metadata file message: the submission description competition: the competition name quie...
[ "def", "competition_submit", "(", "self", ",", "file_name", ",", "message", ",", "competition", ",", "quiet", "=", "False", ")", ":", "if", "competition", "is", "None", ":", "competition", "=", "self", ".", "get_config_value", "(", "self", ".", "CONFIG_NAME_...
submit a competition! Parameters ========== file_name: the competition metadata file message: the submission description competition: the competition name quiet: suppress verbose output (default is False)
[ "submit", "a", "competition!" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L453-L507
train
Submit a competition!
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_submit_cli
def competition_submit_cli(self, file_name, message, competition, competition_opt=None, quiet=False): """ submit a competition using the client. Arguments ar...
python
def competition_submit_cli(self, file_name, message, competition, competition_opt=None, quiet=False): """ submit a competition using the client. Arguments ar...
[ "def", "competition_submit_cli", "(", "self", ",", "file_name", ",", "message", ",", "competition", ",", "competition_opt", "=", "None", ",", "quiet", "=", "False", ")", ":", "competition", "=", "competition", "or", "competition_opt", "try", ":", "submit_result"...
submit a competition using the client. Arguments are same as for competition_submit, except for extra arguments provided here. Parameters ========== competition_opt: an alternative competition option provided by cli
[ "submit", "a", "competition", "using", "the", "client", ".", "Arguments", "are", "same", "as", "for", "competition_submit", "except", "for", "extra", "arguments", "provided", "here", ".", "Parameters", "==========", "competition_opt", ":", "an", "alternative", "co...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L509-L533
train
submit a competition using the client
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_submissions
def competition_submissions(self, competition): """ get the list of Submission for a particular competition Parameters ========== competition: the name of the competition """ submissions_result = self.process_response( self.competitions_submission...
python
def competition_submissions(self, competition): """ get the list of Submission for a particular competition Parameters ========== competition: the name of the competition """ submissions_result = self.process_response( self.competitions_submission...
[ "def", "competition_submissions", "(", "self", ",", "competition", ")", ":", "submissions_result", "=", "self", ".", "process_response", "(", "self", ".", "competitions_submissions_list_with_http_info", "(", "id", "=", "competition", ")", ")", "return", "[", "Submis...
get the list of Submission for a particular competition Parameters ========== competition: the name of the competition
[ "get", "the", "list", "of", "Submission", "for", "a", "particular", "competition" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L535-L544
train
get the list of Submission for a particular competition
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_submissions_cli
def competition_submissions_cli(self, competition=None, competition_opt=None, csv_display=False, quiet=False): """ wrapper to competition_submission, will return either...
python
def competition_submissions_cli(self, competition=None, competition_opt=None, csv_display=False, quiet=False): """ wrapper to competition_submission, will return either...
[ "def", "competition_submissions_cli", "(", "self", ",", "competition", "=", "None", ",", "competition_opt", "=", "None", ",", "csv_display", "=", "False", ",", "quiet", "=", "False", ")", ":", "competition", "=", "competition", "or", "competition_opt", "if", "...
wrapper to competition_submission, will return either json or csv to the user. Additional parameters are listed below, see competition_submissions for rest. Parameters ========== competition: the name of the competition. If None, look to config co...
[ "wrapper", "to", "competition_submission", "will", "return", "either", "json", "or", "csv", "to", "the", "user", ".", "Additional", "parameters", "are", "listed", "below", "see", "competition_submissions", "for", "rest", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L546-L582
train
wrapper to competition_submissions
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_list_files
def competition_list_files(self, competition): """ list files for competition Parameters ========== competition: the name of the competition """ competition_list_files_result = self.process_response( self.competitions_data_list_files_with_http_inf...
python
def competition_list_files(self, competition): """ list files for competition Parameters ========== competition: the name of the competition """ competition_list_files_result = self.process_response( self.competitions_data_list_files_with_http_inf...
[ "def", "competition_list_files", "(", "self", ",", "competition", ")", ":", "competition_list_files_result", "=", "self", ".", "process_response", "(", "self", ".", "competitions_data_list_files_with_http_info", "(", "id", "=", "competition", ")", ")", "return", "[", ...
list files for competition Parameters ========== competition: the name of the competition
[ "list", "files", "for", "competition", "Parameters", "==========", "competition", ":", "the", "name", "of", "the", "competition" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L584-L592
train
list files for a specific competition
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_list_files_cli
def competition_list_files_cli(self, competition, competition_opt=None, csv_display=False, quiet=False): """ List files for a competition, if it exists Paramet...
python
def competition_list_files_cli(self, competition, competition_opt=None, csv_display=False, quiet=False): """ List files for a competition, if it exists Paramet...
[ "def", "competition_list_files_cli", "(", "self", ",", "competition", ",", "competition_opt", "=", "None", ",", "csv_display", "=", "False", ",", "quiet", "=", "False", ")", ":", "competition", "=", "competition", "or", "competition_opt", "if", "competition", "i...
List files for a competition, if it exists Parameters ========== competition: the name of the competition. If None, look to config competition_opt: an alternative competition option provided by cli csv_display: if True, print comma separated values ...
[ "List", "files", "for", "a", "competition", "if", "it", "exists" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L594-L625
train
This function is called by the competition_list_files_cli function. It will list the files for a competition if it exists and print the table or csv if it exists.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_download_file
def competition_download_file(self, competition, file_name, path=None, force=False, quiet=False): """ download a competition file to a designa...
python
def competition_download_file(self, competition, file_name, path=None, force=False, quiet=False): """ download a competition file to a designa...
[ "def", "competition_download_file", "(", "self", ",", "competition", ",", "file_name", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "False", ")", ":", "if", "path", "is", "None", ":", "effective_path", "=", "self", ".", "get_d...
download a competition file to a designated location, or use a default location Paramters ========= competition: the name of the competition file_name: the configuration file name path: a path to download the file to force: force the d...
[ "download", "a", "competition", "file", "to", "a", "designated", "location", "or", "use", "a", "default", "location" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L627-L657
train
download a file from a specific competition
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_download_files
def competition_download_files(self, competition, path=None, force=False, quiet=True): """ a wrapper to competition_download_file to download all competition fi...
python
def competition_download_files(self, competition, path=None, force=False, quiet=True): """ a wrapper to competition_download_file to download all competition fi...
[ "def", "competition_download_files", "(", "self", ",", "competition", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "True", ")", ":", "files", "=", "self", ".", "competition_list_files", "(", "competition", ")", "if", "not", "fil...
a wrapper to competition_download_file to download all competition files. Parameters ========= competition: the name of the competition path: a path to download the file to force: force the download if the file already exists (default False) ...
[ "a", "wrapper", "to", "competition_download_file", "to", "download", "all", "competition", "files", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L659-L679
train
a wrapper to competition_download_file to download all competition files
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_download_cli
def competition_download_cli(self, competition, competition_opt=None, file_name=None, path=None, force=False, quiet=False)...
python
def competition_download_cli(self, competition, competition_opt=None, file_name=None, path=None, force=False, quiet=False)...
[ "def", "competition_download_cli", "(", "self", ",", "competition", ",", "competition_opt", "=", "None", ",", "file_name", "=", "None", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "False", ")", ":", "competition", "=", "competi...
a wrapper to competition_download_files, but first will parse input from API client. Additional parameters are listed here, see competition_download for remaining. Parameters ========= competition: the name of the competition competition_opt: an a...
[ "a", "wrapper", "to", "competition_download_files", "but", "first", "will", "parse", "input", "from", "API", "client", ".", "Additional", "parameters", "are", "listed", "here", "see", "competition_download", "for", "remaining", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L681-L715
train
Wrapper for competition_download_files
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_leaderboard_download
def competition_leaderboard_download(self, competition, path, quiet=True): """ Download competition leaderboards Parameters ========= competition: the name of the competition path: a path to download the file to quiet: suppress verbose output (default...
python
def competition_leaderboard_download(self, competition, path, quiet=True): """ Download competition leaderboards Parameters ========= competition: the name of the competition path: a path to download the file to quiet: suppress verbose output (default...
[ "def", "competition_leaderboard_download", "(", "self", ",", "competition", ",", "path", ",", "quiet", "=", "True", ")", ":", "response", "=", "self", ".", "process_response", "(", "self", ".", "competition_download_leaderboard_with_http_info", "(", "competition", "...
Download competition leaderboards Parameters ========= competition: the name of the competition path: a path to download the file to quiet: suppress verbose output (default is True)
[ "Download", "competition", "leaderboards" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L717-L738
train
Download the leaderboards of a specific competition.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_leaderboard_view
def competition_leaderboard_view(self, competition): """ view a leaderboard based on a competition name Parameters ========== competition: the competition name to view leadboard for """ result = self.process_response( self.competition_view_leaderb...
python
def competition_leaderboard_view(self, competition): """ view a leaderboard based on a competition name Parameters ========== competition: the competition name to view leadboard for """ result = self.process_response( self.competition_view_leaderb...
[ "def", "competition_leaderboard_view", "(", "self", ",", "competition", ")", ":", "result", "=", "self", ".", "process_response", "(", "self", ".", "competition_view_leaderboard_with_http_info", "(", "competition", ")", ")", "return", "[", "LeaderboardEntry", "(", "...
view a leaderboard based on a competition name Parameters ========== competition: the competition name to view leadboard for
[ "view", "a", "leaderboard", "based", "on", "a", "competition", "name" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L740-L749
train
view a leaderboard based on a competition name
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.competition_leaderboard_cli
def competition_leaderboard_cli(self, competition, competition_opt=None, path=None, view=False, download=False, ...
python
def competition_leaderboard_cli(self, competition, competition_opt=None, path=None, view=False, download=False, ...
[ "def", "competition_leaderboard_cli", "(", "self", ",", "competition", ",", "competition_opt", "=", "None", ",", "path", "=", "None", ",", "view", "=", "False", ",", "download", "=", "False", ",", "csv_display", "=", "False", ",", "quiet", "=", "False", ")...
a wrapper for competition_leaderbord_view that will print the results as a table or comma separated values Parameters ========== competition: the competition name to view leadboard for competition_opt: an alternative competition option provided by cli ...
[ "a", "wrapper", "for", "competition_leaderbord_view", "that", "will", "print", "the", "results", "as", "a", "table", "or", "comma", "separated", "values" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L751-L796
train
a wrapper for competition_leaderboard_view that will print the leaderboards for the current competition
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_list
def dataset_list(self, sort_by=None, size=None, file_type=None, license_name=None, tag_ids=None, search=None, user=None, mine=False, ...
python
def dataset_list(self, sort_by=None, size=None, file_type=None, license_name=None, tag_ids=None, search=None, user=None, mine=False, ...
[ "def", "dataset_list", "(", "self", ",", "sort_by", "=", "None", ",", "size", "=", "None", ",", "file_type", "=", "None", ",", "license_name", "=", "None", ",", "tag_ids", "=", "None", ",", "search", "=", "None", ",", "user", "=", "None", ",", "mine"...
return a list of datasets! Parameters ========== sort_by: how to sort the result, see valid_sort_bys for options size: the size of the dataset, see valid_sizes for string options file_type: the format, see valid_file_types for string options licen...
[ "return", "a", "list", "of", "datasets!" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L798-L864
train
returns a list of datasets in the national order
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_list_cli
def dataset_list_cli(self, sort_by=None, size=None, file_type=None, license_name=None, tag_ids=None, search=None, user=None, ...
python
def dataset_list_cli(self, sort_by=None, size=None, file_type=None, license_name=None, tag_ids=None, search=None, user=None, ...
[ "def", "dataset_list_cli", "(", "self", ",", "sort_by", "=", "None", ",", "size", "=", "None", ",", "file_type", "=", "None", ",", "license_name", "=", "None", ",", "tag_ids", "=", "None", ",", "search", "=", "None", ",", "user", "=", "None", ",", "m...
a wrapper to datasets_list for the client. Additional parameters are described here, see dataset_list for others. Parameters ========== sort_by: how to sort the result, see valid_sort_bys for options size: the size of the dataset, see valid_sizes for string o...
[ "a", "wrapper", "to", "datasets_list", "for", "the", "client", ".", "Additional", "parameters", "are", "described", "here", "see", "dataset_list", "for", "others", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L866-L902
train
a wrapper to dataset_list for the client.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_view
def dataset_view(self, dataset): """ view metadata for a dataset. Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if '/' in dataset: self.validate_dataset_stri...
python
def dataset_view(self, dataset): """ view metadata for a dataset. Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if '/' in dataset: self.validate_dataset_stri...
[ "def", "dataset_view", "(", "self", ",", "dataset", ")", ":", "if", "'/'", "in", "dataset", ":", "self", ".", "validate_dataset_string", "(", "dataset", ")", "dataset_urls", "=", "dataset", ".", "split", "(", "'/'", ")", "owner_slug", "=", "dataset_urls", ...
view metadata for a dataset. Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name]
[ "view", "metadata", "for", "a", "dataset", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L904-L923
train
view metadata for a dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_list_files
def dataset_list_files(self, dataset): """ list files for a dataset Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if dataset is None: raise ValueError('A dat...
python
def dataset_list_files(self, dataset): """ list files for a dataset Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if dataset is None: raise ValueError('A dat...
[ "def", "dataset_list_files", "(", "self", ",", "dataset", ")", ":", "if", "dataset", "is", "None", ":", "raise", "ValueError", "(", "'A dataset must be specified'", ")", "if", "'/'", "in", "dataset", ":", "self", ".", "validate_dataset_string", "(", "dataset", ...
list files for a dataset Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name]
[ "list", "files", "for", "a", "dataset", "Parameters", "==========", "dataset", ":", "the", "string", "identified", "of", "the", "dataset", "should", "be", "in", "format", "[", "owner", "]", "/", "[", "dataset", "-", "name", "]" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L969-L989
train
list files for a dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_list_files_cli
def dataset_list_files_cli(self, dataset, dataset_opt=None, csv_display=False): """ a wrapper to dataset_list_files for the client (list files for a dataset) Parameters ========== ...
python
def dataset_list_files_cli(self, dataset, dataset_opt=None, csv_display=False): """ a wrapper to dataset_list_files for the client (list files for a dataset) Parameters ========== ...
[ "def", "dataset_list_files_cli", "(", "self", ",", "dataset", ",", "dataset_opt", "=", "None", ",", "csv_display", "=", "False", ")", ":", "dataset", "=", "dataset", "or", "dataset_opt", "result", "=", "self", ".", "dataset_list_files", "(", "dataset", ")", ...
a wrapper to dataset_list_files for the client (list files for a dataset) Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] dataset_opt: an alternative option to providing a dat...
[ "a", "wrapper", "to", "dataset_list_files", "for", "the", "client", "(", "list", "files", "for", "a", "dataset", ")", "Parameters", "==========", "dataset", ":", "the", "string", "identified", "of", "the", "dataset", "should", "be", "in", "format", "[", "own...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L991-L1016
train
a wrapper to dataset_list_files for the client
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_status
def dataset_status(self, dataset): """ call to get the status of a dataset from the API Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if dataset is None: rai...
python
def dataset_status(self, dataset): """ call to get the status of a dataset from the API Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] """ if dataset is None: rai...
[ "def", "dataset_status", "(", "self", ",", "dataset", ")", ":", "if", "dataset", "is", "None", ":", "raise", "ValueError", "(", "'A dataset must be specified'", ")", "if", "'/'", "in", "dataset", ":", "self", ".", "validate_dataset_string", "(", "dataset", ")"...
call to get the status of a dataset from the API Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name]
[ "call", "to", "get", "the", "status", "of", "a", "dataset", "from", "the", "API", "Parameters", "==========", "dataset", ":", "the", "string", "identified", "of", "the", "dataset", "should", "be", "in", "format", "[", "owner", "]", "/", "[", "dataset", "...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1018-L1038
train
get the status of a dataset from the API
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_status_cli
def dataset_status_cli(self, dataset, dataset_opt=None): """ wrapper for client for dataset_status, with additional dataset_opt to get the status of a dataset from the API Parameters ========== dataset_opt: an alternative to dataset """ dataset = ...
python
def dataset_status_cli(self, dataset, dataset_opt=None): """ wrapper for client for dataset_status, with additional dataset_opt to get the status of a dataset from the API Parameters ========== dataset_opt: an alternative to dataset """ dataset = ...
[ "def", "dataset_status_cli", "(", "self", ",", "dataset", ",", "dataset_opt", "=", "None", ")", ":", "dataset", "=", "dataset", "or", "dataset_opt", "return", "self", ".", "dataset_status", "(", "dataset", ")" ]
wrapper for client for dataset_status, with additional dataset_opt to get the status of a dataset from the API Parameters ========== dataset_opt: an alternative to dataset
[ "wrapper", "for", "client", "for", "dataset_status", "with", "additional", "dataset_opt", "to", "get", "the", "status", "of", "a", "dataset", "from", "the", "API", "Parameters", "==========", "dataset_opt", ":", "an", "alternative", "to", "dataset" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1040-L1048
train
wrapper for dataset_status with additional dataset_opt to get the status of a dataset from the API
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_download_file
def dataset_download_file(self, dataset, file_name, path=None, force=False, quiet=True): """ download a single file for a dataset Parameters ...
python
def dataset_download_file(self, dataset, file_name, path=None, force=False, quiet=True): """ download a single file for a dataset Parameters ...
[ "def", "dataset_download_file", "(", "self", ",", "dataset", ",", "file_name", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "True", ")", ":", "if", "'/'", "in", "dataset", ":", "self", ".", "validate_dataset_string", "(", "dat...
download a single file for a dataset Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] file_name: the dataset configuration file path: if defined, download to this location ...
[ "download", "a", "single", "file", "for", "a", "dataset" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1050-L1094
train
download a single file for a dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_download_files
def dataset_download_files(self, dataset, path=None, force=False, quiet=True, unzip=False): """ download all files for a dataset Parameters ...
python
def dataset_download_files(self, dataset, path=None, force=False, quiet=True, unzip=False): """ download all files for a dataset Parameters ...
[ "def", "dataset_download_files", "(", "self", ",", "dataset", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "True", ",", "unzip", "=", "False", ")", ":", "if", "dataset", "is", "None", ":", "raise", "ValueError", "(", "'A dat...
download all files for a dataset Parameters ========== dataset: the string identified of the dataset should be in format [owner]/[dataset-name] path: the path to download the dataset to force: force the download if the file already exists...
[ "download", "all", "files", "for", "a", "dataset" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1096-L1157
train
download all files for a dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_download_cli
def dataset_download_cli(self, dataset, dataset_opt=None, file_name=None, path=None, unzip=False, force=False, quiet=...
python
def dataset_download_cli(self, dataset, dataset_opt=None, file_name=None, path=None, unzip=False, force=False, quiet=...
[ "def", "dataset_download_cli", "(", "self", ",", "dataset", ",", "dataset_opt", "=", "None", ",", "file_name", "=", "None", ",", "path", "=", "None", ",", "unzip", "=", "False", ",", "force", "=", "False", ",", "quiet", "=", "False", ")", ":", "dataset...
client wrapper for dataset_download_files and download dataset file, either for a specific file (when file_name is provided), or all files for a dataset (plural) Parameters ========== dataset: the string identified of the dataset should b...
[ "client", "wrapper", "for", "dataset_download_files", "and", "download", "dataset", "file", "either", "for", "a", "specific", "file", "(", "when", "file_name", "is", "provided", ")", "or", "all", "files", "for", "a", "dataset", "(", "plural", ")" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1159-L1189
train
This function is a wrapper for dataset_download_files and dataset_download_file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_upload_file
def dataset_upload_file(self, path, quiet): """ upload a dataset file Parameters ========== path: the complete path to upload quiet: suppress verbose output (default is False) """ file_name = os.path.basename(path) content_length = os.path...
python
def dataset_upload_file(self, path, quiet): """ upload a dataset file Parameters ========== path: the complete path to upload quiet: suppress verbose output (default is False) """ file_name = os.path.basename(path) content_length = os.path...
[ "def", "dataset_upload_file", "(", "self", ",", "path", ",", "quiet", ")", ":", "file_name", "=", "os", ".", "path", ".", "basename", "(", "path", ")", "content_length", "=", "os", ".", "path", ".", "getsize", "(", "path", ")", "last_modified_date_utc", ...
upload a dataset file Parameters ========== path: the complete path to upload quiet: suppress verbose output (default is False)
[ "upload", "a", "dataset", "file" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1191-L1211
train
Uploads a dataset file to the ACS Azure CARTO server
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_create_version
def dataset_create_version(self, folder, version_notes, quiet=False, convert_to_csv=True, delete_old_versions=False, dir_mode='skip'):...
python
def dataset_create_version(self, folder, version_notes, quiet=False, convert_to_csv=True, delete_old_versions=False, dir_mode='skip'):...
[ "def", "dataset_create_version", "(", "self", ",", "folder", ",", "version_notes", ",", "quiet", "=", "False", ",", "convert_to_csv", "=", "True", ",", "delete_old_versions", "=", "False", ",", "dir_mode", "=", "'skip'", ")", ":", "if", "not", "os", ".", "...
create a version of a dataset Parameters ========== folder: the folder with the dataset configuration / data files version_notes: notes to add for the version quiet: suppress verbose output (default is False) convert_to_csv: on upload, if data sho...
[ "create", "a", "version", "of", "a", "dataset" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1213-L1285
train
Create a new version of a dataset.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_create_version_cli
def dataset_create_version_cli(self, folder, version_notes, quiet=False, convert_to_csv=True, delete_old_versions=False, ...
python
def dataset_create_version_cli(self, folder, version_notes, quiet=False, convert_to_csv=True, delete_old_versions=False, ...
[ "def", "dataset_create_version_cli", "(", "self", ",", "folder", ",", "version_notes", ",", "quiet", "=", "False", ",", "convert_to_csv", "=", "True", ",", "delete_old_versions", "=", "False", ",", "dir_mode", "=", "'skip'", ")", ":", "folder", "=", "folder", ...
client wrapper for creating a version of a dataset Parameters ========== folder: the folder with the dataset configuration / data files version_notes: notes to add for the version quiet: suppress verbose output (default is False) convert_to_csv: o...
[ "client", "wrapper", "for", "creating", "a", "version", "of", "a", "dataset", "Parameters", "==========", "folder", ":", "the", "folder", "with", "the", "dataset", "configuration", "/", "data", "files", "version_notes", ":", "notes", "to", "add", "for", "the",...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1287-L1322
train
This function is a wrapper for the dataset_create_version function. It is used by the dataset_create_version function in the base class.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_initialize
def dataset_initialize(self, folder): """ initialize a folder with a a dataset configuration (metadata) file Parameters ========== folder: the folder to initialize the metadata file in """ if not os.path.isdir(folder): raise ValueError('Invalid fo...
python
def dataset_initialize(self, folder): """ initialize a folder with a a dataset configuration (metadata) file Parameters ========== folder: the folder to initialize the metadata file in """ if not os.path.isdir(folder): raise ValueError('Invalid fo...
[ "def", "dataset_initialize", "(", "self", ",", "folder", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "folder", ")", ":", "raise", "ValueError", "(", "'Invalid folder: '", "+", "folder", ")", "ref", "=", "self", ".", "config_values", "[",...
initialize a folder with a a dataset configuration (metadata) file Parameters ========== folder: the folder to initialize the metadata file in
[ "initialize", "a", "folder", "with", "a", "a", "dataset", "configuration", "(", "metadata", ")", "file" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1324-L1349
train
initialize a folder with a dataset configuration file
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_create_new
def dataset_create_new(self, folder, public=False, quiet=False, convert_to_csv=True, dir_mode='skip'): """ create a new dataset, meaning the same as creating a version but ...
python
def dataset_create_new(self, folder, public=False, quiet=False, convert_to_csv=True, dir_mode='skip'): """ create a new dataset, meaning the same as creating a version but ...
[ "def", "dataset_create_new", "(", "self", ",", "folder", ",", "public", "=", "False", ",", "quiet", "=", "False", ",", "convert_to_csv", "=", "True", ",", "dir_mode", "=", "'skip'", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "folder",...
create a new dataset, meaning the same as creating a version but with extra metadata like license and user/owner. Parameters ========== folder: the folder to initialize the metadata file in public: should the dataset be public? quiet: suppress ver...
[ "create", "a", "new", "dataset", "meaning", "the", "same", "as", "creating", "a", "version", "but", "with", "extra", "metadata", "like", "license", "and", "user", "/", "owner", ".", "Parameters", "==========", "folder", ":", "the", "folder", "to", "initializ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1355-L1433
train
Create a new dataset in folder.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.dataset_create_new_cli
def dataset_create_new_cli(self, folder=None, public=False, quiet=False, convert_to_csv=True, dir_mode='skip'): """ client wrapper for creating a new dataset...
python
def dataset_create_new_cli(self, folder=None, public=False, quiet=False, convert_to_csv=True, dir_mode='skip'): """ client wrapper for creating a new dataset...
[ "def", "dataset_create_new_cli", "(", "self", ",", "folder", "=", "None", ",", "public", "=", "False", ",", "quiet", "=", "False", ",", "convert_to_csv", "=", "True", ",", "dir_mode", "=", "'skip'", ")", ":", "folder", "=", "folder", "or", "os", ".", "...
client wrapper for creating a new dataset Parameters ========== folder: the folder to initialize the metadata file in public: should the dataset be public? quiet: suppress verbose output (default is False) convert_to_csv: if True, convert data to ...
[ "client", "wrapper", "for", "creating", "a", "new", "dataset", "Parameters", "==========", "folder", ":", "the", "folder", "to", "initialize", "the", "metadata", "file", "in", "public", ":", "should", "the", "dataset", "be", "public?", "quiet", ":", "suppress"...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1435-L1464
train
This function is a wrapper for the dataset_create_new function that is used by the CLI interface. It is used by the CLI interface to create a new dataset.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.download_file
def download_file(self, response, outfile, quiet=True, chunk_size=1048576): """ download a file to an output file based on a chunk size Parameters ========== response: the response to download outfile: the output file to download to quiet: suppress ve...
python
def download_file(self, response, outfile, quiet=True, chunk_size=1048576): """ download a file to an output file based on a chunk size Parameters ========== response: the response to download outfile: the output file to download to quiet: suppress ve...
[ "def", "download_file", "(", "self", ",", "response", ",", "outfile", ",", "quiet", "=", "True", ",", "chunk_size", "=", "1048576", ")", ":", "outpath", "=", "os", ".", "path", ".", "dirname", "(", "outfile", ")", "if", "not", "os", ".", "path", ".",...
download a file to an output file based on a chunk size Parameters ========== response: the response to download outfile: the output file to download to quiet: suppress verbose output (default is True) chunk_size: the size of the chunk to stream
[ "download", "a", "file", "to", "an", "output", "file", "based", "on", "a", "chunk", "size" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1466-L1500
train
download a file to an output file based on a chunk size
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_list
def kernels_list(self, page=1, page_size=20, dataset=None, competition=None, parent_kernel=None, search=None, mine=False, user=None, ...
python
def kernels_list(self, page=1, page_size=20, dataset=None, competition=None, parent_kernel=None, search=None, mine=False, user=None, ...
[ "def", "kernels_list", "(", "self", ",", "page", "=", "1", ",", "page_size", "=", "20", ",", "dataset", "=", "None", ",", "competition", "=", "None", ",", "parent_kernel", "=", "None", ",", "search", "=", "None", ",", "mine", "=", "False", ",", "user...
list kernels based on a set of search criteria Parameters ========== page: the page of results to return (default is 1) page_size: results per page (default is 20) dataset: if defined, filter to this dataset (default None) competition: if defined,...
[ "list", "kernels", "based", "on", "a", "set", "of", "search", "criteria" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1502-L1590
train
returns a list of kernels from the specified set of kernels
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_list_cli
def kernels_list_cli(self, mine=False, page=1, page_size=20, search=None, csv_display=False, parent=None, competition=None, ...
python
def kernels_list_cli(self, mine=False, page=1, page_size=20, search=None, csv_display=False, parent=None, competition=None, ...
[ "def", "kernels_list_cli", "(", "self", ",", "mine", "=", "False", ",", "page", "=", "1", ",", "page_size", "=", "20", ",", "search", "=", "None", ",", "csv_display", "=", "False", ",", "parent", "=", "None", ",", "competition", "=", "None", ",", "da...
client wrapper for kernels_list, see this function for arguments. Additional arguments are provided here. Parameters ========== csv_display: if True, print comma separated values instead of table
[ "client", "wrapper", "for", "kernels_list", "see", "this", "function", "for", "arguments", ".", "Additional", "arguments", "are", "provided", "here", ".", "Parameters", "==========", "csv_display", ":", "if", "True", "print", "comma", "separated", "values", "inste...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1592-L1632
train
This function is a wrapper for the kernels_list function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_initialize
def kernels_initialize(self, folder): """ create a new kernel in a specified folder from template, including json metadata that grabs values from the configuration. Parameters ========== folder: the path of the folder """ if not os.path.isdir(fold...
python
def kernels_initialize(self, folder): """ create a new kernel in a specified folder from template, including json metadata that grabs values from the configuration. Parameters ========== folder: the path of the folder """ if not os.path.isdir(fold...
[ "def", "kernels_initialize", "(", "self", ",", "folder", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "folder", ")", ":", "raise", "ValueError", "(", "'Invalid folder: '", "+", "folder", ")", "resources", "=", "[", "]", "resource", "=", ...
create a new kernel in a specified folder from template, including json metadata that grabs values from the configuration. Parameters ========== folder: the path of the folder
[ "create", "a", "new", "kernel", "in", "a", "specified", "folder", "from", "template", "including", "json", "metadata", "that", "grabs", "values", "from", "the", "configuration", ".", "Parameters", "==========", "folder", ":", "the", "path", "of", "the", "folde...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1634-L1666
train
Create a new kernel in a specified folder from the template.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_initialize_cli
def kernels_initialize_cli(self, folder=None): """ client wrapper for kernels_initialize, takes same arguments but sets default folder to be None. If None, defaults to present working directory. Parameters ========== folder: the path of the folder (No...
python
def kernels_initialize_cli(self, folder=None): """ client wrapper for kernels_initialize, takes same arguments but sets default folder to be None. If None, defaults to present working directory. Parameters ========== folder: the path of the folder (No...
[ "def", "kernels_initialize_cli", "(", "self", ",", "folder", "=", "None", ")", ":", "folder", "=", "folder", "or", "os", ".", "getcwd", "(", ")", "meta_file", "=", "self", ".", "kernels_initialize", "(", "folder", ")", "print", "(", "'Kernel metadata templat...
client wrapper for kernels_initialize, takes same arguments but sets default folder to be None. If None, defaults to present working directory. Parameters ========== folder: the path of the folder (None defaults to ${PWD})
[ "client", "wrapper", "for", "kernels_initialize", "takes", "same", "arguments", "but", "sets", "default", "folder", "to", "be", "None", ".", "If", "None", "defaults", "to", "present", "working", "directory", ".", "Parameters", "==========", "folder", ":", "the",...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1668-L1678
train
client wrapper for kernels_initialize
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_push
def kernels_push(self, folder): """ read the metadata file and kernel files from a notebook, validate both, and use Kernel API to push to Kaggle if all is valid. Parameters ========== folder: the path of the folder """ if not os.path.isdir(folder)...
python
def kernels_push(self, folder): """ read the metadata file and kernel files from a notebook, validate both, and use Kernel API to push to Kaggle if all is valid. Parameters ========== folder: the path of the folder """ if not os.path.isdir(folder)...
[ "def", "kernels_push", "(", "self", ",", "folder", ")", ":", "if", "not", "os", ".", "path", ".", "isdir", "(", "folder", ")", ":", "raise", "ValueError", "(", "'Invalid folder: '", "+", "folder", ")", "meta_file", "=", "os", ".", "path", ".", "join", ...
read the metadata file and kernel files from a notebook, validate both, and use Kernel API to push to Kaggle if all is valid. Parameters ========== folder: the path of the folder
[ "read", "the", "metadata", "file", "and", "kernel", "files", "from", "a", "notebook", "validate", "both", "and", "use", "Kernel", "API", "to", "push", "to", "Kaggle", "if", "all", "is", "valid", ".", "Parameters", "==========", "folder", ":", "the", "path"...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1680-L1788
train
read the metadata file and kernel files from a notebook validate them and push them to Kaggle
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_push_cli
def kernels_push_cli(self, folder): """ client wrapper for kernels_push, with same arguments. """ folder = folder or os.getcwd() result = self.kernels_push(folder) if result is None: print('Kernel push error: see previous output') elif not result.error: ...
python
def kernels_push_cli(self, folder): """ client wrapper for kernels_push, with same arguments. """ folder = folder or os.getcwd() result = self.kernels_push(folder) if result is None: print('Kernel push error: see previous output') elif not result.error: ...
[ "def", "kernels_push_cli", "(", "self", ",", "folder", ")", ":", "folder", "=", "folder", "or", "os", ".", "getcwd", "(", ")", "result", "=", "self", ".", "kernels_push", "(", "folder", ")", "if", "result", "is", "None", ":", "print", "(", "'Kernel pus...
client wrapper for kernels_push, with same arguments.
[ "client", "wrapper", "for", "kernels_push", "with", "same", "arguments", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1790-L1827
train
wrapper for kernels_push
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_pull
def kernels_pull(self, kernel, path, metadata=False, quiet=True): """ pull a kernel, including a metadata file (if metadata is True) and associated files to a specified path. Parameters ========== kernel: the kernel to pull path: the path to pull file...
python
def kernels_pull(self, kernel, path, metadata=False, quiet=True): """ pull a kernel, including a metadata file (if metadata is True) and associated files to a specified path. Parameters ========== kernel: the kernel to pull path: the path to pull file...
[ "def", "kernels_pull", "(", "self", ",", "kernel", ",", "path", ",", "metadata", "=", "False", ",", "quiet", "=", "True", ")", ":", "existing_metadata", "=", "None", "if", "kernel", "is", "None", ":", "if", "path", "is", "None", ":", "existing_metadata_p...
pull a kernel, including a metadata file (if metadata is True) and associated files to a specified path. Parameters ========== kernel: the kernel to pull path: the path to pull files to on the filesystem metadata: if True, also pull metadata ...
[ "pull", "a", "kernel", "including", "a", "metadata", "file", "(", "if", "metadata", "is", "True", ")", "and", "associated", "files", "to", "a", "specified", "path", ".", "Parameters", "==========", "kernel", ":", "the", "kernel", "to", "pull", "path", ":",...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1829-L1963
train
Pull a kernel from the kernels directory
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_pull_cli
def kernels_pull_cli(self, kernel, kernel_opt=None, path=None, metadata=False): """ client wrapper for kernels_pull """ kernel = kernel or kernel_opt effective_path = self.kernels_pull( ...
python
def kernels_pull_cli(self, kernel, kernel_opt=None, path=None, metadata=False): """ client wrapper for kernels_pull """ kernel = kernel or kernel_opt effective_path = self.kernels_pull( ...
[ "def", "kernels_pull_cli", "(", "self", ",", "kernel", ",", "kernel_opt", "=", "None", ",", "path", "=", "None", ",", "metadata", "=", "False", ")", ":", "kernel", "=", "kernel", "or", "kernel_opt", "effective_path", "=", "self", ".", "kernels_pull", "(", ...
client wrapper for kernels_pull
[ "client", "wrapper", "for", "kernels_pull" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1965-L1978
train
wrapper for kernels_pull
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_output
def kernels_output(self, kernel, path, force=False, quiet=True): """ retrieve output for a specified kernel Parameters ========== kernel: the kernel to output path: the path to pull files to on the filesystem force: if output already exists, force ove...
python
def kernels_output(self, kernel, path, force=False, quiet=True): """ retrieve output for a specified kernel Parameters ========== kernel: the kernel to output path: the path to pull files to on the filesystem force: if output already exists, force ove...
[ "def", "kernels_output", "(", "self", ",", "kernel", ",", "path", ",", "force", "=", "False", ",", "quiet", "=", "True", ")", ":", "if", "kernel", "is", "None", ":", "raise", "ValueError", "(", "'A kernel must be specified'", ")", "if", "'/'", "in", "ker...
retrieve output for a specified kernel Parameters ========== kernel: the kernel to output path: the path to pull files to on the filesystem force: if output already exists, force overwrite (default False) quiet: suppress verbosity (default is True...
[ "retrieve", "output", "for", "a", "specified", "kernel", "Parameters", "==========", "kernel", ":", "the", "kernel", "to", "output", "path", ":", "the", "path", "to", "pull", "files", "to", "on", "the", "filesystem", "force", ":", "if", "output", "already", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L1980-L2036
train
retrieve output for a kernel
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_output_cli
def kernels_output_cli(self, kernel, kernel_opt=None, path=None, force=False, quiet=False): """ client wrapper for kernels_output, with same arguments. Extra argumen...
python
def kernels_output_cli(self, kernel, kernel_opt=None, path=None, force=False, quiet=False): """ client wrapper for kernels_output, with same arguments. Extra argumen...
[ "def", "kernels_output_cli", "(", "self", ",", "kernel", ",", "kernel_opt", "=", "None", ",", "path", "=", "None", ",", "force", "=", "False", ",", "quiet", "=", "False", ")", ":", "kernel", "=", "kernel", "or", "kernel_opt", "self", ".", "kernels_output...
client wrapper for kernels_output, with same arguments. Extra arguments are described below, and see kernels_output for others. Parameters ========== kernel_opt: option from client instead of kernel, if not defined
[ "client", "wrapper", "for", "kernels_output", "with", "same", "arguments", ".", "Extra", "arguments", "are", "described", "below", "and", "see", "kernels_output", "for", "others", ".", "Parameters", "==========", "kernel_opt", ":", "option", "from", "client", "ins...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2038-L2051
train
wrapper for kernels_output with same arguments.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_status
def kernels_status(self, kernel): """ call to the api to get the status of a kernel. Parameters ========== kernel: the kernel to get the status for """ if kernel is None: raise ValueError('A kernel must be specified') if '/' in kernel: ...
python
def kernels_status(self, kernel): """ call to the api to get the status of a kernel. Parameters ========== kernel: the kernel to get the status for """ if kernel is None: raise ValueError('A kernel must be specified') if '/' in kernel: ...
[ "def", "kernels_status", "(", "self", ",", "kernel", ")", ":", "if", "kernel", "is", "None", ":", "raise", "ValueError", "(", "'A kernel must be specified'", ")", "if", "'/'", "in", "kernel", ":", "self", ".", "validate_kernel_string", "(", "kernel", ")", "k...
call to the api to get the status of a kernel. Parameters ========== kernel: the kernel to get the status for
[ "call", "to", "the", "api", "to", "get", "the", "status", "of", "a", "kernel", ".", "Parameters", "==========", "kernel", ":", "the", "kernel", "to", "get", "the", "status", "for" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2053-L2071
train
get the status of a kernel
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.kernels_status_cli
def kernels_status_cli(self, kernel, kernel_opt=None): """ client wrapper for kernel_status Parameters ========== kernel_opt: additional option from the client, if kernel not defined """ kernel = kernel or kernel_opt response = self.kernels_status(ker...
python
def kernels_status_cli(self, kernel, kernel_opt=None): """ client wrapper for kernel_status Parameters ========== kernel_opt: additional option from the client, if kernel not defined """ kernel = kernel or kernel_opt response = self.kernels_status(ker...
[ "def", "kernels_status_cli", "(", "self", ",", "kernel", ",", "kernel_opt", "=", "None", ")", ":", "kernel", "=", "kernel", "or", "kernel_opt", "response", "=", "self", ".", "kernels_status", "(", "kernel", ")", "status", "=", "response", "[", "'status'", ...
client wrapper for kernel_status Parameters ========== kernel_opt: additional option from the client, if kernel not defined
[ "client", "wrapper", "for", "kernel_status", "Parameters", "==========", "kernel_opt", ":", "additional", "option", "from", "the", "client", "if", "kernel", "not", "defined" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2073-L2087
train
client wrapper for kernel_status
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.download_needed
def download_needed(self, response, outfile, quiet=True): """ determine if a download is needed based on timestamp. Return True if needed (remote is newer) or False if local is newest. Parameters ========== response: the response from the API outfile:...
python
def download_needed(self, response, outfile, quiet=True): """ determine if a download is needed based on timestamp. Return True if needed (remote is newer) or False if local is newest. Parameters ========== response: the response from the API outfile:...
[ "def", "download_needed", "(", "self", ",", "response", ",", "outfile", ",", "quiet", "=", "True", ")", ":", "try", ":", "remote_date", "=", "datetime", ".", "strptime", "(", "response", ".", "headers", "[", "'Last-Modified'", "]", ",", "'%a, %d %b %Y %X %Z'...
determine if a download is needed based on timestamp. Return True if needed (remote is newer) or False if local is newest. Parameters ========== response: the response from the API outfile: the output file to write to quiet: suppress verbose outpu...
[ "determine", "if", "a", "download", "is", "needed", "based", "on", "timestamp", ".", "Return", "True", "if", "needed", "(", "remote", "is", "newer", ")", "or", "False", "if", "local", "is", "newest", ".", "Parameters", "==========", "response", ":", "the",...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2089-L2111
train
Determine if a download is needed based on the timestamp of the remote API object. Return True if needed False otherwise.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.print_table
def print_table(self, items, fields): """ print a table of items, for a set of fields defined Parameters ========== items: a list of items to print fields: a list of fields to select from items """ formats = [] borders = [] for f i...
python
def print_table(self, items, fields): """ print a table of items, for a set of fields defined Parameters ========== items: a list of items to print fields: a list of fields to select from items """ formats = [] borders = [] for f i...
[ "def", "print_table", "(", "self", ",", "items", ",", "fields", ")", ":", "formats", "=", "[", "]", "borders", "=", "[", "]", "for", "f", "in", "fields", ":", "length", "=", "max", "(", "len", "(", "f", ")", ",", "max", "(", "[", "len", "(", ...
print a table of items, for a set of fields defined Parameters ========== items: a list of items to print fields: a list of fields to select from items
[ "print", "a", "table", "of", "items", "for", "a", "set", "of", "fields", "defined" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2113-L2139
train
print a table of items for a set of fields defined by items
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.print_csv
def print_csv(self, items, fields): """ print a set of fields in a set of items using a csv.writer Parameters ========== items: a list of items to print fields: a list of fields to select from items """ writer = csv.writer(sys.stdout) writ...
python
def print_csv(self, items, fields): """ print a set of fields in a set of items using a csv.writer Parameters ========== items: a list of items to print fields: a list of fields to select from items """ writer = csv.writer(sys.stdout) writ...
[ "def", "print_csv", "(", "self", ",", "items", ",", "fields", ")", ":", "writer", "=", "csv", ".", "writer", "(", "sys", ".", "stdout", ")", "writer", ".", "writerow", "(", "fields", ")", "for", "i", "in", "items", ":", "i_fields", "=", "[", "self"...
print a set of fields in a set of items using a csv.writer Parameters ========== items: a list of items to print fields: a list of fields to select from items
[ "print", "a", "set", "of", "fields", "in", "a", "set", "of", "items", "using", "a", "csv", ".", "writer" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2141-L2153
train
print a set of fields in a set of items using a csv. writer
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.process_response
def process_response(self, result): """ process a response from the API. We check the API version against the client's to see if it's old, and give them a warning (once) Parameters ========== result: the result from the API """ if len(result) == 3...
python
def process_response(self, result): """ process a response from the API. We check the API version against the client's to see if it's old, and give them a warning (once) Parameters ========== result: the result from the API """ if len(result) == 3...
[ "def", "process_response", "(", "self", ",", "result", ")", ":", "if", "len", "(", "result", ")", "==", "3", ":", "data", "=", "result", "[", "0", "]", "headers", "=", "result", "[", "2", "]", "if", "self", ".", "HEADER_API_VERSION", "in", "headers",...
process a response from the API. We check the API version against the client's to see if it's old, and give them a warning (once) Parameters ========== result: the result from the API
[ "process", "a", "response", "from", "the", "API", ".", "We", "check", "the", "API", "version", "against", "the", "client", "s", "to", "see", "if", "it", "s", "old", "and", "give", "them", "a", "warning", "(", "once", ")" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2181-L2201
train
process a response from the API
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.is_up_to_date
def is_up_to_date(self, server_version): """ determine if a client (on the local user's machine) is up to date with the version provided on the server. Return a boolean with True or False Parameters ========== server_version: the server version string...
python
def is_up_to_date(self, server_version): """ determine if a client (on the local user's machine) is up to date with the version provided on the server. Return a boolean with True or False Parameters ========== server_version: the server version string...
[ "def", "is_up_to_date", "(", "self", ",", "server_version", ")", ":", "client_split", "=", "self", ".", "__version__", ".", "split", "(", "'.'", ")", "client_len", "=", "len", "(", "client_split", ")", "server_split", "=", "server_version", ".", "split", "("...
determine if a client (on the local user's machine) is up to date with the version provided on the server. Return a boolean with True or False Parameters ========== server_version: the server version string to compare to the host
[ "determine", "if", "a", "client", "(", "on", "the", "local", "user", "s", "machine", ")", "is", "up", "to", "date", "with", "the", "version", "provided", "on", "the", "server", ".", "Return", "a", "boolean", "with", "True", "or", "False", "Parameters", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2203-L2233
train
Return a boolean with True if the client is up to date with the version provided on the server.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.upload_files
def upload_files(self, request, resources, folder, quiet=False, dir_mode='skip'): """ upload files in a folder Parameters ========== request: the prepared request ...
python
def upload_files(self, request, resources, folder, quiet=False, dir_mode='skip'): """ upload files in a folder Parameters ========== request: the prepared request ...
[ "def", "upload_files", "(", "self", ",", "request", ",", "resources", ",", "folder", ",", "quiet", "=", "False", ",", "dir_mode", "=", "'skip'", ")", ":", "for", "file_name", "in", "os", ".", "listdir", "(", "folder", ")", ":", "if", "(", "file_name", ...
upload files in a folder Parameters ========== request: the prepared request resources: the files to upload folder: the folder to upload from quiet: suppress verbose output (default is False)
[ "upload", "files", "in", "a", "folder", "Parameters", "==========", "request", ":", "the", "prepared", "request", "resources", ":", "the", "files", "to", "upload", "folder", ":", "the", "folder", "to", "upload", "from", "quiet", ":", "suppress", "verbose", "...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2235-L2282
train
This function uploads files in a folder to the database.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi._upload_file
def _upload_file(self, file_name, full_path, quiet, request, resources): """ Helper function to upload a single file Parameters ========== file_name: name of the file to upload full_path: path to the file to upload request: the prepared request ...
python
def _upload_file(self, file_name, full_path, quiet, request, resources): """ Helper function to upload a single file Parameters ========== file_name: name of the file to upload full_path: path to the file to upload request: the prepared request ...
[ "def", "_upload_file", "(", "self", ",", "file_name", ",", "full_path", ",", "quiet", ",", "request", ",", "resources", ")", ":", "if", "not", "quiet", ":", "print", "(", "'Starting upload for file '", "+", "file_name", ")", "content_length", "=", "os", ".",...
Helper function to upload a single file Parameters ========== file_name: name of the file to upload full_path: path to the file to upload request: the prepared request resources: optional file metadata quiet: suppress verbose output ...
[ "Helper", "function", "to", "upload", "a", "single", "file", "Parameters", "==========", "file_name", ":", "name", "of", "the", "file", "to", "upload", "full_path", ":", "path", "to", "the", "file", "to", "upload", "request", ":", "the", "prepared", "request...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2284-L2325
train
Helper function to upload a single file to the dataset
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.process_column
def process_column(self, column): """ process a column, check for the type, and return the processed column Parameters ========== column: a list of values in a column to be processed """ processed_column = DatasetColumn( name=self.get_...
python
def process_column(self, column): """ process a column, check for the type, and return the processed column Parameters ========== column: a list of values in a column to be processed """ processed_column = DatasetColumn( name=self.get_...
[ "def", "process_column", "(", "self", ",", "column", ")", ":", "processed_column", "=", "DatasetColumn", "(", "name", "=", "self", ".", "get_or_fail", "(", "column", ",", "'name'", ")", ",", "description", "=", "self", ".", "get_or_default", "(", "column", ...
process a column, check for the type, and return the processed column Parameters ========== column: a list of values in a column to be processed
[ "process", "a", "column", "check", "for", "the", "type", "and", "return", "the", "processed", "column", "Parameters", "==========", "column", ":", "a", "list", "of", "values", "in", "a", "column", "to", "be", "processed" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2327-L2357
train
process a column and return the processed version of the column
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.upload_complete
def upload_complete(self, path, url, quiet): """ function to complete an upload to retrieve a path from a url Parameters ========== path: the path for the upload that is read in url: the url to send the POST to quiet: suppress verbose output (default ...
python
def upload_complete(self, path, url, quiet): """ function to complete an upload to retrieve a path from a url Parameters ========== path: the path for the upload that is read in url: the url to send the POST to quiet: suppress verbose output (default ...
[ "def", "upload_complete", "(", "self", ",", "path", ",", "url", ",", "quiet", ")", ":", "file_size", "=", "os", ".", "path", ".", "getsize", "(", "path", ")", "try", ":", "with", "tqdm", "(", "total", "=", "file_size", ",", "unit", "=", "'B'", ",",...
function to complete an upload to retrieve a path from a url Parameters ========== path: the path for the upload that is read in url: the url to send the POST to quiet: suppress verbose output (default is False)
[ "function", "to", "complete", "an", "upload", "to", "retrieve", "a", "path", "from", "a", "url", "Parameters", "==========", "path", ":", "the", "path", "for", "the", "upload", "that", "is", "read", "in", "url", ":", "the", "url", "to", "send", "the", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2359-L2386
train
function to complete an upload to retrieve a path from a url
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.validate_dataset_string
def validate_dataset_string(self, dataset): """ determine if a dataset string is valid, meaning it is in the format of {username}/{dataset-slug}. Parameters ========== dataset: the dataset name to validate """ if dataset: if '/' not in...
python
def validate_dataset_string(self, dataset): """ determine if a dataset string is valid, meaning it is in the format of {username}/{dataset-slug}. Parameters ========== dataset: the dataset name to validate """ if dataset: if '/' not in...
[ "def", "validate_dataset_string", "(", "self", ",", "dataset", ")", ":", "if", "dataset", ":", "if", "'/'", "not", "in", "dataset", ":", "raise", "ValueError", "(", "'Dataset must be specified in the form of '", "'\\'{username}/{dataset-slug}\\''", ")", "split", "=", ...
determine if a dataset string is valid, meaning it is in the format of {username}/{dataset-slug}. Parameters ========== dataset: the dataset name to validate
[ "determine", "if", "a", "dataset", "string", "is", "valid", "meaning", "it", "is", "in", "the", "format", "of", "{", "username", "}", "/", "{", "dataset", "-", "slug", "}", ".", "Parameters", "==========", "dataset", ":", "the", "dataset", "name", "to", ...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2388-L2402
train
determine if a dataset string is valid
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.validate_kernel_string
def validate_kernel_string(self, kernel): """ determine if a kernel string is valid, meaning it is in the format of {username}/{kernel-slug}. Parameters ========== kernel: the kernel name to validate """ if kernel: if '/' not in kernel...
python
def validate_kernel_string(self, kernel): """ determine if a kernel string is valid, meaning it is in the format of {username}/{kernel-slug}. Parameters ========== kernel: the kernel name to validate """ if kernel: if '/' not in kernel...
[ "def", "validate_kernel_string", "(", "self", ",", "kernel", ")", ":", "if", "kernel", ":", "if", "'/'", "not", "in", "kernel", ":", "raise", "ValueError", "(", "'Kernel must be specified in the form of '", "'\\'{username}/{kernel-slug}\\''", ")", "split", "=", "ker...
determine if a kernel string is valid, meaning it is in the format of {username}/{kernel-slug}. Parameters ========== kernel: the kernel name to validate
[ "determine", "if", "a", "kernel", "string", "is", "valid", "meaning", "it", "is", "in", "the", "format", "of", "{", "username", "}", "/", "{", "kernel", "-", "slug", "}", ".", "Parameters", "==========", "kernel", ":", "the", "kernel", "name", "to", "v...
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2404-L2423
train
determine if a kernel string is valid
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.validate_resources
def validate_resources(self, folder, resources): """ validate resources is a wrapper to validate the existence of files and that there are no duplicates for a folder and set of resources. Parameters ========== folder: the folder to validate resources:...
python
def validate_resources(self, folder, resources): """ validate resources is a wrapper to validate the existence of files and that there are no duplicates for a folder and set of resources. Parameters ========== folder: the folder to validate resources:...
[ "def", "validate_resources", "(", "self", ",", "folder", ",", "resources", ")", ":", "self", ".", "validate_files_exist", "(", "folder", ",", "resources", ")", "self", ".", "validate_no_duplicate_paths", "(", "resources", ")" ]
validate resources is a wrapper to validate the existence of files and that there are no duplicates for a folder and set of resources. Parameters ========== folder: the folder to validate resources: one or more resources to validate within the folder
[ "validate", "resources", "is", "a", "wrapper", "to", "validate", "the", "existence", "of", "files", "and", "that", "there", "are", "no", "duplicates", "for", "a", "folder", "and", "set", "of", "resources", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2425-L2435
train
validate the existence of files in folder and set of resources
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.validate_files_exist
def validate_files_exist(self, folder, resources): """ ensure that one or more resource files exist in a folder Parameters ========== folder: the folder to validate resources: one or more resources to validate within the folder """ for item in res...
python
def validate_files_exist(self, folder, resources): """ ensure that one or more resource files exist in a folder Parameters ========== folder: the folder to validate resources: one or more resources to validate within the folder """ for item in res...
[ "def", "validate_files_exist", "(", "self", ",", "folder", ",", "resources", ")", ":", "for", "item", "in", "resources", ":", "file_name", "=", "item", ".", "get", "(", "'path'", ")", "full_path", "=", "os", ".", "path", ".", "join", "(", "folder", ","...
ensure that one or more resource files exist in a folder Parameters ========== folder: the folder to validate resources: one or more resources to validate within the folder
[ "ensure", "that", "one", "or", "more", "resource", "files", "exist", "in", "a", "folder" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2437-L2449
train
ensure that one or more resource files exist in a folder
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.validate_no_duplicate_paths
def validate_no_duplicate_paths(self, resources): """ ensure that the user has not provided duplicate paths in a list of resources. Parameters ========== resources: one or more resources to validate not duplicated """ paths = set() for ite...
python
def validate_no_duplicate_paths(self, resources): """ ensure that the user has not provided duplicate paths in a list of resources. Parameters ========== resources: one or more resources to validate not duplicated """ paths = set() for ite...
[ "def", "validate_no_duplicate_paths", "(", "self", ",", "resources", ")", ":", "paths", "=", "set", "(", ")", "for", "item", "in", "resources", ":", "file_name", "=", "item", ".", "get", "(", "'path'", ")", "if", "file_name", "in", "paths", ":", "raise",...
ensure that the user has not provided duplicate paths in a list of resources. Parameters ========== resources: one or more resources to validate not duplicated
[ "ensure", "that", "the", "user", "has", "not", "provided", "duplicate", "paths", "in", "a", "list", "of", "resources", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2451-L2466
train
ensure that the user has not provided duplicate paths in a list of resources.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
KaggleApi.convert_to_dataset_file_metadata
def convert_to_dataset_file_metadata(self, file_data, path): """ convert a set of file_data to a metadata file at path Parameters ========== file_data: a dictionary of file data to write to file path: the path to write the metadata to """ as_metad...
python
def convert_to_dataset_file_metadata(self, file_data, path): """ convert a set of file_data to a metadata file at path Parameters ========== file_data: a dictionary of file data to write to file path: the path to write the metadata to """ as_metad...
[ "def", "convert_to_dataset_file_metadata", "(", "self", ",", "file_data", ",", "path", ")", ":", "as_metadata", "=", "{", "'path'", ":", "os", ".", "path", ".", "join", "(", "path", ",", "file_data", "[", "'name'", "]", ")", ",", "'description'", ":", "f...
convert a set of file_data to a metadata file at path Parameters ========== file_data: a dictionary of file data to write to file path: the path to write the metadata to
[ "convert", "a", "set", "of", "file_data", "to", "a", "metadata", "file", "at", "path" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2468-L2493
train
convert a set of file data to a metadata file at path
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api/kaggle_api_extended.py
TqdmBufferedReader.read
def read(self, *args, **kwargs): """ read the buffer, passing named and non named arguments to the io.BufferedReader function. """ buf = io.BufferedReader.read(self, *args, **kwargs) self.increment(len(buf)) return buf
python
def read(self, *args, **kwargs): """ read the buffer, passing named and non named arguments to the io.BufferedReader function. """ buf = io.BufferedReader.read(self, *args, **kwargs) self.increment(len(buf)) return buf
[ "def", "read", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "buf", "=", "io", ".", "BufferedReader", ".", "read", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", "self", ".", "increment", "(", "len", "(", "buf"...
read the buffer, passing named and non named arguments to the io.BufferedReader function.
[ "read", "the", "buffer", "passing", "named", "and", "non", "named", "arguments", "to", "the", "io", ".", "BufferedReader", "function", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api/kaggle_api_extended.py#L2507-L2513
train
read the buffer passing named and non named arguments to the io. BufferedReader function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api_client.py
ApiClient.parameters_to_tuples
def parameters_to_tuples(self, params, collection_formats): """Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collection...
python
def parameters_to_tuples(self, params, collection_formats): """Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collection...
[ "def", "parameters_to_tuples", "(", "self", ",", "params", ",", "collection_formats", ")", ":", "new_params", "=", "[", "]", "if", "collection_formats", "is", "None", ":", "collection_formats", "=", "{", "}", "for", "k", ",", "v", "in", "six", ".", "iterit...
Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted
[ "Get", "parameters", "as", "list", "of", "tuples", "formatting", "collections", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api_client.py#L407-L435
train
Get parameters as list of tuples formatting collections. COOKIE
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api_client.py
ApiClient.prepare_post_parameters
def prepare_post_parameters(self, post_params=None, files=None): """Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files. """ params = [] if post_params: params = post_...
python
def prepare_post_parameters(self, post_params=None, files=None): """Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files. """ params = [] if post_params: params = post_...
[ "def", "prepare_post_parameters", "(", "self", ",", "post_params", "=", "None", ",", "files", "=", "None", ")", ":", "params", "=", "[", "]", "if", "post_params", ":", "params", "=", "post_params", "if", "files", ":", "for", "k", ",", "v", "in", "six",...
Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files.
[ "Builds", "form", "parameters", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api_client.py#L437-L463
train
Builds form parameters.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api_client.py
ApiClient.__deserialize_file
def __deserialize_file(self, response): """Deserializes body to file Saves response body into a file in a temporary folder, using the filename from the `Content-Disposition` header if provided. :param response: RESTResponse. :return: file path. """ fd, path = t...
python
def __deserialize_file(self, response): """Deserializes body to file Saves response body into a file in a temporary folder, using the filename from the `Content-Disposition` header if provided. :param response: RESTResponse. :return: file path. """ fd, path = t...
[ "def", "__deserialize_file", "(", "self", ",", "response", ")", ":", "fd", ",", "path", "=", "tempfile", ".", "mkstemp", "(", "dir", "=", "self", ".", "configuration", ".", "temp_folder_path", ")", "os", ".", "close", "(", "fd", ")", "os", ".", "remove...
Deserializes body to file Saves response body into a file in a temporary folder, using the filename from the `Content-Disposition` header if provided. :param response: RESTResponse. :return: file path.
[ "Deserializes", "body", "to", "file" ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api_client.py#L521-L543
train
Deserializes the response body into a file in a temporary folder and returns the path to the file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/api_client.py
ApiClient.__deserialize_primitive
def __deserialize_primitive(self, data, klass): """Deserializes string to primitive type. :param data: str. :param klass: class literal. :return: int, long, float, str, bool. """ try: return klass(data) except UnicodeEncodeError: return s...
python
def __deserialize_primitive(self, data, klass): """Deserializes string to primitive type. :param data: str. :param klass: class literal. :return: int, long, float, str, bool. """ try: return klass(data) except UnicodeEncodeError: return s...
[ "def", "__deserialize_primitive", "(", "self", ",", "data", ",", "klass", ")", ":", "try", ":", "return", "klass", "(", "data", ")", "except", "UnicodeEncodeError", ":", "return", "six", ".", "text_type", "(", "data", ")", "except", "TypeError", ":", "retu...
Deserializes string to primitive type. :param data: str. :param klass: class literal. :return: int, long, float, str, bool.
[ "Deserializes", "string", "to", "primitive", "type", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/api_client.py#L545-L558
train
Deserializes string to primitive type.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/configuration.py
Configuration.logger_file
def logger_file(self, value): """The logger file. If the logger_file is None, then add stream handler and remove file handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str """ self.__logger_file = value ...
python
def logger_file(self, value): """The logger file. If the logger_file is None, then add stream handler and remove file handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str """ self.__logger_file = value ...
[ "def", "logger_file", "(", "self", ",", "value", ")", ":", "self", ".", "__logger_file", "=", "value", "if", "self", ".", "__logger_file", ":", "# If set logging file,", "# then add file handler and remove stream handler.", "self", ".", "logger_file_handler", "=", "lo...
The logger file. If the logger_file is None, then add stream handler and remove file handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str
[ "The", "logger", "file", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/configuration.py#L133-L160
train
Sets the logger file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
Kaggle/kaggle-api
kaggle/models/dataset_new_request.py
DatasetNewRequest.license_name
def license_name(self, license_name): """Sets the license_name of this DatasetNewRequest. The license that should be associated with the dataset # noqa: E501 :param license_name: The license_name of this DatasetNewRequest. # noqa: E501 :type: str """ allowed_values = ...
python
def license_name(self, license_name): """Sets the license_name of this DatasetNewRequest. The license that should be associated with the dataset # noqa: E501 :param license_name: The license_name of this DatasetNewRequest. # noqa: E501 :type: str """ allowed_values = ...
[ "def", "license_name", "(", "self", ",", "license_name", ")", ":", "allowed_values", "=", "[", "\"CC0-1.0\"", ",", "\"CC-BY-SA-4.0\"", ",", "\"GPL-2.0\"", ",", "\"ODbL-1.0\"", ",", "\"CC-BY-NC-SA-4.0\"", ",", "\"unknown\"", ",", "\"DbCL-1.0\"", ",", "\"CC-BY-SA-3.0\...
Sets the license_name of this DatasetNewRequest. The license that should be associated with the dataset # noqa: E501 :param license_name: The license_name of this DatasetNewRequest. # noqa: E501 :type: str
[ "Sets", "the", "license_name", "of", "this", "DatasetNewRequest", "." ]
65f14b1386470c5784d4753e491478e7537660d9
https://github.com/Kaggle/kaggle-api/blob/65f14b1386470c5784d4753e491478e7537660d9/kaggle/models/dataset_new_request.py#L194-L209
train
Sets the license_name of this DatasetNewRequest.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...