1Password Shell Plugin for Kaggle
Kaggle is an online platform that provides a community and resources for data science and machine learning enthusiasts. The Kaggle CLI offers command line access to the Kaggle platform.
The CLI supports environment variables and configuration files for authentication. For the latter, the config file should be stored at ~/.kaggle/kaggle.json
For the purpose of simplest and secure form of authentication, I have opted to build the shell plugin with environment variables supported:
KAGGLE_USERNAME
KAGGLE_KEY
The shell plugin imports the credentials from these environment variables, if they exist, and provisions credentials to the same too.
Once the shell plugin is set up, one can run kaggle config view
to see the username that's in use. That should confirm that the shell plugin is working.
This is my entry for the 1Password-Hashnode hackathon, and it is available for testing here.