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.1.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.1-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kagitch-1.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 425920795053bfd34015a8632de4d1fca88df5308fe652c4dbb019dfe18291be
MD5 0620fd6c9b61eed11955d88db6e0af20
BLAKE2b-256 92dea83c281181f5f762d880a889b7dba3bb61d86ce638fc4d802135e8359042

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kagitch-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 54.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4cb0b30e58c999cf100cb56559aa57d8a62e42086ede1a967ad0f70b9004e96
MD5 f97a0470cbad6f763ac20694f7f9dfb5
BLAKE2b-256 cf9391d7b2cb263c1ff21d3803cd1aaf2a565eef068afeb95a7cbb6d39baab0d

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