Automate the kaggle data import portion and run codeserver in that directory
Project description
Library for importing kaggle data into colab and run vscode on the folder
This is already implemented by ML Genius Abhishek Thakur, just a litte bit refinement and I have added methods for importing kaggle data straight into your Drive folder and the vscode will open in your kaggle folder
Installation:
pip install kagcolabserver
Basics optional params for the Code:
Primary params
- -- port : for hosting the code server locally and tunnel using the ngrok
- -- drive : for mouting the drive
- -- folder_tree : Folder structure which will be created in the drive Ex: titanic/ or kaggle/titanic etc...
- -- kaggle : for working with kaggle user api and data api
Secondary params
Note : On clicking API key in your profile, a file named kaggle.json with username and api key will be downloaded, kindly use them for below params
- -- username : Your Kaggle username
- -- kag_api_key : API key found in your profile
- -- kag_data_api : On each kaggle competition, a data api will be given should pass that one!
How to Use the library?
For just starting the code server from google colab
* from kagcolabserver import kagColabServer
* kagColabServer(port=7000, drive=True, kaggle=False)
For starting vscode in particular foler
* from kagcolabserver import kagColabServer
* kagColabServer(port=7000, drive=True, kaggle=False, folder_tree="kaggle")
For importing Kaggle as well as starting the code-server in the folder location
* from kagcolabserver import kagColabServe
* kagColabServer(port=4000, drive=True)
* kolab = kagColabServer(port=4000,drive=True, kaggle=True)
* kolab.import_kaggle_data(username='XXXX', kag_api_key='XXXXX', kag_data_api='kaggle competitions download -c titanic', folder_tree='titanic/')
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kagcolabserver-0.1.3-py3-none-any.whl.
File metadata
- Download URL: kagcolabserver-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
563fdad98f6c677cd2d0555099ff58d305ee6f5d38d39a754f2cf7d2398a131c
|
|
| MD5 |
c2fcc333796331d4f2ad6132104a9ebc
|
|
| BLAKE2b-256 |
e5ca249d79e1cf85e9709e29ebf972c02467c505211a428342a1222970e0e321
|