Run kaggle kernels, for fast model prototyping.
Project description
kaggle_runner
Check main.py or test/test_coord.py for usage. It uses kaggle API to upload your script/notebook to kaggle servers and let the kernel run. And you will get running logs through message queue.
AMQP
AMQP is used for logging. Its license needs mention.
Example
Use this kaggle competition about Pneumothorax Segmentation as an example. To run the example, you will need a kaggle account and set the kaggle command line tool up. And you issues this command to let it run:
# install kaggle_runner, which will pull kaggle command line tool as the dependency
pip install kaggle_runner
# put your kaggle API token to the right place
cat > ~/.kaggle/kaggle.json <<EOF
{
"username": "YOUR_KAGGLE_USER_NAME",
"key": "YOUR_KAGGLE_API_ACCESS_TOKEN",
}
EOF
# kaggle_runner will use kaggle API to push the template kernel codes to kaggle server and wait message back
python -m kaggle_runner
A demo:
- #0 Left panel: tcpserver listen for reverse shells
- #1 Upper panel: Logs from interactive session to our tcpserver which receive logs
- #2 Second upper panel: AMQP logs received
- #3 Main panel: vim window
- #4 Right bottom panel: logged in reverse shell for commit session
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kaggle-runner-0.2.0.tar.gz
(686.9 kB
view hashes)
Built Distribution
kaggle_runner-0.2.0-py3-none-any.whl
(206.8 kB
view hashes)
Close
Hashes for kaggle_runner-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5d85103317ba97930d1a9e8b0df50a0188a064283b72dd89349f75bb6b56de |
|
MD5 | 01d96c4b1281f1a716506feeb72fe1d3 |
|
BLAKE2b-256 | c1b07193e186698bd5ec1f3a1826411babacea5a9b713b88941bef349fc31db1 |