def submit_report(date_report):
    api = KaggleApi()
    api.authenticate()

    last_update = datetime.strftime(date_report, "%m/%d/%Y %H:%M")
    api.dataset_create_version(
        "data/", f"Auto update - {last_update} GMT-3", delete_old_versions=True
    )
Example #2
0
def publish_data(api, path):
    response = kag_api.dataset_create_version(
        api,
        path,
        f"Dataset updated till (UTC): {datetime.utcnow()}",
        convert_to_csv=True,
        delete_old_versions=False)
    print(f"[INFO] Kaggle Dataset uploaded.")
    clear_dir(path)