项目作者: floydwch

项目描述 :
(Deprecated, use https://github.com/Kaggle/kaggle-api instead) An unofficial Kaggle command line tool.
高级语言: Python
项目地址: git://github.com/floydwch/kaggle-cli.git
创建时间: 2014-11-15T09:50:53Z
项目社区:https://github.com/floydwch/kaggle-cli

开源协议:MIT License

下载


Kaggle-CLI

An unofficial Kaggle command line tool.

Installation

  1. $ pip install kaggle-cli

Upgrade

  1. $ pip install -U kaggle-cli

Usage

Please note that you must accept the competition rules on the competition’s page before running your commands.

Submit

To submit an entry.

  1. $ kg submit <submission-file> -u <username> -p <password> -c <competition> -m "<message>"

Download

To download the data files (resumable).

  1. $ kg download -u <username> -p <password> -c <competition>

To download a specific data file.

  1. $ kg download -u <username> -p <password> -c <competition> -f train.zip

Submissions

To list submissions.

  1. $ kg submissions

Dataset

To download a dataset (resumable).

  1. $ kg dataset -u <username> -p <password> -o <owner> -d <dataset>

Config

To set global config.

  1. $ kg config -g -u <username> -p <password> -c <competition>

or local config:

  1. $ kg config -u <username> -p <password> -c <competition>

Show working config:

  1. $ kg config

Use Proxy

$ export HTTPS_PROXY="YOUR_PROXY_URI", for example: $ export HTTPS_PROXY="http://10.10.1.10:1080". For Windows user, please set environment variable HTTPS_PROXY accordingly.

Example

  1. $ kg submit sampleSubmission.csv -c titanic-gettingStarted -u USERNAME -p PASSWORD -m "Enter a brief description of this submission here."

or

  1. $ kg config -c titanic-gettingStarted -u USERNAME -p PASSWORD
  2. $ kg submit sampleSubmission.csv -m "Enter a brief description of this submission here."