Upload Drive

Upload files to Google Drive. Useful for exporting final tailored resumes or saving logs to a cloud destination.

majiayu000 Updated 567 repo stars

File contents

Upload to Google Drive

Overview

This skill allows uploading files to a specified Google Drive folder. It handles authentication using a credentials.json file (OAuth 2.0).

Prerequisites

Requires Google Client libraries:

pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib

You must provide a credentials.json file from the Google Cloud Console.

Usage

Upload Script

Syntax:

python3 .agent/skills/upload-drive/scripts/upload_drive.py <file_path> [--folder_id <id>] [--credentials <path>]

Arguments:

  • file_path: Path of file to upload.
  • --folder_id: (Optional) ID of the destination Google Drive folder.
  • --credentials: (Optional) Path to credentials.json. Defaults to credentials.json in current dir.
  • --token: (Optional) Path to token.json to store session. Defaults to token.json.

Example:

# Upload resume to specific folder
python3 .agent/skills/upload-drive/scripts/upload_drive.py tailored_resume.pdf --folder_id 1A2B3C... --credentials ~/.secrets/credentials.json

majiayu000/claude-skill-registry-data/tree/main/data/upload-drive commit b99bc112ba

Frequently asked questions

npx skillmds@latest add majiayu000/upload-drive