Skip to main content

Kaggle multi-account manager — switch between Kaggle accounts with one command.

Project description

Kagitch — switch Kaggle accounts and keep your flow

kagitch add · kagitch switch · kagitch check


Install

pip install git+https://github.com/TQuang122/Kagitch.git
kagitch init        # interactive setup wizard (one time)

Requires pip install kaggle and Python 3.8+.

Windows / PowerShell: kagitch init detects $PROFILE for both PowerShell 5.1 and 7+. Run kagitch init -r to print a . $PROFILE reload command (no os.execv() on Windows).


Quick start

kagitch add work      # OAuth login — opens browser
kagitch add personal  # or: kagitch add personal ~/kaggle.json (legacy key)
kagitch 2             # switch to account 2
kagitch check         # check quota for all accounts
kaggle quota          # kaggle CLI follows the switched account
kaggle push kernels -p . # # push current folder as a Kaggle kernel
$ kagitch

╭─────────────────── Dashboard ───────────────────╮
│   Active  #1 account1                           │
│                                                 │
│   Run kagitch switch to choose another account. │
╰─────────────────────────────────────────────────╯
┏━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃   # ┃ Name         ┃  Auth    ┃ Path                         ┃ Status   ┃
┡━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│   1 │ account1     │   OAuth  │  ~/.kaggle-account1          │ ● active │
│   2 │ account2     │   OAuth  │  ~/.kaggle-account2          │          │
│   3 │ account3     │   OAuth  │  ~/.kaggle-account3          │          │
└─────┴──────────────┴──────────┴──────────────────────────────┴──────────┘

Commands

Command Aliases What it does
kagitch Show dashboard + active account
kagitch list ls List accounts
kagitch <N|name> Switch to account
kagitch switch [N|name] Prompt or switch to account
kagitch current cur, . Show active account
kagitch add <name> login Add account via OAuth
kagitch add <name> <file> Add account via legacy API key
kagitch remove <N|name> rm Remove an account (deletes credentials)
kagitch rename <N> <name> Rename an account
kagitch patch [path] Patch kernel-metadata.json id
kagitch check Check quota & auth for all accounts
kagitch doctor System diagnostics
kagitch update Pull latest version from git
kagitch init Interactive setup wizard (7 steps)
kagitch init -r Print shell reload command
kagitch completions <sh> Print shell completion script
kagitch help -h, --help Show help
kagitch version -v, --version Show version

How it works

Each account lives in ~/.kaggle-<name>/.

The shell wrapper sets KAGGLE_CONFIG_DIR when you switch.

Config stored at:

~/.config/kagitch/accounts.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kagitch-1.4.0.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kagitch-1.4.0-py3-none-any.whl (54.1 kB view details)

Uploaded Python 3

File details

Details for the file kagitch-1.4.0.tar.gz.

File metadata

  • Download URL: kagitch-1.4.0.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kagitch-1.4.0.tar.gz
Algorithm Hash digest
SHA256 93edcc58f967fea4f8ceb13a0d1baa059ccf4a87886e307eb517fb94194882f7
MD5 cc53ae685981e8981bccf02eb8990e43
BLAKE2b-256 4ed84f7e471cf13f056a0a52d0af10425d91bfba1e9a24cbcbbd7e304f098b7b

See more details on using hashes here.

File details

Details for the file kagitch-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: kagitch-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kagitch-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbbc350c8ac5fce345e59d9233f09c91396ea226f9ff0193f4be733905b32fe6
MD5 e46077981c9711fee14c0593a0f0b417
BLAKE2b-256 b676be3a6eb813f03f2fecbf283e52fe0ee4de6f7d142faee94e10e297e9512d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page