Comments (5)
Could you give us a little more detail? An example of what you want to do would be great.
from kaggle-api.
Could you give us a little more detail? An example of what you want to do would be great.
I guess he ment user secrets (like api keys that we dont want to expose)
from kaggle-api.
No, I do not think we want to do that. I think it would introduce security issues. @rosbo Could you confirm?
The way to manage your API key is with the kaggle_secrets
package. See:
https://www.kaggle.com/code/harupy/how-to-use-kaggle-api-as-a-python-library
This package is only available in Kaggle notebooks and is a secure way to set up user name and key.
from kaggle-api.
@stevemessick To clarify, kaggle_secrets
is used to access secrets in a notebook (i.e. get the secret value).
from kaggle_secrets import UserSecretsClient
secret_value = UserSecretsClient().get_secret("YOUR_SECRET_NAME")
kaggle_secrets
doesn't allow setting the value, it only reads the value. Currently, the value must be set from Notebook Editor > Add-ons > Secrets
. Another thing to note is that secrets are set at your account level. Then, you can decide which secrets you want to attach to a specific notebook. If you update the value of a secret, the new value will be used by all notebooks using that secret.
@bleakprestiger Are you asking for an option to "attach" a given list of secrets automatically when calling kaggle kernels push
?
Or are you asking for new methods in the CLI to set user secrets. Something along the lines of:
kaggle secrets set MY_API_KEY abcdefghijk123
Thank you
from kaggle-api.
Related Issues (20)
- [BUG] "Kernel push error: Notebook not found" - unable to push notebook HOT 1
- Kaggle Installation Error - Failed to Build Wheel for Kaggle. HOT 1
- Issue with code in Kaggle but unsure how to fix it HOT 2
- Unable to download model files using kaggle API HOT 6
- Error while downloading notebooks using (certain?) models HOT 2
- Environment Method HOT 1
- Looks like you're using an outdated API Version
- kaggle kernels output majedahalrwaily/crime-prediction-using-machine-learning -p /path/to/dest HOT 1
- Cannot list datasets beyond page 500 HOT 4
- Feature Request: Warning suppression option HOT 1
- 403 - Forbidden - Permission 'competitions.participate' was denied HOT 2
- ValueError: Invalid value for `token`, must not be `None` HOT 1
- Broken packaging in latest version HOT 1
- Add Utility Script is Malfunctioning HOT 1
- 'charmap' codec can't encode characters in position 824-826: character maps to <undefined> HOT 1
- Kaggle API does not accept arrays as a value for "source" in .ipynb files HOT 16
- Kaggle kernels push results in `Kernel push error: Notebook not found` HOT 5
- 403 when trying to list competition files HOT 3
- some error is happening while running the code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaggle-api.