Skip to content

Releases: cccntu/kaggleupload

Release 0.1.0

28 Jun 08:21
Compare
Choose a tag to compare
  • Upload folder as zip with -z, --zip_folder

  • Keep the folder with -k, --keep_folder

  • python api

import kaggleupload
kaggleupload.create_dataset?
Signature:
kaggleupload.create_dataset(
    dataname,
    folder,
    zip_folder=False,
    keep_folder=False,
    public=False,
    quiet=False,
    convert_to_csv=False,
    dir_mode='zip',
)
Docstring:
create a new dataset
Args:
    dataname: kaggle dataset name to be created
    folder: the folder to upload
    zip_folder: if True, will zip the whole folder and upload, ignoring the dir_mode argument
    keep_folder: if True, behaves like zip_folder, except will add an empty file so the root folder will be preserved.
    public: should the dataset be public?
    quiet: suppress verbose output (default is False)
    convert_to_csv: if True, convert data to comma separated value
    dir_mode: What to do with directories: "skip" - ignore; "zip" - compress and upload